Results 1 to 2 of 2
  1. #1
    theborland is offline Member
    Join Date
    Dec 2010
    Rep Power

    Default Dialog box clearing graphics

    Im having a problem - I have graphics being drawn in an applet's paint method and elsewhere in the applet (some mouse listening). I have a dialog box that pops up and when it shows it erases the image it covers. This seems to happen on XP systems but not Windows 7.
    Any ideas?

    First post, I could send code, if needed.

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


    Indicative of not performing custom painting the correct way. Recommended reading:
    Lesson: Performing Custom Painting (The Java™ Tutorials > Creating a GUI With JFC/Swing)

    Also, never never never use getGraphics() of a component.


Similar Threads

  1. clearing/reseting text fields in GUI
    By reis3k in forum New To Java
    Replies: 1
    Last Post: 12-02-2010, 07:12 PM
  2. emptying/clearing an array
    By i8java in forum New To Java
    Replies: 2
    Last Post: 08-09-2010, 02:39 PM
  3. Help Clearing BufferedImage
    By ketann in forum Java 2D
    Replies: 19
    Last Post: 03-29-2010, 08:45 PM
  4. Help needed Clearing the contents of a File
    By sandeepsai17 in forum New To Java
    Replies: 5
    Last Post: 07-02-2009, 03:31 PM
  5. MouseListener - clearing a textField when clicked on?!
    By sailor_girl in forum AWT / Swing
    Replies: 4
    Last Post: 03-01-2009, 06:01 PM

Posting Permissions

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