ActionListener get's default values
问题 I'm implementing a simple application in Java. I'm using the MVC module for the app. The problem is that when my Controller creates the objects of the View and the Model , when trying to use a simple get method I get the defaults values and not the new ones, that I inserted in the UI. Here is a code exmaple: View: public class Client extends JFrame { private float ammount; private JButton calculateButton; ... public void startUI(ActionListener listener) { EventQueue.invokeLater(new Runnable()