I have the following code to run a simple number guessing program on the click of a button: public class test3 implements ActionListener { public void create() { Dimension s=new Dimension(400,400); JFrame l=new JFrame(); l.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); l.setSize(s); l.setResizable(true); Dimension s1=new Dimension(400,200); JPanel me=new JPanel(); JPanel ne=new JPanel(); JLabel kingsman=new JLabel ("GUESS THE KING'S NUMBER!"); kingsman.setFont(new Font("Serif", […]
The post JFrame losing its structure and looks on resizing after button click appeared first on BlogoSfera.