Hi all
I'm pretty new to Java and Swing and I'm having quite a problem wrapping my head around the layout concept. Specifically (at the moment) I'm trying to create a JTabbedPane and add objects to one of the Tabs. It works fine when I just add one object (like a JTextField or even a JTable), but I'm stuck at adding more than one object. If I understand correctly, you cannot add more than one object directly to the tab, so I have tried to create a JPanel and adding items to it, but it's not really working. Any hint on how to do this would be much appreciated.
Thanks,
Anwar
I'm pretty new to Java and Swing and I'm having quite a problem wrapping my head around the layout concept. Specifically (at the moment) I'm trying to create a JTabbedPane and add objects to one of the Tabs. It works fine when I just add one object (like a JTextField or even a JTable), but I'm stuck at adding more than one object. If I understand correctly, you cannot add more than one object directly to the tab, so I have tried to create a JPanel and adding items to it, but it's not really working. Any hint on how to do this would be much appreciated.
Thanks,
Anwar