JFrame to Front

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Oliver Hirschi

    #1

    JFrame to Front

    Hi,

    First of all sorry for my german posting before!

    Here is my question in english:

    By starting my application I construct a JFrame. By clicking onto a
    JButton on this JFrame, it construct a NON-MODAL JDialog, which gets as
    parentComponent the JFrame.
    Now, if I switch between the Frame and the Dialog, they are correctly
    activated, but the Frame does never come to foreground, i.e. it is ever
    ovelapped by the Dialog.

    I tryed with "Frame.setVisib le(true)", "Frame.toFront( )" and
    "Frame.show ()", but unfortunately, it does not work.

    Is my desired behavior in this case even possible, or is there only the
    way of setting the parentComponent of the Dialog to null?

    Thanks!
    --
    Oliver Hirschi


Working...