Results 1 to 2 of 2
Thread: If Statements with Jtextfield
- 11-26-2009, 09:55 PM #1
Member
- Join Date
- Nov 2009
- Posts
- 3
- Rep Power
- 0
If Statements with Jtextfield
Basically i want to do a certain thing when my textfield is enabled here is the code (it doesnt work, but i think it explains wot i want to do better)
this is an if statement within another that works on a push of a button. any help?Java Code:if (txtFruit1.setEnabled == true) { Fruit1 = rnd1.nextInt(3); txtFruit1.setText(Fruit1 + " "); }
SOVLED NMLast edited by owain1221; 11-26-2009 at 10:08 PM. Reason: SOVLED DELETE
-
Similar Threads
-
age: using if statements
By yasmin k in forum New To JavaReplies: 2Last Post: 10-04-2009, 09:50 PM -
Help with if-else statements
By porchrat in forum New To JavaReplies: 4Last Post: 03-23-2009, 04:24 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 -
Need help - using algorithm statements
By javanewbie in forum New To JavaReplies: 2Last Post: 07-23-2008, 11:20 AM -
Help with if else statements
By zoe in forum New To JavaReplies: 1Last Post: 07-24-2007, 07:56 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks