problem with jframes
Hi every body.
I got a problem. I have been trying to work with 2 JFrames, JFrame2 enable(false), and JFrame1 with a button. What i want to do is to notify JFrame2 when an envent occurs in JFrame1, and then enable it. I hope somebody can help me.
I would use listeners here such as a ChangeListener or even pass an ActionListener from one class to the other.
But before doing that, think whether you truly want two JFrames here. Most Swing apps have only one JFrame, the main frame, and then if other windows are needed they use dialogs such as a JDialog.