Package javax.swing

Examples of javax.swing.JInternalFrame.dispose()


    }
   
    protected void removeWin(Hashtable currentData,String winname)
    {
        JInternalFrame win=(JInternalFrame)currentData.get("win_"+winname);
        win.dispose();
        desk.repaint();
    }
   
    protected void drawWin(Hashtable currentData,String winname)
    {
View Full Code Here


                            return;
                        }
                        case DISPOSE: {
                            window.setDefaultCloseOperation(JInternalFrame.DISPOSE_ON_CLOSE);
                            if (warningArea==null || !window.isVisible()) {
                                window.dispose();
                            }
                            return;
                        }
                    }
                }
View Full Code Here

        close.setIcon(MainGui.closeImage);
        close.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent ae) {
                JInternalFrame f = desktop.getSelectedFrame();
                if (f != null) {
                      f.dispose();
                }
            }
        });
       
        addMenuListener(new MenuListener() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.