This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Any Java experts?


Any Java experts?

Postby David Horn » Apr 13, 2006 @ 6:07pm

I'm having a bit of trouble with a Swing app I'm building. It consists of a JTabbedPane which contains, in each tab, another JTabbedPane and within each of those tabs, a class which extends JPanel.

What I'd like to do is be able to switch a tab automatically, ie, changing the tab in the outer tabbedpane and then changing to one in the inner tabbed pane.

How would I refer to these outer tabbed panes from within the JPanels? I'm at a bit of a loss - I'm assuming I'd need to mess around with action events, but I have no idea where I'd set them up so they're accessible to the panel classes.

Thanks,

David.
Crosswind technique: "Using your peripheral vision, react to body movements, gasps, groans, and shouts from the other side of the cockpit, and always remember that it's better to be lucky than good."
User avatar
David Horn
<b>The Boss</b>
 
Posts: 1867
Joined: Feb 17, 2002 @ 2:10pm
Location: PocketGamer Towers (New York, Paris, Leeds)


Postby refractor » Apr 15, 2006 @ 2:29pm

User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby David Horn » May 1, 2006 @ 5:11pm

Crosswind technique: "Using your peripheral vision, react to body movements, gasps, groans, and shouts from the other side of the cockpit, and always remember that it's better to be lucky than good."
User avatar
David Horn
<b>The Boss</b>
 
Posts: 1867
Joined: Feb 17, 2002 @ 2:10pm
Location: PocketGamer Towers (New York, Paris, Leeds)


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron