Results 1 to 8 of 8
  1. #1
    sandeep43 is offline Member
    Join Date
    May 2011
    Posts
    97
    Rep Power
    0

    Question how to make current stage an active window?

    Hi All,

    how to make current stage an active window and previous one should be disabled or inactive?

    Regards,
    Sandeep

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

    Default Re: how to make current stage an active window?

    requestFocus() / toFront() or use a modal Stage.

    db
    Last edited by DarrylBurke; 05-07-2012 at 04:43 PM.
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    sandeep43 is offline Member
    Join Date
    May 2011
    Posts
    97
    Rep Power
    0

    Default Re: how to make current stage an active window?

    Hi Darryl,

    i used requestfocus(), it just focuses on current screen, but still the screen behind is active, i dont want the user to do any operations on the unfocused screen, how i can do tat?

    Sandeep

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

    Default Re: how to make current stage an active window?

    Did you read all of my response at #2?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    sandeep43 is offline Member
    Join Date
    May 2011
    Posts
    97
    Rep Power
    0

    Default Re: how to make current stage an active window?

    i tired all those wat ever is mentioned in #2, it did not work, so only i posted in forum.

    Sandeep

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

    Default Re: how to make current stage an active window?

    To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  7. #7
    sandeep43 is offline Member
    Join Date
    May 2011
    Posts
    97
    Rep Power
    0

    Default Re: how to make current stage an active window?

    hey darryl

    i was able to solve it got an alternate solution so thanks.

    Sandeep

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

    Default Re: how to make current stage an active window?

    And you will share the solution for the benefit of someone who faces a similar problem and finds this thread in a search, won't you?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. active window
    By yuhobebbho in forum New To Java
    Replies: 3
    Last Post: 08-18-2010, 03:34 PM
  2. how to make window active and textfield focused
    By whwillisiv in forum New To Java
    Replies: 0
    Last Post: 04-28-2009, 04:06 AM
  3. Replies: 8
    Last Post: 12-01-2008, 02:07 PM
  4. Close Active Window (?)
    By dcnorman07 in forum New To Java
    Replies: 2
    Last Post: 10-03-2008, 05:55 PM
  5. Changing Active Window
    By jmHoekst in forum New To Java
    Replies: 1
    Last Post: 06-14-2008, 12:21 AM

Posting Permissions

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