aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Display problem in JFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Display problem in JFrame" Watch "Display problem in JFrame" New topic
Author

Display problem in JFrame

chets patel
Ranch Hand

Joined: Apr 27, 2010
Posts: 74

I am developing on application in swing. I want to display some big data on JFrame. If I display a big string on frame, it does not go to next line when it ends at the current line as it works on pixel. What is the solution for this. How people display data generatlly.

In my case I have 5 fields. something like key value. but value is big string. Please help on this.

Thanks in advance.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19692
    
  20

JTextArea with line wrapping turned on?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
chets patel
Ranch Hand

Joined: Apr 27, 2010
Posts: 74

Thanks for your solution. it worked. Can I do some fancy identations or font change in that.
i.e for some text xyz font and for some text other font within the same window.

Thanks in advance.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10329
    
    8

Check our JEditorPane and JTextPane


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
chets patel
Ranch Hand

Joined: Apr 27, 2010
Posts: 74

Thats what I required. Thanks very much. JTextPane is good option.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10329
    
    8

You are welcome.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Display problem in JFrame