This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The NetBeans platform has a problem with third party look and feels and non-native window decoration. Resizing windows vertically (especially minimizing) isn't possible. You can simply reproduce this by using the LAF below which extends Metal and additionally enables the Metal window decoration. As soon as Metal2LookAndFeel is applied the main window can't be resized vertically. public class Metal2LookAndFeel extends MetalLookAndFeel { @Override public void initialize() { JFrame.setDefaultLookAndFeelDecorated(true); JDialog.setDefaultLookAndFeelDecorated(true); super.initialize(); } } Thanks, Wolfgang
Created attachment 76248 [details] Metal2LookAndFeel
Reassigning to platform.
Proposed patch: remove setBounds method in MainWindow The problem is that the decorations use the setBounds Method that MainWindow overrides to fix a bug with SDI: /** * don't allow smaller bounds than the one constructed from preffered sizes, making sure everything is visible when * in SDI. #40063 */ @Override public void setBounds(Rectangle rect) { Rectangle bounds = rect; if (bounds != null) { if (bounds.height < getPreferredSize().height) { bounds = new Rectangle(bounds.x, bounds.y, bounds.width, getPreferredSize().height); } } super.setBounds(bounds); } Commenting the setBounds Method fixes the problem. Since SDI has been removed a long time ago, is there still a reason to override setBounds? Thanks Toni
Created attachment 76710 [details] Proposed patch
fixed by rolling back fix for #40063, thanks for the patch daf24180c08a
Hi Stan, thanks for taking care of this! Is there a chance to get this into 6.5 as well? Toni
i've added appropriate flag but our sustaining dept has been axed a lot so it'll take some time to produce patch3 for nb 65
Integrated into 'main-golden', will be available in build *200902130336* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/daf24180c08a User: S. Aubrecht <saubrecht@netbeans.org> Log: #157463 - Vertical window resize fails for non-native Window decorations
seems ok marking verified
backporting the fix to release65_fixes: 05fd24ca5025