I am new in java swing and I created a frame... i checked the documentation API and it has this "setSize()" method.. so yeah i did set the size of my frame but everytime i run the program, it is not on the size that i have specified
public static void main(String[] args)
{
CalculatorBody calculator = new CalculatorBody();
calculator.setTitle("Calculator Body");
calculator.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
calculator.setSize(400,417);
calculator.setLocation(400, 250);
calculator.pack();
calculator.setVisible(true);
return;
}