Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Swing / AWT / SWT and the fly likes double dialogs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "double dialogs" Watch "double dialogs" New topic

double dialogs

Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156
I have a dialog that I can create and center on the screen fine. On it there
are buttons off of which I launch another modal dialog box.. (Yes I know that I should use tabbed panes, however that is overkill for this app). The
problem is that I cannot reference the frame of my original centered dialog
box, therefore my second dialogs open in the default new Frame location of
upper left.

What I am trying to do is make the second dialog open in the proximity of oneof the buttons of the first dialog. It, of course works then I do not centerthe first dialog. The second dialog always opens in the default location.

Hopefully not being excessive I have two other questions on this task. b. how does the centering work within an applet? Can I use the same Toolkit and
Dimension techique. c. never having localized before and only needing text
strings, do I create a " for every locale? This
is probably equally obtuse, but how do I code the strings in the different
caractersets? How do I create the strings in different charactersets like
french or greek, etc? Thank you for any one response, thank you again
interminably for all, grin.
Don't get me started about those stupid light bulbs.
subject: double dialogs