• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to add Components to the right side of a JTabbedPane

 
Anna Vargas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Anna Vargas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh thank you Darryl you're great!
I spent three days searching and testing without success.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic