• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to add Components to the right side of a JTabbedPane

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh thank you Darryl you're great!
I spent three days searching and testing without success.
 
reply
    Bookmark Topic Watch Topic
  • New Topic