Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New Window for each click on the menu item ???

Status
Not open for further replies.

2br

Programmer
Apr 21, 2002
6
IN
Dear All,

Whenever i click on the applet menu item, a new window is opening each time.
i.e. the menu
Help
-About
When i clcik on the "About" menu an HTML file is opening. Ok. But if i click again on the menu-"About" another help window will open.

I need only Only one window, and if the window is already opend it should popup for the next click on the menu item.

Please get me a solution in java

Regards
Bharat
 
Provide the code you are using to create your windows.

A suggestion without looking at your code, would be for you to make sure that your secondary windows are model, and that they have an owner which is your primary window that lucnhed it. If this is a little confussing to you, look at the JavaDocs for the window component you are using for your secondary windows, and search for modal, and owner. If you are still confused, then post your primary window code that is launching your secondary windows.

I will then try to provide a peice of sample code for you that will help you correct your issue.

Rodney
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top