本文整理匯總了Java中javax.swing.JLayeredPane.remove方法的典型用法代碼示例。如果您正苦於以下問題:Java JLayeredPane.remove方法的具體用法?Java JLayeredPane.remove怎麽用?Java JLayeredPane.remove使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類javax.swing.JLayeredPane
的用法示例。
在下文中一共展示了JLayeredPane.remove方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: performOperation
import javax.swing.JLayeredPane; //導入方法依賴的package包/類
private void performOperation(JLayeredPane pane, Integer layer) {
// XXX - TBD
switch (type) {
case SLIDE_IN:
component.setBounds(finishBounds);
pane.add(component, layer);
if( isHeavyWeightShowing() ) {
repaintLayeredPane();
}
break;
case SLIDE_OUT:
pane.remove(component);
break;
case SLIDE_RESIZE:
component.setBounds(finishBounds);
((JComponent)component).revalidate();
if( isHeavyWeightShowing() ) {
repaintLayeredPane();
}
break;
}
}
示例2: removeWindow
import javax.swing.JLayeredPane; //導入方法依賴的package包/類
/**
* Remove a sticky window from the editor.
* @param window the JComponent to remove
*/
public void removeWindow(JComponent window) {
Container container = jtc.getParent();
if(container instanceof JLayeredPane) {
JLayeredPane pane = (JLayeredPane) container;
pane.remove(window);
pane.repaint(window.getBounds());
}
}
示例3: removeProgressIndicator
import javax.swing.JLayeredPane; //導入方法依賴的package包/類
private void removeProgressIndicator() {
if (lastLayeredPane == null || progressIndicator == null) {
return;
}
progressIndicator.setVisible(false);
JLayeredPane lp = lastLayeredPane;
lp.remove(progressIndicator);
lp.repaint();
progressIndicator = null;
}