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 237368 - can't resize ide window to fill the entire screen
Summary: can't resize ide window to fill the entire screen
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.4
Hardware: Macintosh Mac OS X
: P2 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
: 237167 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-20 12:09 UTC by joaovfc
Modified: 2014-06-23 13:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (43.07 KB, text/plain)
2013-10-20 12:09 UTC, joaovfc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description joaovfc 2013-10-20 12:09:04 UTC
can't drag the main ide window corner to resize it to fullfill the entire screen

Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Mac OS X version 10.7.5 running on x86_64
Java; VM; Vendor = 1.7.0_45
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Comment 1 joaovfc 2013-10-20 12:09:07 UTC
Created attachment 141309 [details]
IDE log
Comment 2 Stanislav Aubrecht 2013-10-21 08:16:45 UTC
*** Bug 237167 has been marked as a duplicate of this bug. ***
Comment 3 Stanislav Aubrecht 2013-10-29 14:59:59 UTC
Cannot reproduce in the same configuration.

Does the green button in NetBeans title bar work?
Can you upgrade to OS X version 10.9?
Comment 4 Stanislav Aubrecht 2013-10-29 15:01:05 UTC
Also anything special about your screen setup? Dual monitors? Mirroring?
Comment 5 amake 2013-10-29 15:10:42 UTC
I reported bug 237167.

In my case, the green button doesn't resize horizontally past 1,024px.

OS X 10.7.5 is the maximum supported on my machine.

I have a second monitor, which is my main display (not mirrored).
Comment 6 joaovfc 2013-10-29 23:49:37 UTC
in my case:

- green button doesn't work
- singl monitor (1280*800)
- can't update to montain lion

in jdk 1.7.0_25 it doesn't happen...will use that for now
Comment 7 Stanislav Aubrecht 2013-10-31 11:23:13 UTC
Reporters, please try creating a simple Java project with a JFrame in NetBeans, run the project and try resizing the JFrame, thanks.
Comment 8 alexcp 2013-11-03 13:31:33 UTC
A simple JFrame app shows the same behavior as NetBeans: on Mac OS X 10.7.5 and JDK 1.7.0_45 the main window cannot be resized to fill a 1280x800 screen; 1024x768 seems to be the upper size limit. The same applies to the fullscreen mode the windows occupies the middle of the "full screen".
Comment 9 Antonin Nebuzelsky 2013-11-04 16:12:54 UTC
JDK bug:

https://bugs.openjdk.java.net/browse/JDK-8027778

Closing this bug on NetBeans side.
Comment 10 Antonin Nebuzelsky 2013-11-05 10:01:24 UTC
Reporters, can you please try reproducing the problem also with the latest early access build of JDK8? Thanks.

https://jdk8.java.net/download.html
Comment 11 serb 2013-11-08 18:36:54 UTC
If the problem can be reproduced on jdk8, it would be good to find a broken build, since currently we cannot reproduce the problem on our systems.
I think you can start from b81:
https://jdk8.java.net/archive/8-b81.html
Then change build number in the url:
https://jdk8.java.net/archive/8-b100.html
and so on, until the build where the bug was introduced will be found.

Thanks for the help.
Comment 12 serb 2013-11-08 18:41:38 UTC
Bad things is that builds <108 was removed from the server =(
Comment 13 serb 2013-11-09 17:55:02 UTC
Reporters, please run the code below on jdk7u25/jdk7u45 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]));
            }
        }
    }
}
Comment 14 saulukas 2013-11-14 19:48:51 UTC
I experience same problem on MacBook (1280x800) with Mac Lion 10.7.5

Running given Java code gives following results:

JDK 1.7.0_25:

   java version "1.7.0_25"
   Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
   Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

   gc = CGLGraphicsConfig[dev=69670592,pixfmt=0]
   gc.widht = 1280
   gc.height = 800
   OGLMaxTextureSize = 2048

JDK 1.7.0_45:

    java version "1.7.0_45"
    Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
    Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

    gc = CGLGraphicsConfig[dev=69670592,pixfmt=0]
    gc.widht = 1024
    gc.height = 1024
    OGLMaxTextureSize = 2048

Same wrong max 1024 is with JDK8 preview.
Comment 15 serb 2013-11-28 00:36:26 UTC
Thanks saulukas this information really useful.
Comment 16 saulukas 2014-02-01 11:09:17 UTC
Today tried with JDK 1.7.0_51-b13 on Mac OS X Lion (10.7.5).

Problem still exists.
I have no idea how to post this bug to JDK team.


Any plans for JDK team to fix it for Mac OS X Lion? 

It drives next to unusable all Java desktop applications: NetBeans, Oracle SQL Developer, ...
Comment 17 Alexandr Scherbatiy 2014-06-23 13:56:41 UTC
The issue should be fixed in JDK 8u20 as part of the issue
8010999 [macosx] a constrain of the top level window should be improved
https://bugs.openjdk.java.net/browse/JDK-8010999