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.

Bug 237167 - Main window cannot be resized beyond 1,024px wide
Summary: Main window cannot be resized beyond 1,024px wide
Status: RESOLVED DUPLICATE of bug 237368
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.4
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-16 00:34 UTC by amake
Modified: 2013-11-09 17:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description amake 2013-10-16 00:34:50 UTC
I am experiencing an issue where the NetBeans main window cannot be resized past a width of 1,024px. The height, on the other hand, does not seem to be limited in any way.

The width limitation manifests itself regardless of the method used to resize the window:
 - Cannot drag-enlarge the window beyond a width of 1,024px.
 - When entering OS X's single-app full screen view, the window is shown at a width of 1,024px centered on the screen.
 - The green stoplight "maximize" button will not enlarge beyond 1,024px.

Environment:
 - Mac OS X 10.7.5 x86
 - Oracle JDK 1.7.0_45
 - NetBeans 7.3 and 7.4
 - Dual monitors: 1920x1080 (external, main), 1280x800 (internal)

The common thread seems to be Java 1.7.0_45. Specifying Java 1.7.0_25 with --jdkhome allows me to resize the window beyond 1,024px wide. I don't have any other Java versions readily available for testing.
Comment 1 Stanislav Aubrecht 2013-10-17 09:29:57 UTC
Works fine for me in 

Product Version: NetBeans IDE Dev (Build 20131009-59920d5335a3)
Updates: Updates available
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Mac OS X version 10.8.5 running on x86_64; UTF-8; en_US (nb)
Comment 2 amake 2013-10-20 03:11:59 UTC
Hi again.

In case it helps, here is my environment details from the NetBeans info window:

Product Version: NetBeans IDE 7.4 (Build 201310111528)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Mac OS X version 10.7.5 running on x86_64; UTF-8; en_US (nb)

I've cleared my user directory and cache directory. I've restarted. No matter what I do, I cannot resize the window beyond 1,024px when launching with 1.7.0_45.

Any other suggestions? Maybe it's a problem specific to OS X 10.7.5?
Comment 3 Stanislav Aubrecht 2013-10-21 08:16:45 UTC

*** This bug has been marked as a duplicate of bug 237368 ***
Comment 4 serb 2013-11-09 17:54:19 UTC
Reporters, please run the code below on jdk7u25 and jdk 7u45 and post the output:

import java.awt.GraphicsConfiguration;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.lang.reflect.InvocationTargetException;
import java.util.logging.Level;
import java.util.logging.Logger;
import sun.java2d.opengl.CGLGraphicsConfig;

public final class test {

    public static void main(final String[] args) throws Exception {

        GraphicsDevice[] screenDevices
                = GraphicsEnvironment.getLocalGraphicsEnvironment()
                .getScreenDevices();
        for (GraphicsDevice screenDevice : screenDevices) {
            GraphicsConfiguration gcs[] = screenDevice.getConfigurations();
            for (GraphicsConfiguration gc1 : gcs) {
                CGLGraphicsConfig gc = (CGLGraphicsConfig) gc1;
                System.out.println("gc = " + gc);
                System.out.println("gc.widht = " + gc.getMaxTextureWidth());
                System.out.println("gc.height = " + gc.getMaxTextureHeight());

                java.lang.reflect.Method method;
                method = gc.getClass().getDeclaredMethod("_getMaxTextureSize");
                method.setAccessible(true);
                System.out.println("OGLMaxTextureSize = " + method.invoke(new Object[0]));
            }
        }
    }
}