File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem: Slow drawing on a jpanel

George Raptis
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone! I am working on a free draw project but I've been stuck. I am trying to create a XPanelGraphics (extended JPanel) in which I can draw. The user can either draw or erase what he/she has drawn. I use jLayeredPanel with two layers, xPanelGraphics both. Here is the code of the XPanelGraphics

The problem is that it is really slow. For example when I am trying to draw a circle quickly, the result I get is what you see in the attached png file. Is there a way to make it faster?
[Thumbnail for slowXPG.PNG]
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic