I'm using invokeLater, but it isn't working how I want it to.
I want it to update a jLabel after button click, but it's not outputting to the jLabel.
My program finds the full computer name and then is supposed to update the jLabel within the same instance, but it's not updating at all and I'm unsure why.
I didn't want to paste the whole class in here, but if you want to look at it, here it is: http://pastebin.com/BsU9zST4 Any help is appreciated.
The label is called testLabel
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
MISControlPanel window = new MISControlPanel();
window.frame.setVisible(true);
testLabel.setText(CN);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}