🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.java.programmer
2 messages
2 total messages Started by Ramon F Herrera Thu, 04 Jul 2002 23:41
How to select a tabbed pane?
#287
Author: Ramon F Herrera
Date: Thu, 04 Jul 2002 23:41
12 lines
1284 bytes
Sun JDK 1.4
Borland JBuilder 7 SE

I have created a JTabbedPane, and I added 3 JPanels to it.
At run time, the first (leftmost) panel is selected, but I would
like to have the last panel selected.

How do I select a panel programmatically?

TIA,

-Ramon F. Herrera
Re: How to select a tabbed pane?
#288
Author: Robert Mahnke
Date: Thu, 04 Jul 2002 23:52
13 lines
1662 bytes
> I have created a JTabbedPane, and I added 3 JPanels to it.
> At run time, the first (leftmost) panel is selected, but I would
> like to have the last panel selected.
> 
> How do I select a panel programmatically?

JTabbedPane#setSelectedComponent(Component c)
JTappedPane#setSelectedIndex(int index)

Robert
-- 
Hompage und FAQ von de.comp.lang.java:
www.dclj.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads