• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

jtabpane

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a jtabpane with 2 tabs. any idea how to make the 2nd tab appear first when i run my program?
 
Rancher
Posts: 3063
23
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the JTabbedPane API and take a look at the "set..." methods.

You will find a method that allows you to select a specific tab.

By reading the API you may also find other helpful methods.
 
Marshal
Posts: 65034
247
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also find out about tabbed panes in the Java™ Tutorials; the Method RC is thinking of is linked to from the tutorial.
And welcome to the Ranch
 
dominicc ho
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Rob Camick wrote:Read the JTabbedPane API and take a look at the "set..." methods.

You will find a method that allows you to select a specific tab.

By reading the API you may also find other helpful methods.



Thanks rob!
 
dominicc ho
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:You can also find out about tabbed panes in the Java™ Tutorials; the Method RC is thinking of is linked to from the tutorial.
And welcome to the Ranch


Thanks!
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!