Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

What Swing Component do I need?

Thread view: 
Benjamin - 20 Mar 2007 03:38 GMT
Hi, I'm kinda new to the Swing API. What text component should I use
for a large chunk of unformatted text that I want to display to the
user. JLabel doesn't seem to fit the bill (it's too small and for
labeling components). Thanks
Andrew Thompson - 20 Mar 2007 04:00 GMT
> Hi, I'm kinda new to the Swing API. What text component should I use
> for a large chunk of unformatted text that I want to display to the
> user. JLabel doesn't seem to fit the bill (it's too small and for
> labeling components).

JTextArea would best suit that, perhaps
uneditable or disabled if appropriate.

For an example, check the applet here..
<http://www.physci.org/test/resize/>
The drop-down menu on the upper right,
shows the various forms of the text area.

Andrew T.
Thomas Fritsch - 20 Mar 2007 11:21 GMT
> Hi, I'm kinda new to the Swing API. What text component should I use
> for a large chunk of unformatted text that I want to display to the
> user. JLabel doesn't seem to fit the bill (it's too small and for
> labeling components). Thanks

See in
<http://java.sun.com/docs/books/tutorial/uiswing/components/text.html>

Signature

Thomas



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.