I was always taught to do setContentPane() with Frames and InternalFrames.
As for threading, I had a tough time understanding how to get that to work properly and usually ended up using Swing...
Type: Posts; User: GoodbyeWorld
I was always taught to do setContentPane() with Frames and InternalFrames.
As for threading, I had a tough time understanding how to get that to work properly and usually ended up using Swing...
I've never got why you call call SwingUtilities invokeLater. They do that a lot in the java examples.
As for pack, why does it have to come before setVisible() ?
Here's one that does it. Note, I found that what causes it to happen is if the font is resized and then the JFrame window is iconified or changed in size. (You have to do something like mnimize the...
I have a JPanel that keeps resizing when the font in my JTextArea, which is in the JPanel, resizes. I don't like that. I want it to remain the same size. The JTextArea already scroll bars. I have...