Reputation: 111
I cannot figure this one out.
What I want to do is somehow disable the full-screen button on the right side of the title bar of the main application window, that seems to be a feature of Mountain Lion (10.8)+. It has two arrows pointing outwards diagonally.
There are related answers to this problem if the window is a dialog box, and an eclipse SWT-related solution here, but I need a solution to this problem if I have a single application primary-stage window, using javafx as the platform and netbeans 8 as the IDE.
I guess what I want is some way to access the cocoa API through javafx. Is this possible?
Upvotes: 1
Views: 647
Reputation: 2843
One way is to disable resizing completely:
stage.setResizable(false);
Upvotes: 2