Hi,
I am new to Java and my swing GUI is resizing
a = new JFrame();
a.setSize(x,y); <-- desire fixed size
a.setVisible(true);
...
a.setLayout(new LayoutFlow()); // <-- suspect problem
a.add(stuff);
a.pack();
a.setVisible(true); // <-- the size is no longer x,y
Do I have to setSize(x,y) every time the content changes, or is there an easier way?
Thanks,
--Glen
Memoria mihi benigna erit qui eam perscribam
I am new to Java and my swing GUI is resizing
a = new JFrame();
a.setSize(x,y); <-- desire fixed size
a.setVisible(true);
...
a.setLayout(new LayoutFlow()); // <-- suspect problem
a.add(stuff);
a.pack();
a.setVisible(true); // <-- the size is no longer x,y
Do I have to setSize(x,y) every time the content changes, or is there an easier way?
Thanks,
--Glen
Memoria mihi benigna erit qui eam perscribam