Results 1 to 2 of 2
  1. #1
    aconti is offline Member
    Join Date
    May 2011
    Posts
    39
    Rep Power
    0

    Default drop down menu newbie

    Hi,

    first time trying to create a drop down menu for example the user will have a drop down from 1 to 3 and based on the number he will get a message like "cheap", "normal", "expensive"

    Can someone please instruct how to achieve this or direct me to an easy to understand example ?

    Thanks !

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,779
    Rep Power
    7

    Default

    Sounds like you want a JComboBox. Go to the Java API and read about this class. There is also a link to a "how to" guide.

Similar Threads

  1. drag and drop - disable intra component drop
    By tomba in forum AWT / Swing
    Replies: 4
    Last Post: 12-09-2009, 01:01 PM
  2. Replies: 0
    Last Post: 07-02-2008, 08:09 PM
  3. drop down menu
    By mike eriksen in forum AWT / Swing
    Replies: 2
    Last Post: 06-19-2008, 07:33 AM
  4. Drop down menu
    By BenNeiderlander in forum New To Java
    Replies: 3
    Last Post: 02-05-2008, 07:35 AM
  5. Replies: 3
    Last Post: 12-15-2007, 11:19 PM

Posting Permissions

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