Package javax.swing

Examples of javax.swing.JInternalFrame.addComponentListener()


        iframe.getContentPane().add(pane);
        iframe.setBounds(10, 10, 300, 200);
        iframe.setVisible(true);

        // Add the frame manager to it
        iframe.addComponentListener(_frameManager);
        iframe.addInternalFrameListener(_frameManager);
        iframe.addPropertyChangeListener(_frameManager);

        _desktopPane.add(iframe);
View Full Code Here


                        // We have it already
                        return;
                    }
                }
                add(desktopIcon);
                f.addComponentListener(this);
                if (getComponentCount() == 1) {
                    adjustSize();
                }
            }
        }
View Full Code Here

                mouseManager.setCursor(MouseCursor.SYSTEM_DEFAULT);
            }
        }));

        frameWork.addCanvas(theCanvas);
        frame.addComponentListener(new ComponentAdapter() {
            @Override
            public void componentResized(final ComponentEvent e) {
                final Camera cam = theCanvas.getCanvasRenderer().getCamera();
                if (cam != null) {
                    cam.resize(theCanvas.getWidth(), theCanvas.getHeight());
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.