Results 1 to 6 of 6
Thread: JTextField with specific choices
- 12-29-2011, 05:31 AM #1
Member
- Join Date
- Nov 2011
- Posts
- 50
- Rep Power
- 0
-
Re: JTextField with specific choices
I would use a JComboBox for this, not a JTextField.
- 12-29-2011, 05:59 AM #3
Member
- Join Date
- Nov 2011
- Posts
- 50
- Rep Power
- 0
Re: JTextField with specific choices
thank you for that i had not known its name. Now i can do that
- 12-29-2011, 08:10 AM #4
Re: JTextField with specific choices
Moved from 'Advanced Java'
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 12-30-2011, 07:52 PM #5
Member
- Join Date
- Nov 2011
- Posts
- 50
- Rep Power
- 0
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.
- 12-30-2011, 09:08 PM #6
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,545
- Rep Power
- 11
Re: JTextField with specific choices
JComboBox has methods to remove/add/insert elements. (See the API documentation).
Similar Threads
-
Design choices...
By Anza Power in forum AWT / SwingReplies: 6Last Post: 12-19-2011, 08:02 PM -
multiple choices in oracle
By eng_hyzoom in forum New To JavaReplies: 2Last Post: 01-11-2011, 03:24 PM -
JTextfield only allow specific chars
By fuzzdn in forum AWT / SwingReplies: 1Last Post: 12-11-2010, 03:49 PM -
how to access jTextField of one JFrame1 from JFrame2 & Modify JTextField contents
By sumit1mca in forum AWT / SwingReplies: 1Last Post: 01-30-2009, 06:44 PM -
how do i print a specific txt file on a specific printer
By nikhilbhat in forum New To JavaReplies: 2Last Post: 11-08-2008, 10:40 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks