All pastes #453470 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-04-23 00:58 UTC
rendered paste body
class Data {
	int clickCount=0; 
}


lass mapPanel extends JPanel {
	
	Image map;
	String filename;
	int width, height, fullwidth, fullheight, wwidth, wheight; //pic variables
	public int tempX, tempY, tempX2, tempY2;
	public static ArrayList list = new ArrayList(0);
	MyPoint point0, point1;
	
	mapPanel() {
		setData(Data );
		addMouseListener(new MouseAdapter() {
			public void mouseReleased(MouseEvent e) {
				tempX = e.getX();
				tempY = e.getY();
				list.add(new MyPoint(tempX, tempY));
				clickCount++;
				System.out.print(clickCount);
				repaint();
			}
		});
	}
...