Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Graphics.drawChars() and JComponent  RSS feed

 
Grigory Ptashko
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.
I'm porting an application from AWT to SWING. In fact it is a telnet client where terminal window with all output and input was a java.awt.Canvas.
Now I use JComponent instead of Canvas. But I've found a problem. In repaintComponent I do Graphics.drawChars() and it was fine when I used Canvas but now everything that is painted looks odd.. Letters overlap, different spaces between letters and so on..
Any one have a suggestion about solving this ?
Thanks in advance.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!