• Post Reply Bookmark Topic Watch Topic
  • New Topic

Font

 
Le Wang
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Experts, I want to show a string in the JTextArea, but I want to show different fonts of this string, I use setFont() several times, it doesn't work, so which method I should use?

Thanks in advance!
 
dubey vandana
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
just try this....
Font thisFont;
...
thisFont = new Font("Arial", Font.PLAIN, 10);
thanx.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!