English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

hello ! I want to implement JTabbedPane in all of my forms of my project.But the problem is that i already made all forms by extending JFrame.And to implement JTabbedPane u need panel.
I want to display TabbedPanes(containg my all forms) on each of my form.And clickinig on any tabbedpane should migrate me to the corresponding form.
How can i do that? Plz reply soon

2007-02-09 01:24:32 · 1 answers · asked by anubhav 1 in Computers & Internet Programming & Design

1 answers

To put your forms into JFrames, you actually added them to a JPanel (the JFrame's contentpane). So, change your code to add the forms to a JPanel (each form to a separate JPanel instance). Then add the JPanel instances to a JTabbedPane. Then add the JTabbedPane to the JFrame.

2007-02-09 13:11:55 · answer #1 · answered by vincentgl 5 · 0 0

fedest.com, questions and answers