File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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 ]
I agree. Here's the link:
subject: JTabbed Pane
It's not a secret anymore!