本文整理了Java中javax.swing.JDesktopPane.setOpaque()
方法的一些代码示例,展示了JDesktopPane.setOpaque()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JDesktopPane.setOpaque()
方法的具体详情如下:
包路径:javax.swing.JDesktopPane
类名称:JDesktopPane
方法名:setOpaque
暂无
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction
@Override
public void setOpaque(boolean aValue) {
super.setOpaque(aValue);
}
代码示例来源:origin: com.numdata/numdata-swing
/**
* Constructs a new context.
*
* @param rootPane Root pane that will contain the window.
*/
public LightweightWindowManager( final JRootPane rootPane )
{
_rootPane = rootPane;
final JDesktopPane desktop = new JDesktopPane()
{
@Override
protected void paintComponent( final Graphics g )
{
g.setColor( new Color( 0, true ) );
g.fillRect( 0, 0, getWidth(), getHeight() );
}
};
desktop.setOpaque( false );
/*
* Block mouse events to components beneath the glass pane.
*/
final MouseAdapter mouseListener = new MouseAdapter()
{
};
desktop.addMouseListener( mouseListener );
desktop.addMouseWheelListener( mouseListener );
desktop.addMouseMotionListener( mouseListener );
_desktop = desktop;
_internalFrameListener = new FrameListener();
}
内容来源于网络,如有侵权,请联系作者删除!