How to display the GUI that we developed, at middle of monitor screen
I want to display my GUI at middle of monitor screen
display =new JTextArea(5,20);
JScrollPane scroller =new JScrollPane(display);
getContentPane().add(scroller, BorderLayout.SOUTH);
getContentPane().add(gui);
pack();
setSize(300,250);
show();

