aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Setting attributes of a group of JTextFields Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Setting attributes of a group of JTextFields" Watch "Setting attributes of a group of JTextFields" New topic
Author

Setting attributes of a group of JTextFields

Xiamen
Greenhorn

Joined: Jul 09, 2001
Posts: 3
Hi Everyone,
I'd like to toggle the editable attribute of a group of JTextFields (more than 30), what will be the easiest way?
Is there any approach like setting the priority of ThreadGroup, which will affect the threads in the ThreadGroup?
Thanks in advance.
George Thomas
Ranch Hand

Joined: Oct 06, 2000
Posts: 35
Here's some code I wrote to go through the components on a JPanel. This might help.
Xiamen
Greenhorn

Joined: Jul 09, 2001
Posts: 3
Thanks Geroge,
Using Components array is a good method.

[This message has been edited by Xiamen (edited July 09, 2001).]
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"Xiamen",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting attributes of a group of JTextFields
 
Similar Threads
ThreadGroup ????
monitors / owners
Threads and Garbage Collection
Counting Threads
Threadgroups, must extend Thread?