Example usage for javax.swing JLayeredPane remove

List of usage examples for javax.swing JLayeredPane remove

Introduction

In this page you can find the example usage for javax.swing JLayeredPane remove.

Prototype

public void remove(int index) 

Source Link

Document

Remove the indexed component from this pane.

Usage

From source file:LayeredPaneDemo.java

public void close() {
    if (getParent() instanceof JLayeredPane) {
        JLayeredPane jlp = (JLayeredPane) getParent();
        jlp.remove(InnerFrame.this);
        jlp.repaint();//from   www  .j a va  2s .  c o  m
    }
}