java - JDialog decorated true but without close button -


okay, researching saw lot of posts regarding topic "hide close button dialogs" none of them solved problem.the thing have dialog:

enter image description here

which keep decoration (borders, transparency , etc) hide or remove close button component cos handle cancel button.

if use

setundecorated(true); getrootpane().setwindowdecorationstyle(jrootpane.none); 

the result

enter image description here

which me terrible(not @ here since nothings on background)...so ask: there way handle problem dialog or setundecorated , getrootpane absolute? futher suggestions welcome. in advance.

you cannot remove "x" button without messing ui code (low level laf or native api), dont know worth of effort. however, if reaaaallllly need such functionality (and lots of money that;p) can write native code hide x button (yes totally possible), again, not worth of time :)


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -