aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How to add Components to the right side of a JTabbedPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to add Components to the right side of a JTabbedPane" Watch "How to add Components to the right side of a JTabbedPane" New topic
Author

How to add Components to the right side of a JTabbedPane

Anna Vargas
Greenhorn

Joined: May 18, 2012
Posts: 2
Hi all, I'm working with a Swing App and I have a JTabbedPane with three tabs and I want to add a JComboBox and a JButton to the right side of the same tabbed pane (not beside the last tab). Something like this:

___MyFrame___________________________________________________________| _ | |X|

/"""""""""\/""""""""""\/""""""""""\ _____space _____ space_____ [JComboBox... ] | JButton |



Someone of you know how to achieve this?

Thanks in advance,
Anna
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

Hello Anna, and welcome to the Ranch!

You may be able to get some ideas from these threads:
How to place components beneath tabs in right oriented JTabbedPane
How to add a jbutton to tabbed pane headder?
Using JtabbedPane


luck, db
There are no new questions, but there may be new answers.
Anna Vargas
Greenhorn

Joined: May 18, 2012
Posts: 2
Oh thank you Darryl you're great!
I spent three days searching and testing without success.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to add Components to the right side of a JTabbedPane
 
Similar Threads
XPLookAndFeel problem on JTabbedPane
JTabbedPan
want to make it an application
refreshing JFrame?
How to place the Tab in JTabbedPane on the right hand side of the tabbedpane