Community
Participate
Working Groups
Build Identifier: Consider a Form that is configured to be too big compared to the user screen. When the form is opened: The form is reduced to the size of the screen -> Very Good When something triggers a recalculation of the form size (For example: setVisible() on a Button), the screen size is no longer considered. Reproducible: Always
Created attachment 211403 [details] Minimal Example for Bug 372222 Example Form for this bug. Open the form: BigForm f = new BigForm(); f.startDisplay(); In the form, click on the AButton, the form is resized.
The problem described is actually not a bug since all fields have to be displayed in the form by default, i.e. if a form has too many fields such that its size exceeds the size of the screen, the form will be displayed completely nevertheless. To enable customization two new methods called createJDialogEx are added to the interface ISwingEnvironment. This allows classes to subtype JDialogEx which have a different resizing logic and return these subtypes in SwingEnviroment.
Problem: Automatic resizing of forms should be made customizable to enable overriding of the default behavior of forms exceeding the screen size. This could happen e.g. if many fields are added to the form. Solution: Introduced two new methods in ISwingEnvironment. Customization can be done by overriding these methods and returning subtypes of JDialogEx which implements a different resizing logic. Migration: None if ISwingEnvironment is not implemented by any classes. Otherwise use the implementation in AbstractSwingEnvironment if the default behavior is sufficient. public JDialogEx createJDialogEx(Dialog swingParent) { return new JDialogEx(swingParent); } public JDialogEx createJDialogEx(Frame swingParent) { return new JDialogEx(swingParent); }
Created attachment 212797 [details] Proposed solution to enable resizing customization
patch applied for Juno. Thank you Ken!
Related forum post: http://www.eclipse.org/forums/index.php/mv/msg/315253/827571/#msg_827571
ticket closed. deliverd as part of eclipse scout 3.8.0 (juno release train)