本文整理了Java中javax.swing.JDesktopPane.setLayer()
方法的一些代码示例,展示了JDesktopPane.setLayer()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JDesktopPane.setLayer()
方法的具体详情如下:
包路径:javax.swing.JDesktopPane
类名称:JDesktopPane
方法名:setLayer
暂无
代码示例来源:origin: org.opentcs.thirdparty.dockingframes/docking-frames-core
/**
* Sets the layer at which this dialog appears.
* @param layer the new layer, a constant like {@link JLayeredPane#MODAL_LAYER}
*/
public void setLayer( int layer ){
desktop.setLayer( dialog, layer );
}
代码示例来源:origin: xyz.cofe/docking-frames-core
/**
* Sets the layer at which this dialog appears.
* @param layer the new layer, a constant like {@link JLayeredPane#MODAL_LAYER}
*/
public void setLayer( int layer ){
desktop.setLayer( dialog, layer );
}
代码示例来源:origin: xyz.cofe/docking-frames-core
private void initDialog( WindowConfiguration configuration, int layer ){
dialog = new JPanel();
dialog.setVisible( false );
desktop.add( dialog );
desktop.setLayer( dialog, layer );
if( configuration.isTransparent() ){
dialog.setOpaque( false );
}
init( dialog, dialog, configuration, true );
}
代码示例来源:origin: org.opentcs.thirdparty.dockingframes/docking-frames-core
private void initDialog( WindowConfiguration configuration, int layer ){
dialog = new JPanel();
dialog.setVisible( false );
desktop.add( dialog );
desktop.setLayer( dialog, layer );
if( configuration.isTransparent() ){
dialog.setOpaque( false );
}
init( dialog, dialog, configuration, true );
}
代码示例来源:origin: org.opentcs.thirdparty.dockingframes/docking-frames-core
/**
* Creates a new dialog.
* @param desktop the parent of this dialog
* @param station the owner of this dialog
*/
public JInternalDialog( JDesktopPane desktop, FlapDockStation station ){
this.desktop = desktop;
this.station = station;
setLayout( new GridLayout( 1, 1 ) );
setVisible( false );
desktop.add( this );
desktop.setLayer( this, JDesktopPane.MODAL_LAYER );
}
代码示例来源:origin: xyz.cofe/docking-frames-core
/**
* Creates a new dialog.
* @param desktop the parent of this dialog
* @param station the owner of this dialog
*/
public JInternalDialog( JDesktopPane desktop, FlapDockStation station ){
this.desktop = desktop;
this.station = station;
setLayout( new GridLayout( 1, 1 ) );
setVisible( false );
desktop.add( this );
desktop.setLayer( this, JDesktopPane.MODAL_LAYER );
}
代码示例来源:origin: cmu-phil/tetrad
desktopPane.setLayer(frame, JLayeredPane.DEFAULT_LAYER);
frame.moveToFront();
frame.setTitle(editor.getName());
代码示例来源:origin: org.geotools/gt2-widgets-swing
if (desktop != null) {
final JInternalFrame dialog = createInternalFrame(desktop, title);
desktop.setLayer(dialog, JDesktopPane.MODAL_LAYER.intValue());
dialog.setDefaultCloseOperation(JInternalFrame.DISPOSE_ON_CLOSE);
dialog.setResizable(false);
内容来源于网络,如有侵权,请联系作者删除!