my dog learned polymorphism*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "double dialogs" Watch "double dialogs" New topic
Author

double dialogs

Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156
Hello
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 "MyResource_locale.properties 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: double dialogs