Results 1 to 6 of 6
  1. #1
    KSBeyaz is offline Member
    Join Date
    Nov 2011
    Posts
    50
    Rep Power
    0

    Default JTextField with specific choices

    Hey guys , i have a homework .I close to complete it but There is a small problem.

    JTextField with specific choices-jtextfield.png


    How can i do Create JTextField with specific choices. i can search if you give what it is syntax start.


    Thanks

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

  3. #3
    KSBeyaz is offline Member
    Join Date
    Nov 2011
    Posts
    50
    Rep Power
    0

    Default Re: JTextField with specific choices

    thank you for that i had not known its name. Now i can do that

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: JTextField with specific choices

    Moved from 'Advanced Java'

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    KSBeyaz is offline Member
    Join Date
    Nov 2011
    Posts
    50
    Rep Power
    0

    Default Re: JTextField with specific choices

    Hey again i have a question again.

    in the example,i have been tasked that if a student have BC grade in the lesson,it should be appear in the jcombox first in the update section like that CB AA BA BB CC DC DD FD FF
    if student have DD grade it should be shown like that in the update section DD AA BA BB CB CC DC FD FF.

    is there a function or method which do that ?

    thanks.

  6. #6
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default Re: JTextField with specific choices

    JComboBox has methods to remove/add/insert elements. (See the API documentation).

Similar Threads

  1. Design choices...
    By Anza Power in forum AWT / Swing
    Replies: 6
    Last Post: 12-19-2011, 08:02 PM
  2. multiple choices in oracle
    By eng_hyzoom in forum New To Java
    Replies: 2
    Last Post: 01-11-2011, 03:24 PM
  3. JTextfield only allow specific chars
    By fuzzdn in forum AWT / Swing
    Replies: 1
    Last Post: 12-11-2010, 03:49 PM
  4. Replies: 1
    Last Post: 01-30-2009, 06:44 PM
  5. Replies: 2
    Last Post: 11-08-2008, 10:40 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
  •