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 215283 - Full Screen option unavailable
Summary: Full Screen option unavailable
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.2
Hardware: Macintosh Mac OS X
: P2 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
: 201900 212840 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-09 12:07 UTC by ytn01
Modified: 2013-07-31 14:08 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (48.07 KB, text/plain)
2012-07-09 12:07 UTC, ytn01
Details
A snapshot where the Native Fullscreen toggle button is gone. (227.54 KB, image/png)
2012-07-09 12:11 UTC, ytn01
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ytn01 2012-07-09 12:07:45 UTC
The Mac version of the IDE doesn't has "View\Full Screen" entry and "Alt+Shift+Enter" doesn't work, 
Furthermore, the Native Fullscreen support from the IDE's main title-bar is often unavailable
	
Steps to Reproduce:
1. Start the IDE, and create a new Java Application with default options
2. Main class for the project will open automatically, (Notice the Native Fullscreen toggle button is still available on the IDE's main Title bar)
3. Do some modifications to the file, and finally Format the source via: "ctrl+shift+F"
4. The Native Fullscreen toggle button will disappear.

Product Version = NetBeans IDE 7.2 (Build 201206291011)
Operating System = Mac OS X version 10.7.4 running on x86_64
Java; VM; Vendor = 1.7.0_05
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.1-b03
Comment 1 ytn01 2012-07-09 12:07:57 UTC
Created attachment 121830 [details]
IDE log
Comment 2 ytn01 2012-07-09 12:11:54 UTC
Created attachment 121831 [details]
A snapshot where the Native Fullscreen toggle button is gone.
Comment 3 Jiri Rechtacek 2012-07-10 07:39:07 UTC
Tomas, could you comment this? Thank you
Comment 4 Tomas Danek 2012-07-10 08:51:45 UTC
this was tracked as issue 212840, but we were missing some reproducible steps.
Now we are able to reproduce, thanks.
Comment 5 Antonin Nebuzelsky 2012-07-10 10:43:58 UTC
*** Bug 212840 has been marked as a duplicate of this bug. ***
Comment 6 Stanislav Aubrecht 2012-07-16 15:16:34 UTC
Reproduced in:

Product Version: NetBeans IDE Dev (Build 20120612-38987a2c31a4)
Java: 1.7.0_06-ea; Java HotSpot(TM) 64-Bit Server VM 23.2-b07
System: Mac OS X version 10.7.4 running on x86_64; UTF-8; en_US (nb)


It is enough to modify any file - black dot appears in application's red close button. Works fine in JDK 1.6
Comment 7 Antonin Nebuzelsky 2012-07-17 08:56:39 UTC
If this is to be filed against JDK, provide the information needed. So far it seems like the problem is caused by some NetBeans code.
Comment 8 Stanislav Aubrecht 2012-07-17 09:29:31 UTC
package javaapplication4;

import com.apple.eawt.FullScreenUtilities;
import java.awt.BorderLayout;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import javax.swing.JCheckBox;

public class NewJFrame extends javax.swing.JFrame {

    public NewJFrame() {
        FullScreenUtilities.setWindowCanFullScreen(this, true);
        setLayout(new BorderLayout());
        final JCheckBox check = new JCheckBox("Modified document");
        check.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                getRootPane().putClientProperty("Window.documentModified", Boolean.valueOf(check.isSelected()));
            }
        });
        add( check, BorderLayout.WEST );
        pack();
    }

    public static void main(String args[]) {

        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new NewJFrame().setVisible(true);
            }
        });
    }
}
Comment 9 Antonin Nebuzelsky 2012-09-10 15:56:13 UTC
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7197320
Comment 10 Alexandr Scherbatiy 2012-09-17 13:05:29 UTC
The issue is fixed in the JDK 8.
We are going to backport the fix to the JDK 7u12.
Comment 11 Stanislav Aubrecht 2013-07-31 14:08:17 UTC
*** Bug 201900 has been marked as a duplicate of this bug. ***