Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 28th, 2003, 02:50 AM
Registered User
 
Join Date: Oct 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default change TextArea in GUI from another class

Hey, I know you can do this I just don't know what to do. First off I have a GUI with a few TextAreas w/ the rows and cols defined... what I wanna do is setText for a specific TextArea, but from antoher class...I was thinking like making a constructor in my GUI like. I have about 10 TextArea's and was thinking of making a method like these for each TextArea...I dont' know if i would put that after i add the components, but i want them to show before you input text....Or would i have to add it again?

-----in my GUI class somewhere..
public void setText(JTextArea message)
{
textArea1.setText(message);
}
-----in my GUI class


-----Another Class

String message = "TextArea1";
GUIclass name = new GUIclass();
name.setText(message);
-----Another Class

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
change content of textarea from select darkhalf Javascript 1 April 26th, 2007 06:03 AM
Java Gui (Reload Class) Axar Java GUI 0 June 10th, 2006 05:35 PM
XSLT change class attribute by ID? matallen XSLT 8 March 1st, 2006 05:00 PM
change class on browse button! MichaelTJ .NET Web Services 0 November 11th, 2003 11:52 AM



All times are GMT -4. The time now is 09:24 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.