Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Programmer Certification (OCPJP)
setEnabled
Willie Toma
Ranch Hand
Posts: 78
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
If there is no setEnabled method used, is the default set to true?
Fei Ng
Ranch Hand
Posts: 1246
1
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Which class are you talking about?
Willie Toma
Ranch Hand
Posts: 78
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Here is the example that I ran across:
msgTx = new TextField( 60 ); msgTx.setEnabled(false); msgTx.setEditable(false);
I think it's correct to say, it's in the java.awt.Component class?
Thanks....
Anonymous
Ranch Hand
Posts: 18944
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
setEnabled public void setEnabled(boolean b) Enables or disables this component, depending on the value of the parameter b. An enabled component can respond to user input and generate events. Components are enabled initially by default. Parameters: b - If true, this component is enabled; otherwise this component is disabled. Since: JDK1.1 See Also: isEnabled()
It says that the components are enabled by default.
HTH
Shyam
Fei Ng
Ranch Hand
Posts: 1246
1
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
like Shyamsundar said..
enabled by default.
I am displeased. You are no longer allowed to read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Checkbox using Swing
radio buttons being non focusable
To make JSlider frozen
Problem updating a window
need to make a window modal
More...