Yeah, I realised later and thought it too embarrassing to say anything lol.
> On 8 Jun 2018, at 05:32, Patrik Karlström <pat...@trixon.se> wrote: > > Thanks for the hint but I'm trying to do this from a button in the toolbar of > a nb platform application. > > Den tors 7 juni 2018 kl 00:05 skrev Brett Ryan <brett.r...@gmail.com>: >> I haven’t experienced this behaviour, however; as a workaround, if you are >> ok with maximising NetBeans without going full screen, hold down the option >> key when clicking the green button. >> >>> On 7 Jun 2018, at 00:44, Patrik Karlström <pat...@trixon.se> wrote: >>> >>> Den ons 6 juni 2018 kl 14:36 skrev Emilian Bold >>> <emilian.b...@protonmail.ch>: >>>> The actual NPE might help. Maybe you have to create a dummy even and not >>>> send null to actionPerformed? >>>> >>>> If it's reproducible you should report it to the bugtracker >>>> https://issues.apache.org/jira/projects/NETBEANS/summary >>>> >>>> --emi >>>> >>>> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ >>>> >>>> On 6 June 2018 2:36 PM, Patrik Karlström <pat...@trixon.se> wrote: >>>> >>>> > Hi, >>>> > >>>> > Actions.forID("Window", >>>> > "org.netbeans.core.windows.actions.ToggleFullScreenAction").actionPerformed(null); >>>> > >>>> > I *think* that I have successfully run the code above on a mac a couple >>>> > of years back, but that might have been before they changed their >>>> > maximize/full screen handling. >>>> > >>>> > Today I noticed that it failed with an NPE on the mac. >>>> >>> >>> Just noticed that it is the action itself that is null. >>> Action a=Actions.forID("Window", >>> "org.netbeans.core.windows.actions.ToggleFullScreenAction"); >>> results in a==null. >>> >>> All this is done on JDK8 171 and NetBeans 8.2, and on what I guess is an up >>> to date Mac. >>> How does it work on other Macs?