javax.swing.JInternalFrame.setUI()方法的使用及代码示例

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

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

JInternalFrame.setUI介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

JInternalFrame iframe = new JInternalFrame("blah",true,true,true,true);
UIManager.put("InternalFrame.activeTitleBackground", new ColorUIResource(new Color(248,250,175)));
UIManager.put("InternalFrame.inactiveTitleBackground", new ColorUIResource(new Color(248,250,175)));
javax.swing.plaf.basic.BasicInternalFrameUI ui = 
  new javax.swing.plaf.basic.BasicInternalFrameUI(iframe); 
iframe.setUI(ui);

代码示例来源:origin: de.sciss/scisslib

public void setUndecorated( boolean b )
  {
    if( d != null ) {
      d.setUndecorated( b );
    } else if( f != null ) {
      f.setUndecorated( b );
    } else if( jif != null ) {
//            System.out.println( "ERROR: borderless property not supported by internal frames!" );
//            jif.getRootPane().setWindowDecorationStyle( JRootPane.NONE );
      jif.setUI( new EmptyInternalFrameUI( jif ));
    } else {
      throw new IllegalStateException( "setUndecorated() is not supported by this window type" );
    }
  }

代码示例来源:origin: com.fifesoft.rtext/fife.common

@Override
public void setUI(InternalFrameUI ui) {
  super.setUI(new BasicInternalFrameUI(this) {
      @Override
      protected MouseInputAdapter createBorderListener(JInternalFrame w) {
        return null;
      }
      @Override
      protected void installMouseHandlers(JComponent c) {
      }
      });
  setRootPaneCheckingEnabled(false);
  ((BasicInternalFrameUI)getUI()).setNorthPane(null);
  setRootPaneCheckingEnabled(true);
}

相关文章

JInternalFrame类方法