Results 1 to 4 of 4
  1. #1
    UJJAL DHAR is offline Senior Member
    Join Date
    Apr 2010
    Location
    Dhaka,Bangladesh
    Posts
    180
    Rep Power
    0

    Thumbs up Restriction about opening multiple window [SOLVED]

    I have developped a school management system. In which there is these is a main window consistiing menus on menubar. clicking on Each menubar a new window appears. If I click on several menus then all menus appear simultaneously. I want to provide an warning/error message when someone tries to open multiple window. My question is How can I detect that is there any other window is opened or not (without the main window).
    Is there any way of it or something else?


    Thanks in advanced.
    Last edited by UJJAL DHAR; 06-26-2012 at 11:35 PM.
    Don't Forget to try yourself before asking others help.....
    Press REP, if you find their advices/solutions effective.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,663
    Blog Entries
    7
    Rep Power
    21

    Default Re: Restriction about opening multiple window

    Maybe the Frame.getFrames() (static) method can be of help.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    UJJAL DHAR is offline Senior Member
    Join Date
    Apr 2010
    Location
    Dhaka,Bangladesh
    Posts
    180
    Rep Power
    0

    Default Re: Restriction about opening multiple window

    Yes,It works.Thanks Jos.
    Don't Forget to try yourself before asking others help.....
    Press REP, if you find their advices/solutions effective.

  4. #4
    UJJAL DHAR is offline Senior Member
    Join Date
    Apr 2010
    Location
    Dhaka,Bangladesh
    Posts
    180
    Rep Power
    0

    Default Re: Restriction about opening multiple window [SOLVED]

    Soprry,It doesn't accomplish my need.
    Let A main window is X and sub window are B and C,........
    At first Frame.getFrames() returns 1 frame.
    when I open B
    Frame.getFrames() returns 2 frame.
    closing B,again opening,
    Frame.getFrames() returns 3 frame.



    But I need to know that how many windows are currently opened?Is there any way?
    Don't Forget to try yourself before asking others help.....
    Press REP, if you find their advices/solutions effective.

Similar Threads

  1. How to set Default opening window in Swing?
    By asifzbaig in forum AWT / Swing
    Replies: 0
    Last Post: 02-09-2012, 08:06 PM
  2. opening applet in seperate window vs in the page.
    By bentley4 in forum Java Applets
    Replies: 5
    Last Post: 01-21-2012, 06:43 AM
  3. Oracle Forms Opening in single Java window
    By jav786 in forum Java Applets
    Replies: 0
    Last Post: 03-31-2011, 11:53 AM
  4. opening default browser window in invisible mode
    By robby14 in forum Advanced Java
    Replies: 1
    Last Post: 02-20-2010, 02:50 AM
  5. Replies: 7
    Last Post: 02-19-2010, 12:03 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
  •