• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTabbed Pane

 
Patrick Mugabe
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic