Maximized Dialog or Modal Frame

Does anyone know, if a (nice) solution exists for either maximizing a dialog or making a frame model? Google and forums search did not reveal any valuable answer.
[169 byte] By [stefan.schulza] at [2007-11-27 5:06:34]
# 1
Well a dialog doesn't have a maximize button so you would just use the setSize(...) method to set it to the maximum size of your screen.
camickra at 2007-7-12 10:25:20 > top of Java-index,Desktop,Core GUI APIs...
# 2
For a JFrame or Frame, you can do the following:frame.setExtendedState(Frame.MAXIMIZED_BOTH);This is not possible with a dialog.
clairec666a at 2007-7-12 10:25:20 > top of Java-index,Desktop,Core GUI APIs...
# 3

Thanks for your replies, only they did not provide new information (as I did check the APIs).

Setting the dialog's size to maximum would not have the same effect as with maximizing a frame. Maybe it's simply to do with decorations? I wonder, why there has been no mixed dialog/frame component or mechanism till today.

stefan.schulza at 2007-7-12 10:25:20 > top of Java-index,Desktop,Core GUI APIs...