This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Problem: Slow drawing on a jpanel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem: Slow drawing on a jpanel" Watch "Problem: Slow drawing on a jpanel" New topic

Problem: Slow drawing on a jpanel

George Raptis

Joined: Apr 21, 2011
Posts: 1
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Problem: Slow drawing on a jpanel
It's not a secret anymore!