Paint-problem - Programmers Heaven

Howdy, Stranger!

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

Categories

Paint-problem

OpheOphe Posts: 1Member
Hello!

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.

[code]/*
* Thud.java
*
* Created on den 8 augusti 2008, 15:37
*/
package ophesthud;

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

import java.io.*;
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.