Mischa
Mischa

Reputation: 226

Frameless AND modal JDialog

I would like to create a modal AND frameless dialog window with least implementation overhead possible.

I cannot just dialog.setUndecorated(false) if the dialog was created with a non-null parent window that is already displayed (see setUndecorated(true) to a JDialog created from an instance of JOptionPane).

The question is: can I do that in Swing at all? If so, how?

Thanks in advance!

EDIT: Ok, Stackoverflow, I've found it: http://www.stupidjavatricks.com/2005/09/making-a-custom-frameless-window/

Question is closed.

Upvotes: 0

Views: 269

Answers (1)

camickr
camickr

Reputation: 324118

I cannot just dialog.setUndecorated(false)

That's because you want:

d.setUndecorated(true); 

Upvotes: 2

Related Questions