Adding component at runtime
Well, maybe this is not directly related to applets, but maybe I'm doing something wrong or there's a different way to add components to applets at runtime. I have a simple Applet developed in NetBeans 6.5: there's one button, label, combobox and a panel. What I want to do is to add a (label/button/text field, etc....) to the panel when the user clicks the button. I tried:
but it doesn't work - the button is either not added or not visible.
Strangely, I can add some of the existing components with success, but not newly created ones.