import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import javax.swing.ImageIcon;
import javax.swing.JPanel;
public class Clock extends JPanel {
private String pink;
private String weird;
private String rose;
private Image back;
public Pointer pPink;
public Pointer pWeird;
public Pointer pRose;
public Clock(){
pPink = new Pointer(3600,pink);
pWeird = new Pointer(60,weird);
pRose = new Pointer(1,rose);
}
public void paint(Graphics g) {
if (pPink.img != null){
System.out.println("got through if statement pPink");
g.drawImage(pPink.getImg(), 200, 200, null);
}
if (pWeird.img != null){
System.out.println("got through if statement pWeird");
g.drawImage(pWeird.getImg(), 250, 200, null);
}
if (pRose.img != null){
System.out.println("got through if statement pRose");
g.drawImage(pRose.getImg(), 300, 200, null);
}
ImageIcon i = new ImageIcon(this.getClass().getResource("wheel.png") );
back = i.getImage();
g.drawImage(back,50,50, null);
}