• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jtextarea  RSS feed

 
abalfazl hossein
Ranch Hand
Posts: 635
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is it possible to create color, size for three line in a Jtextarea so every line has its own color and font?Is it possible that put text in text areaso it has distance to right side?
 
Rob Spoor
Sheriff
Posts: 21095
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You want a JTextPane, not a JTextArea. With the JTextPane's StyledDocument you can do more than with JTextArea's Document.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!