what do i do for hiding the close button in frame....
for diabling i hav used this one..
JFrame.DO_NOTHING_ON_CLOSE
its working fine... but i just want to hide the close button ..... pls help me out...
what do i do for hiding the close button in frame....
for diabling i hav used this one..
JFrame.DO_NOTHING_ON_CLOSE
its working fine... but i just want to hide the close button ..... pls help me out...
There's an option you can set on a JFrame that will turn it off.
Get the rootPane, and set the windowDecorationStyle to something else.
Might do more than you were aiming for, but that's the easiest (and possibly only) way.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.