title: Adding variables with their values to a Java GUI
body: <p>I want to add to a Java <code>JFrame</code> a list of my class's fields names, along with their respective values. Those fields can of course change value during the program's execution and i want this change to be displayed dynamically in my GUI. If for example i have a field <code>private int networkId;</code> in a class <code>BaseStation</code>, how can i make it appear in the frame of a class <code>BaseStationFrame</code>?</p>