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

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

Ask a homework question - tutors are online