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 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
Created attachment 121830 [details] IDE log
Created attachment 121831 [details] A snapshot where the Native Fullscreen toggle button is gone.
Tomas, could you comment this? Thank you
this was tracked as issue 212840, but we were missing some reproducible steps. Now we are able to reproduce, thanks.
*** Bug 212840 has been marked as a duplicate of this bug. ***
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
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.
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); } }); } }
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7197320
The issue is fixed in the JDK 8. We are going to backport the fix to the JDK 7u12.
*** Bug 201900 has been marked as a duplicate of this bug. ***