MagicButton - this.y = yval public void set_X(int givenx...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import javax.swing.JButton; i public class MagicButton extends JButton{ p private int x; private int y; p public MagicButton(int xval, int yval) { this.x = xval;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: this.y = yval; } public void set_X(int givenx) { this.x = givenx; } public int get_X() { return x; } public int get_Y() { return y; } }...
View Full Document

This note was uploaded on 04/13/2010 for the course SYSC 2101 taught by Professor Babac during the Winter '10 term at Carleton CA.

Ask a homework question - tutors are online