Java Graphics Problem


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Java Graphics Problem

  1. #1
    Join Date
    Dec 2005
    Posts
    1

    Java Graphics Problem

    Hello,

    I'm making a checkers game using a java applet. Currently, the board is set up for gameplay. I used Java's Graphics class to draw the board and the pieces. However, whenever I minimize the applet and then maximize it, the checker board's colors disappear. I suppose I must note that the board is in the background and the pieces are in the foreground. I was just wondering how I could prevent this from happening. Any suggestions would be helpful. Thanks.

  2. #2
    Join Date
    Mar 2004
    Posts
    635
    When the applet is maximized, you could try calling repaint(). That might work.

Similar Threads

  1. Replies: 3
    Last Post: 03-21-2007, 04:28 PM
  2. Java Applet Compiler problem?
    By mdl in forum Java
    Replies: 3
    Last Post: 03-07-2005, 03:34 AM
  3. java problem
    By KateP in forum Java
    Replies: 2
    Last Post: 04-30-2003, 06:52 PM
  4. Simple Java Problem - Please Help!
    By Chris Ransley in forum Java
    Replies: 2
    Last Post: 05-06-2002, 06:52 AM
  5. Replies: 0
    Last Post: 02-20-2002, 01:05 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center