Skip to main content

Dialog size

2 replies [Last post]
untit1ed
Offline
Joined: 2009-09-14
Points: 0

Hi,

I am trying to resize lwuit Dialog. I couldn't find the option for that in API, but when I rotate my screen (with accelerometer) my default dialog gets stretched, then becomes fullscreen and after that my application gets closed. It sounds more like a bug, and there is an option to disable it, but is it possible to manually resize Dialog component?

Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
untit1ed
Offline
Joined: 2009-09-14
Points: 0

Dialog.setDefaultDialogPosition(BorderLayout.CENTER);
Solved my problem, not fulscreen, but the dialog is much bigger now.

vprise
Offline
Joined: 2003-11-07
Points: 0

Try the dialog instance show(int,int,int,int,boolean) method