GeeCON Prague 2014*
The moose likes Swing / AWT / SWT and the fly likes JTabbed Pane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTabbed Pane" Watch "JTabbed Pane" New topic
Author

JTabbed Pane

Patrick Mugabe
Ranch Hand

Joined: Jan 08, 2002
Posts: 132
Can anyone recommend a book which has great detail on JTabbedPanes. I am working on a small project and I want to make use of Tabs
Chris Shepherd
Ranch Hand

Joined: Jun 27, 2000
Posts: 286
have you checked out the tutorial at Sun? They really do a pretty good job of explaining the basics of all the Swing objects.
JTabbedPane is a very simple object to use compared to something like JFrame or JTable. just create a JPanel that holds the content you want associated with a particular tab and call tabbedPane.add("tab name",panel). Thats it. clicking that tab will show that panel.
Here is the link to sun's tutorial on JTabbedPane.
of course you could also just look at the Java Docs on JTabbedPane.
Hope some of this helps.
[ June 11, 2002: Message edited by: Chris Shepherd ]
 
GeeCON Prague 2014
 
subject: JTabbed Pane