File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 4531
    
    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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to add Components to the right side of a JTabbedPane