I have a GUI screen, and it has a label in it. I now want to set the label with a text as i have shown in below (Test). But it\'s not getting updated. I think t
Test
Change the mainScreen() function to
public void mainScreen() { EventQueue.invokeLater(new Runnable() { public void run() { try { setVisible(true); } catch (Exception e) { e.printStackTrace(); } } }); }
remaining code is same