javax.swing.JDesktopPane.setOpaque()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(89)

本文整理了Java中javax.swing.JDesktopPane.setOpaque()方法的一些代码示例,展示了JDesktopPane.setOpaque()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JDesktopPane.setOpaque()方法的具体详情如下:
包路径:javax.swing.JDesktopPane
类名称:JDesktopPane
方法名:setOpaque

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();
}

相关文章