Results 1 to 4 of 4
  1. #1
    biggmann is offline Member
    Join Date
    Oct 2010
    Posts
    1
    Rep Power
    0

    Default JOption pop up window is behind all other windows

    I am working on my first project and it requires a JOption window to open for user input. it works but the window is behind everything else so I have to minimize the editor to input the info. How do I bring the window to the top?

  2. #2
    tashimoto is offline Member
    Join Date
    Sep 2010
    Location
    Oregon, usa
    Posts
    69
    Rep Power
    0

    Default

    Read the JOption class at
    JOptionPane (Java 2 Platform SE v1.4.2)

    Check out the Component parentComponent passed parameter in the different showXXX methods. (showInputDialog, showMessageDialog.... )

    OR read this posting as it might be similar to your issue:
    JOptionPane behind the Window which is set to be always on top

    Hope this helps! :)

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,184
    Rep Power
    19

    Default

    Quote Originally Posted by tashimoto View Post
    Read the JOption class at
    JOptionPane (Java 2 Platform SE v1.4.2)
    Please don't post links to documentation for Java versions that have long been EOLed. This is the link to the JOptionPane Java SE 6 API
    JOptionPane (Java Platform SE 6)

    db

  4. #4
    tashimoto is offline Member
    Join Date
    Sep 2010
    Location
    Oregon, usa
    Posts
    69
    Rep Power
    0

    Default

    Oh, sorry! I didn't notice the version. I will pay more attention next time! :)

Similar Threads

  1. Replies: 3
    Last Post: 11-15-2011, 12:58 AM
  2. JOption Msgbox title help?
    By ZaabZ in forum New To Java
    Replies: 7
    Last Post: 08-26-2010, 09:12 PM
  3. How to lock Windows XP desktop using Window/JWindow
    By chyrl in forum Advanced Java
    Replies: 11
    Last Post: 08-19-2010, 09:46 PM
  4. Replies: 1
    Last Post: 12-02-2009, 03:39 PM
  5. Replies: 8
    Last Post: 12-01-2008, 02:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •