• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to make a sub tabbedpane in each pane?  RSS feed

 
joo how
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


anyone can help ? for example. i want a sub tab in tab 1
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Please follow Java coding conventions. A class name should start with an uppercase letter, and the first letter of each internal word should be capitalized. TabbedPane1, not tabbedpane1

2. All Swing components should be constructed and their methods called only on the EDT, unless specifically documented as thread-safe. And some of that documentation is wrong in that respect up to Java 6 (corrected in Java 7), so it's safer to call all swing methods, with the possible exception of repaint(), on the EDT. If you don't understand what I'm saying, find and go through the Oracle tutorial on 'Concurrency in Swing.'

3. Your question isn't very clear. What's a 'sub tab?' Have you gone through the tutorial linked from the API for JTabbedPane?
 
joo how
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry for that. what i meant was http://developers.sun.com/docs/web-app-guidelines/uispec4_0/05-navigation.html#5.1.2
the the second picture. inside tab2 can have more tab
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you gone through the tutorial linked from the API for JTabbedPane?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!