Ramesh Babu | 21 Oct 15:04
Picon
Favicon

Why MDI Main Frame closes, when I close other frame

Hi Guys,
      In my mdi Application, I open one MDI Main Frame and open 
another one through menu. but when close one frame, the whole 
application closed. Why.

Here is my code:

   /**
     * Callback handler for the 'action' method of 
menuitem 'farmerInfo'.
     */
    public void doFarmerInfo()   {
    	System.out.println("*** Open Farmer Data Entry Screen ***");
    	new FrameLauncher("New small frame",feh,150,150);
    }

    /**
     * Show a test frame with the Thinlet contents.
     *
     * @param args  ignored.
     */
    public static void main(String[] args) throws 
java.io.IOException {
    	MDIMainMenuHandler mdimh = new MDIMainMenuHandler();
    	new FrameLauncher("MDIMainMenuHandler",mdimh , 1000, 650);
    }

Is there any thing only one frame should exist.

Thanks for your valuble time 

Ramesh

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

_________________________________________________________________
Thinlet Project Site    | http://thinlet.com
Thinlet Addon Central   | http://thinletplus.com
Thinlet World News Blog | http://thinletworld.com
Thinlet F.A.Q.          | http://xul.sourceforge.net/thinfaq.html 

Gmane