Results 1 to 2 of 2
  1. #1
    NickkicN is offline Member
    Join Date
    Aug 2008
    Posts
    5
    Rep Power
    0

    Default URGENT choicebox

    How do u declare and initialize choice boxes??

    Is it like

    String[] TypeItems = {"Regular", "Diet"};

    Choice cboType = new Choice(TypeItems);

    or

    String[] TypeItems = {"Regular", "Diet"};

    cboType = new Choice(TypeItems);

    the latter gave a compiler error saying that <identifier> is expected

    PLEASE HELP
    MANY THANKS

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. URGENT choicebox
    By NickkicN in forum New To Java
    Replies: 2
    Last Post: 08-14-2008, 06:53 PM
  2. Please Help!!!!Its Urgent
    By shru07 in forum AWT / Swing
    Replies: 1
    Last Post: 07-31-2008, 06:50 PM
  3. Hi, need some urgent help!
    By jdark in forum New To Java
    Replies: 2
    Last Post: 04-18-2008, 06:50 AM
  4. please help urgent
    By ananas7777 in forum AWT / Swing
    Replies: 2
    Last Post: 12-25-2007, 08:30 AM
  5. need urgent help...
    By SCS17 in forum New To Java
    Replies: 1
    Last Post: 11-13-2007, 07:52 AM

Posting Permissions

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