This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I have a JPanel in a JWindow with an event which creates a JTextField, however, the JTextField does no appear immediately after it is created but only appears when I resize the window. I'd like the text field to apear as soon as it is created, any ideas?? thanks
You have to call invalidate() and validate() (and possibly repaint()) on the JPanel you are adding the new components to... if you're adding components dynamically, the layout manager doesn't re-layout the panel. invalidate() and validate() tells the layout manager to re-layout the panel.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.