updating jlabel
问题 I am having trouble updating a jlabel in a method. here is my code: JLabel curStatus = new JLabel(""); JButton jbtnSubmit; public static void main(String[] args) { test gui = new test(); gui.startGUI(); // gui.setCurStatus("testing!"); << seems to work here, //but when i call it from another class, it doesn't want to run. } // Set up the GUI end for the user public void startGUI() { // These are all essential GUI pieces new JTextArea(""); final JFrame jfrm = new JFrame("my program"); jfrm