• Post Reply Bookmark Topic Watch Topic
  • New Topic

PopupMenu In JTabbedPane

 
Isaac Hewitt
Ranch Hand
Posts: 191
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I have a JTabbedPane and I would like to know if it is possbile to insert a PopupMenu in that small background area just above and to the right of the tabs (there are only 2 tabs). Do I have to go through the JTabbedPane UI ? Thanks.
 
Rob Camick
Ranch Hand
Posts: 2699
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Customizing the UI would be the proper way.

For a hack you can try:

 
Isaac Hewitt
Ranch Hand
Posts: 191
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great. Thanks for this example. I compiled it in NetBeans and I think I could possibly have a Popup menu in place of the checkbox.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!