Skip to main content

Rotating Device

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
jacostgroup
Offline
Joined: 2011-01-12

Hi I am using the new BlackBerry Torch
I notice when the device is tilted my Form does not automatically resize and redraws itself
The Dialogs seem to do this perfectly but not a Form
I have tried to overwrite the sizechanged method with no success
protected void sizeChanged(int w, int h)
{
this.setSize(new Dimension(w,h));
this.revalidate();
}
Any suggestions?
Thank You
Jaco

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
Joined: 2003-11-07

This works for us on all devices including the torch without a problem and always has.
Try the LWUIT demo etc.