Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Button with Dropdown Menu?

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Button with Dropdown Menu?

    Hi There,


    I am working on the swing application,and in my application i have a toolbar with a no of button's placed on them.Now from the buttons that are placed on the toolbar,some of them needs a drop down menu i.e Update Button has three submenu's 1)Update driver,2)Update vechile 3)Update User.i would not like to have a "seperate menubar" just for some of these Button.I googled this question and what i came across is that we can make use of popup menu to resolve these kind of problem.Is there any other alternative other than popupmenu?Can the popup menu be futher divided into submenu's ? I.e Update Driver->Update Name->First name,Middle name,Last Name.








    Kind Regards,
    Manish87


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Button with Dropdown Menu?

    How about a JComboBox?

  3. #3
    Junior Member
    Join Date
    Aug 2010
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Button with Dropdown Menu?

    Hi,

    Thanks for the reply copeg.

    1.Well,is it possible to have Submenus in combo box? I.e Update button(placed on toolbar) has several menus item in it and each menu item has several sub menu's in them.

    2.Can we place Imageicon on the combo box?










    Kind Regards,
    Manish87

Similar Threads

  1. problem with help menu.
    By Toggo in forum What's Wrong With My Code?
    Replies: 11
    Last Post: December 12th, 2010, 05:13 PM
  2. Drop-Down Menu onmouseover
    By Maylaur in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 24th, 2010, 05:40 PM
  3. Menu of Menus Help
    By Strivelli in forum Java Theory & Questions
    Replies: 10
    Last Post: June 5th, 2010, 02:40 PM
  4. popup menu
    By antonio69 in forum AWT / Java Swing
    Replies: 1
    Last Post: May 20th, 2010, 04:24 AM
  5. Help with Menu/BinSearch
    By jhar131 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: April 19th, 2010, 07:38 PM