DialogWrapper: choosing the position when it's modal

Q1/
When making a DialogWrapper subclass modal, is it possible to choose its
position?
I tried many variations, but it always ignores my explicit positioning,
and centers itself automatically.


Q2/
When do we need to wrap UIs in DialogWrapper, rather than use plain
swing ones?




Alain

2 comments

Any comment?

Alain

Q1/
When making a DialogWrapper subclass modal, is it possible to choose
its position?
I tried many variations, but it always ignores my explicit
positioning, and centers itself automatically.

>

Q2/
When do we need to wrap UIs in DialogWrapper, rather than use plain
swing ones?

0

Q2/
When do we need to wrap UIs in DialogWrapper, rather than use plain
swing ones?


I'm just guessing: a modal dialog always needs a parent window, where do
you get it when you invoke a JDialog directly? Additionally, all dialogs
should look the same (e.g. button size and position), this should be
done in a framework, e.g. the DialogWrapper.

Tom

0

Please sign in to leave a comment.