This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JTabbedPane - addTab issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTabbedPane - addTab issue" Watch "JTabbedPane - addTab issue" New topic
Author

JTabbedPane - addTab issue

Matt Fielder
Ranch Hand

Joined: Oct 27, 2004
Posts: 158
I have lines in my Tabbed Pane class to add tabs to the panes. This is one.



According to the API, I can use this framework for this setup.


void addTab(String title, Icon icon, Component component, String tip)
Adds a component and tip represented by a title and/or icon, either of which can be null.


I have created a Welcome() class as a dummy class so that the reference doesn't fail.

I think the issue is with the "Component component" of new Welcome(). Why is this giving me problems and how should I proceed? Should I make a method that calls the Component constructor and call that method instead?

Thanks in advance
Matt

JDK 1.5
IDE Eclipse
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTabbedPane - addTab issue
 
Similar Threads
Tooltip in JTabbedPane
custom DefaultListCellRenderer only works on one PC
How to display alert box at the top of all frames ?
JTabbedPane Focus problem:
Design / Development Question