• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTabbedPane question

 
James Brooks
Gunslinger
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi again,

OK, so I understand that a panel should be used for JTabbedPane operation, and I understand how to add tabs, but here's a question: how would I add pages dynamically during my program's operation?
[ February 04, 2008: Message edited by: Patrick Brooks ]
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you mean how would you add tabs dynamically it is no different than adding them statically. On some event you would just get the instance of your JTabbedPane and call addTab(...).

The API is a good place to find this information.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!