Results 1 to 2 of 2
  1. #1
    sz20b is offline Member
    Join Date
    Oct 2010
    Rep Power

    Default Java Swing repaint

    I develop an image editor program, with java swing. There is a button for add/remove "pixel grid" (showing each pixels), I use here repaint() for redrawing the screen with pixel grid.
    My problem is that it works in many PCs, but there is several, where this repainting is very slowly, it takes minutes.
    I don't know what can be the problem...
    Can anybody help, me?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power


    -- There's a bug in the code you haven't showed us
    -- The Graphics driver isn't up to date
    -- Anybody's guess

    To get better help sooner post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem. Also post the hardware, OS and Java version information for the PCs on which you tested and indicate which of them experience the slowdown.


Similar Threads

  1. repaint method
    By manojp476 in forum CLDC and MIDP
    Replies: 10
    Last Post: 08-12-2010, 04:12 PM
  2. repaint every
    By 3xpr1ment in forum AWT / Swing
    Replies: 10
    Last Post: 03-23-2010, 06:39 PM
  3. Problem with repaint();
    By dunafrothint in forum AWT / Swing
    Replies: 8
    Last Post: 01-07-2010, 01:33 AM
  4. Repaint problem
    By swimberl in forum Java 2D
    Replies: 1
    Last Post: 02-16-2008, 10:12 PM
  5. Repaint problem
    By swimberl in forum Java 2D
    Replies: 0
    Last Post: 01-06-2008, 04:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts