1

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?

Community
  • 1
  • 1
Tel
  • 111
  • 2
  • 10

1 Answers1

2

One way is to disable resizing completely:

stage.setResizable(false);
Christian Seifert
  • 2,780
  • 5
  • 29
  • 45