Hey my course requires me to do some applet stuff that I'm unfamiliar with and I'm trying to position my button to a certain position on the screen. I can get the size of the button to whatever I like but not the x and y position.
public void init() {
button1 = new Button ("HIT TARGET");
button1.setPreferredSize(new Dimension(100, 100));
add(button1);
button1.setLocation(300, 300);
button1.addActionListener(this);
}
I've tried to search for my course document and google about this but I haven't found anything.