Results 1 to 3 of 3
  1. #1
    XmisterIS is offline Member
    Join Date
    Aug 2010
    Posts
    35
    Rep Power
    0

    Default How to bring all windows to the front in order together?

    I have an application (let's call it "MyApp") who's main window contains a JFrame. Under certain User Input (e.g. a menu selection), a JDialog is popped up with modality type set to APPLICATION_MODAL.

    When the user clicks on another application (e.g. on the taskbar in Windows) to bring it to the front, it hides MyApp, as you would expect.

    The problem comes when the user then clicks on MyApp on the taskbar to bring it to the front again - Currently, only the JDialog is coming to the front and the parent JFrame is only coming to the front when the JDialog is closed.

    What I want is for the main JFrame and its JDialog to both come to the front, in the correct order, when the user clicks on MyApp on the taskbar (or anywhere else).

    Please could someone tell me how to do this?

    Many thanks in advance.

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

    Default

    In other words you want your program to behave differently from every other program, Java or non-Java.

    1. What makes you think that can be done in Java, or that it's even possible?
    2. What makes you think that non-standard behavior will be more acceptable to the end user?

    db

  3. #3
    XmisterIS is offline Member
    Join Date
    Aug 2010
    Posts
    35
    Rep Power
    0

    Default

    TBH, I hadn't noticed that other programs don't do that! If it's standard behaviour, then I'll stick with it.

Similar Threads

  1. Replies: 28
    Last Post: 09-15-2010, 10:21 AM
  2. Bring component to front of a container?
    By Cruncher in forum New To Java
    Replies: 9
    Last Post: 04-26-2010, 11:32 PM
  3. Bring back the GOTO ;-)
    By rdtindsm in forum New To Java
    Replies: 5
    Last Post: 09-28-2009, 10:02 AM
  4. J2EE Front-end Developer in OHIO
    By recruitness in forum Jobs Offered
    Replies: 0
    Last Post: 12-02-2008, 10:34 PM
  5. Front-End OOP Developer
    By AshleyNYC in forum Jobs Offered
    Replies: 0
    Last Post: 04-25-2008, 05:25 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
  •