Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
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:
Swing / AWT / SWT
2 textfields 1 model
Ronnie Phelps
Ranch Hand
Posts: 329
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I'm trying to assign one model to two different text fields in order to have the same data in both text fields when text is entered. How would I go about doing this?
King Tan
Greenhorn
Posts: 6
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
JTextField t1 = new JTextField("hello");
JTextField t2 = new JTextField();
t2.setDocument(t1.getDocument());
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Dynamic Forms
Issue in submitting the Form with Arraylist in Struts 1.1
How to reflect an event that occurs in a bean to an applet which holds the bean ?!!
Dirty Forms
locking text fields in java
More...