List of usage examples for javax.swing JLayeredPane FRAME_CONTENT_LAYER
Integer FRAME_CONTENT_LAYER
To view the source code for javax.swing JLayeredPane FRAME_CONTENT_LAYER.
Click Source Link
From source file:grafix.telas.JanelaGraficos.java
private void configurarJanela() { this.setBorder(BorderFactory.createEtchedBorder()); this.setClosable(true); this.setIconifiable(false); this.setMaximizable(true); this.setResizable(true); this.setBounds(0, 0, 500, 500); this.setVisible(true); this.setTitle(getAcao().getCodAcao() + " - " + getAcao().getNomeAcao()); this.setFrameIcon(new ImageIcon("resource/icones/grafix4.gif")); layersPane = new JLayeredPane(); layersPane.setLayout(new OverlayLayout(layersPane)); layersPane.add(getPanelGraficos(), JLayeredPane.FRAME_CONTENT_LAYER); layersPane.add(getPanelMolduras(), JLayeredPane.DRAG_LAYER); this.add(layersPane); this.addInternalFrameListener(new InternalFrameListener() { public void internalFrameActivated(InternalFrameEvent evt) { janelaAtivada();/*from w ww .jav a 2s . com*/ } public void internalFrameClosed(InternalFrameEvent evt) { janelaFechada(); } public void internalFrameClosing(InternalFrameEvent evt) { } public void internalFrameDeactivated(InternalFrameEvent evt) { } public void internalFrameDeiconified(InternalFrameEvent evt) { } public void internalFrameIconified(InternalFrameEvent evt) { } public void internalFrameOpened(InternalFrameEvent evt) { } }); }