This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to add Components to the right side of a JTabbedPane
 
Similar Threads
want to make it an application
How to place the Tab in JTabbedPane on the right hand side of the tabbedpane
XPLookAndFeel problem on JTabbedPane
JTabbedPan
refreshing JFrame?