I wonder if we have any Java expert here? I'm wondering 'cos I started learning Java and I'm having problems with components being invalid. For some reason a basic JTextField is valid in one panel while the same JTextField is invalid in the other panel. It's really frustrating. So, what causes components to be invalid?
Another annoying (or confusing) thing is that, if I set invalid panel as JApplet content pane at the beginning of the program, it works as it's supposed to, but if I set it later (there was some other panel been set before and now it's replaced) - it doesn't work at all. Actually it's set, but isn't displayed. Even if I call such functions as validate() and repaint().