Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I solve this problem?

Status
Not open for further replies.

jduk

Programmer
Nov 26, 2003
4
GB
In java swing, I've created a JTabbedPane which contains a JEditorPane to display web pages. When I type a URL in the web address bar of the application I'm creating, the only tabbed pane to be updated is the last once created (The last object created?), rather than the tab which I have selected.

How do I control which tabbedpane updates? Presumably there is some way of labelling each tabbedpane object.

Thanks in Advance.
 
According to "A tab is represented by an index corresponding to the position it was added in, where the first tab has an index equal to 0 and the last tab has an index equal to the tab count minus 1."

I am not familiar with JTabbedPane's myself, so I will point you at some examples of how they can be used:
Good luck!

--Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top