let me get straight to the point:
For my program I developed two custom classes that extend jPanel and have some text fields and check boxes in them.
(public class ServicePanel extends java.awt.Panel)
Now I've encountered three problems.
1. When add those panels to the GUI Palette and drag them into my main Form, the whole Layout window goes crazy. Little chunks of the imported panels go all over the place, flashing around, and I have to move my mouse over other objects to make the visible. This is annoying as hell, but at least things are fine when I compile.
2. I have a menu bar at the top of the Form. When I click on one of the menus at runtime, the menu opens perfectly. Only problem: If there is one of my custom panel classes in the way, it opens behind that panel. You can still see it a bit, but where it should be over the panel it just gets overlapped.
I also noticed that comboboxes in my custom panels don't open up, I assume that in fact they do, but just behind the panel.
3. An issue that is related to, but not caused by those panels: Assume the user types something into a textbox in a custom panel...how can I make the main form notice?
In other words: I want a class to Event-listen to Objects which got instantiated in another class.
Or, if this is not possible: I want the Object where the Event is happening to somehow adress the class it got instantiated by and do stuff there (invoke methods, change values, etc).
In the Java Docs and online I only found Event-Listeners for classes' own Objects...
While the first two problems may be caused by Netbeans or Java itself (Bugs), I'm sure the third one should be solvable quite easily, correct me if I'm wrong.
Thank you very much in advance for your answers!