Hello,
I am new and desperate
I use netbeans to make some easy
java programming. Most of the time I learn from the examples on the net, so I am not much more than a complete beginner. My problem:
Is there an easy way how to update JLabel using setText()? I have designed in Netbeans a main frame and then a dialog (jDialog_Submitted), that has a label (jLabel_Submitted, set to "some string" value as a default). I would like this label to change appropriately before the dialog appears. I use setText("my string"), however after calling this sequence I don't see any label at all.
jLabel_Submitted.setText("File was submitted.");
jDialog_Submitted.pack();
jDialog_Submitted.setLocationRelativeTo(null);
jDialog_Submitted.setVisible(true);
I read > 50 websites/forums in order to understand how to do this simple (?!) thing, but cannot find anything I would understand...
Please, help me.