I wonder if it possible:
- to make a jdialog (which can be modal) with maximize button (is it possible to make custom but which will maximize frame?)
- or to make jframe (which has default maximize button) modal?
There lots of topic about this, but I found no clean solutions. Only tricks with setEnabled(), etc.
Thanks everyone in advance!
AFAIK not possible, because Top-Level Containers came from Native OS,
then mouse double click to the JFrame’s toolbar resize container to fills whole screen Dimension, second double ćlick restore lastz known Dimension
this not possible with JDialog
from any of Mouse(Xxx)Listener doesn’t response mouse_events from toolbar that came from Native OS, only from are that fills RootPane
code example