Creating JTextArea on main window of app ?
- From: "TonyB" <tonyb@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 25 Feb 2007 23:52:13 GMT
I'm trying out a simple gui. I'm trying to create an text area to allow me
to display some text from inside the app if a menu item is clicked. I think
JTextArea will do the job, but I'm having problems making it appear.
The code to add to my container is
Container contentPane = frame.getContentPane();
JTextArea itemArea = new JTextArea();
contentPane.add(itemArea);
is the contentPane the main area of the window ?
Tony
.
- Follow-Ups:
- Re: Creating JTextArea on main window of app ?
- From: gethostbyname@xxxxxxxxx
- Re: Creating JTextArea on main window of app ?
- From: gethostbyname@xxxxxxxxx
- Re: Creating JTextArea on main window of app ?
- From: Michael Dunn
- Re: Creating JTextArea on main window of app ?
- Prev by Date: Re: move four balls in four differnt directions
- Next by Date: Re: Creating JTextArea on main window of app ?
- Previous by thread: move four balls in four differnt directions
- Next by thread: Re: Creating JTextArea on main window of app ?
- Index(es):