www.pudn.com > program.rar > PaintStore.java
import java.awt.Color;
import java.awt.Graphics;
import java.util.Random;
public class PaintStore {
public void drawStore(Tu t){
Random r = new Random();
Graphics g = t.pg.getGraphics();
int jpheight = t.pg.getHeight();
int jpwidth = t.pg.getWidth();
int jpx = t.pg.getX();
int jpy = t.pg.getY();
g.setColor(Color.WHITE);
g.fillRect(jpx, jpy, jpwidth, jpheight);
for(int i=0;i