1. JFrame properties (right click on JFrame --> properties)
2. code tab --> Form size policy --> Generate resize code
3. be sure "Generate center" is checked.
4. close
without GUI,
private static void createAndShowGUI() {
//Create and set up the window.
JFrame frame = new BabyZoo();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Display the window.
frame.pack();
frame.setLocationRelativeTo(null); //center the window
frame.setVisible(true);
}
I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post I would like to read this
ReplyDeleteData Science Training in Chennai
Data Science course in anna nagar
Data Science course in chennai
Data science course in Bangalore
Data Science course in marathahalli
Data science course in bangalore