本文整理了Java中javax.swing.JLayeredPane.setVisible()
方法的一些代码示例,展示了JLayeredPane.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLayeredPane.setVisible()
方法的具体详情如下:
包路径:javax.swing.JLayeredPane
类名称:JLayeredPane
方法名:setVisible
暂无
代码示例来源:origin: magefree/mage
/**
* This method initializes this
*
* @return void
*/
private void initialize() {
int w = getDlgParams().rect.width;
int h = getDlgParams().rect.height;
jLayeredPane = new JLayeredPane();
add(jLayeredPane);
jLayeredPane.setSize(w, h);
jLayeredPane.setVisible(true);
jLayeredPane.setOpaque(false);
jTitle = new CustomLabel();
jTitle.setBounds(new Rectangle(5, 3, w, 16));
jTitle.setFont(new Font("Dialog", Font.BOLD, 14));
jTitle.setText("Current stack: ");
this.setLayout(null);
jLayeredPane.setLayout(null);
jLayeredPane.add(jTitle, null);
//jLayeredPane.add(jTitle2, null);
jLayeredPane.add(getJButtonAccept(), null);
jLayeredPane.add(getJButtonResponse(), null);
makeTransparent(jLayeredPane);
}
代码示例来源:origin: com.numdata/numdata-swing
/**
* Deactivate the glass pane. This is called by {@link #setVisible} when the
* glass pane is hidden.
*/
protected void deactivate()
{
final JRootPane rootPane = SwingUtilities.getRootPane( this );
if ( rootPane != null )
{
final JLayeredPane layeredPane = rootPane.getLayeredPane();
layeredPane.setVisible( true );
}
final Component oldKeyboardFocusOwner = _oldKeyboardFocusOwner;
if ( oldKeyboardFocusOwner != null )
{
oldKeyboardFocusOwner.requestFocusInWindow();
_oldKeyboardFocusOwner = null;
}
}
代码示例来源:origin: stackoverflow.com
decorationsPane.setBounds(0, 0, 484, 586);
layeredPane.add(decorationsPane);
decorationsPane.setVisible(true);
代码示例来源:origin: com.numdata/numdata-swing
/**
* Activate the glass pane. This is called by {@link #setVisible} when the
* glass pane is made visible.
*/
protected void activate()
{
final JRootPane rootPane = SwingUtilities.getRootPane( this );
if ( rootPane != null )
{
final KeyboardFocusManager keyboardFocusManager = KeyboardFocusManager.getCurrentKeyboardFocusManager();
final Component focusOwner = keyboardFocusManager.getPermanentFocusOwner();
if ( ( focusOwner != null ) && SwingUtilities.isDescendingFrom( focusOwner, rootPane ) )
{
_oldKeyboardFocusOwner = focusOwner;
}
final JLayeredPane layeredPane = rootPane.getLayeredPane();
layeredPane.setVisible( false );
requestFocusInWindow();
}
}
代码示例来源:origin: org.gosu-lang.gosu/gosu-lab
rootPane.getLayeredPane().setVisible( false );
requestFocusInWindow();
rootPane.getLayeredPane().setVisible( true );
if( _recentFocusOwner != null )
代码示例来源:origin: openstreetmap/osmembrane
this.layeredPane.setVisible(true);
this.layeredPane.setOpaque(true);
add(this.layeredPane);
代码示例来源:origin: RPTools/maptool
glassPaneComposite.setVisible(true);
内容来源于网络,如有侵权,请联系作者删除!