Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2011
    Rep Power

    Default Adding jmenubar inside jtabbed pane

    Hello to all,
    I am doing some project and struck with a problem in swing.The problem is how to add a jmenubar inside jtabbed pane.I tried in netbeans,jmenu bar is adding to jframe but i require it to place inside jtabbedpane(without using jinternal frame).Please send me the email ( you know the solution.
    Thank you in advance.
    M.Suresh kumar,
    Scientist/Engineer 'SC'

  2. #2
    NRitH is offline Senior Member
    Join Date
    Feb 2011
    Rep Power


    You can't. A JMenuBar can be set only on a JFrame, InternalJFrame, or JRootPane. Besides, even if you could add one to any component, it would be a user-interface abomination. Maybe you can use a toolbar instead.

Similar Threads

  1. adding multiple jpanels to content pane
    By tooktook22 in forum AWT / Swing
    Replies: 2
    Last Post: 01-19-2011, 06:40 PM
  2. JPanel inside Jtabbed isn't display
    By Ravanelly in forum Advanced Java
    Replies: 7
    Last Post: 06-08-2010, 10:19 PM
  3. get component from jtabbed pane
    By anilkumar_vist in forum New To Java
    Replies: 1
    Last Post: 12-27-2009, 07:34 PM
  4. [SOLVED] Mouse event in JTabbed Pane
    By javanewbie in forum AWT / Swing
    Replies: 6
    Last Post: 06-10-2009, 08:50 AM
  5. [SOLVED] Jtabbed pane hide a tab...?
    By prabhurangan in forum AWT / Swing
    Replies: 5
    Last Post: 08-26-2008, 08:31 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts