Hi there... i read the post about maximizing a frame in ULC... i tried
same thing today and i encountered problems with it.
It seems that setting the state to maximized works only when set after
the ULCFrame is set to visible and not before.
This example DONT work:
public class FrameSample extends AbstractApplication {
public void start() {
ULCFrame frame = new ULCFrame("FrameSample");
frame.setDefaultCloseOperation(ULCFrame.TERMINATE_ON_CLOSE);
frame.add(new ULCLabel("Test"));
frame.setExtendedState(ULCFrame.MAXIMIZED_BOTH);
frame.setVisible(true);
}
}
But, inverting last two lines it works fine:
...
frame.setVisible(true);
frame.setExtendedState(ULCFrame.MAXIMIZED_BOTH);
...
So, this seems to be the correct way to make maximization work.
Bye,
Paolo Scaffardi
GFP Lab s.r.l.
http://www.gfplab.com
fax 178 2258454
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer