I am trying to position my JFrame to be in the center of the screen when it opens. Is there code that I can put here to make my program start in the center of the screen.
import javax.swing.JFrame;
public class StarFuryTest
{
public static void main(String[] args)
{
StarFury menuFrame = new StarFury();
menuFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
menuFrame.setSize(600,800);//Set the size of the frame
menuFrame.setVisible(true);
}
}
I am making a paint program. Also what are the statements that turn off decorations and restricts resizing. What is the statement that enters fullscreen.