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

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

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

JInternalFrame.setGlassPane介绍

暂无

代码示例

代码示例来源:origin: org.xworker/xworker_core

public static void createGlassPane(ActionContext actionContext){
  Thing self = (Thing) actionContext.get("self");
  JInternalFrame parent = (JInternalFrame) actionContext.get("parent");
  
  for(Thing child : self.getChilds()){
    Component c = (Component) child.doAction("create", actionContext);
    if(c != null){
      parent.setGlassPane(c);
      break;
    }
  }
}

代码示例来源:origin: org.jspresso.framework/jspresso-swing-application

/**
 * Creates a new JInternalFrame and populates it with a view.
 *
 * @param view
 *          the view to be set into the internal frame.
 * @return the constructed internal frame.
 */
private JInternalFrame createJInternalFrame(JComponent view, String title,
  Icon frameIcon) {
 JInternalFrame internalFrame = new JInternalFrame(title);
 internalFrame.setFrameIcon(frameIcon);
 internalFrame.setResizable(true);
 internalFrame.setClosable(true);
 internalFrame.setMaximizable(true);
 internalFrame.setIconifiable(true);
 internalFrame.getContentPane().add(view, BorderLayout.CENTER);
 internalFrame.setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE);
 internalFrame.setGlassPane(createHermeticGlassPane());
 return internalFrame;
}

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

setGlassPane(glassPane);

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

setGlassPane(glassPane);

代码示例来源:origin: org.jspresso/jspresso-swing-application

/**
 * Creates a new JInternalFrame and populates it with a view.
 * 
 * @param view
 *            the view to be set into the internal frame.
 * @return the constructed internal frame.
 */
private JInternalFrame createJInternalFrame(IView<JComponent> view) {
 JInternalFrame internalFrame = new JInternalFrame(view.getDescriptor()
   .getI18nName(getTranslationProvider(), getLocale()));
 internalFrame.setFrameIcon(getIconFactory().getIcon(
   view.getDescriptor().getIconImageURL(), IIconFactory.SMALL_ICON_SIZE));
 internalFrame.setResizable(true);
 internalFrame.setClosable(false);
 internalFrame.setMaximizable(true);
 internalFrame.setIconifiable(true);
 internalFrame.getContentPane().add(view.getPeer(), BorderLayout.CENTER);
 internalFrame.setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE);
 internalFrame.setGlassPane(createHermeticGlassPane());
 return internalFrame;
}

代码示例来源:origin: org.jclarion/clarion-runtime

c.setGlassPane(glass);
c.putClientProperty("shadow", Boolean.TRUE);
glass.setVisible(true);

相关文章

JInternalFrame类方法