Results 1 to 3 of 3
Thread: isEnabled() method
- 09-11-2011, 04:48 AM #1
Member
- Join Date
- Sep 2011
- Posts
- 6
- Rep Power
- 0
-
Re: isEnabled() method
The code is written to be run when the tRate text field is created, so this behavior should come as no surprise. Writing an if block will not magically make it activate if tRate is enabled. Instead it will only be able to tell you the state of tRate at that point in time, right when the GUI is created. It seems you instead want to listen for when tRate is enabled, and that means having to listen for this event, probably by adding a PropertyChangeListener to your JTextField and listening for the "enabled" property.
- 09-11-2011, 05:07 AM #3
Similar Threads
-
Can i Pass a variable as a parameter from one method to other method
By Anagha in forum New To JavaReplies: 18Last Post: 04-18-2011, 05:39 AM -
Turning Recursion Method into Iterative method
By mattakuevan in forum New To JavaReplies: 9Last Post: 06-15-2010, 06:46 AM -
method not abstract, does not override actionperformed method.
By Theman in forum New To JavaReplies: 2Last Post: 03-26-2010, 05:12 PM -
Calling a method in a different class from within a method problem
By CirKuT in forum New To JavaReplies: 29Last Post: 09-25-2008, 07:55 PM -
cannot call private method from static method
By jon80 in forum New To JavaReplies: 3Last Post: 05-07-2008, 08:37 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks