Paint-problem - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.


OpheOphe Posts: 1Member

I'm having some problems with a boardgame I'm trying to make.
I manage to paint the graphics I want, but after about a second or two it all disappears, and I don't know how to make the painted graphics persist over time, and when the tabs are changed.

* Created on den 8 augusti 2008, 15:37
package ophesthud;

import javax.swing.*;
import java.awt.*;
import java.applet.Applet;

import javax.imageio.*;

* @author Ophe
public class Main extends JFrame {

public int mouseX;
public int mouseY;
public Image DwarfImage = (new ImageIcon("4040dwarf.jpg")).getImage();
public Image TrollImage = (new ImageIcon("4040troll.jpg")).getImage(); // Rad 1 heter rad 0
// 1 = Dv
Sign In or Register to comment.