• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display problem in JFrame

 
chets patel
Ranch Hand
Posts: 77
Eclipse IDE Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20527
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JTextArea with line wrapping turned on?
 
chets patel
Ranch Hand
Posts: 77
Eclipse IDE Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
chets patel
Ranch Hand
Posts: 77
Eclipse IDE Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thats what I required. Thanks very much. JTextPane is good option.
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are welcome.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic