How Can I Get One JFrame To Appear Above Another JFrame

Discussion in 'Java' started by clusardi2k@aol.com, Aug 27, 2012.

  1. Guest

    Besides using JDialog and their creation order, is there a way that I can get one JFrame to come up and be above another JFrame.

    Thanks,
     
    , Aug 27, 2012
    #1
    1. Advertising

  2. FredK Guest

    On Monday, August 27, 2012 7:47:31 AM UTC-7, (unknown) wrote:
    > Besides using JDialog and their creation order, is there a way that I can get one JFrame to come up and be above another JFrame. Thanks,


    myframe.toFront();
     
    FredK, Aug 27, 2012
    #2
    1. Advertising

  3. markspace Guest

    On 8/27/2012 7:47 AM, wrote:
    > Besides using JDialog and their creation order, is there a way that I
    > can get one JFrame to come up and be above another JFrame.



    A quick search on Google indicates that requestFocusInWindow() might be
    promising.

    <http://docs.oracle.com/javase/tutorial/uiswing/misc/focus.html>
     
    markspace, Aug 27, 2012
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. webonomic
    Replies:
    1
    Views:
    5,650
    webonomic
    Jan 20, 2006
  2. loveNUNO
    Replies:
    2
    Views:
    971
    loveNUNO
    Nov 20, 2003
  3. jollyroger
    Replies:
    6
    Views:
    959
    dorayme
    Feb 8, 2007
  4. jakester
    Replies:
    3
    Views:
    1,902
    jakester
    Apr 3, 2007
  5. Robert Cohen
    Replies:
    3
    Views:
    306
    Andrew Durstewitz
    Jul 15, 2003
Loading...

Share This Page