Page 1 of 1

Form Maximize

PostPosted: Wed Aug 17, 2011 4:57 pm
by Garantisoft
Hi,

How can do I form outo maximized without use UIDimansion?

private void initializeUI() throws Exception
{
UIGroupPanel group = new UIGroupPanel();
group.setText("Form");

UITable table = new UITable();
table.setDataBook(rdbContacts);

group.setLayout(new UIBorderLayout());
group.add(table);

//same behaviour as centered component in BorderLayout
setLayout(new UIBorderLayout());

add(group, UIBorderLayout.CENTER);

setTitle("Form");
setSize(new UIDimension(1366,640));
// setMaximumSize(1280,768);

}

Re: Form Maximize

PostPosted: Wed Aug 17, 2011 5:07 pm
by Support@SIB
Do you mean the size of the frame (UIInternalFrame)?

Use
Code: Select all
setState(UIInternalFrame.MAXIMIZED_BOTH);

to maximize the whole internal frame.

If you do not mean the frame, give us some more details.

Re: Form Maximize

PostPosted: Wed Aug 17, 2011 5:16 pm
by Garantisoft
Thanks. Work fine.