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

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

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

JInternalFrame.setIconifiable介绍

暂无

代码示例

代码示例来源:origin: pentaho/mondrian

jf.setBounds(0, 0, 500, 480);
jf.setClosable(true);
jf.setIconifiable(true);
jf.setMaximizable(true);
jf.setResizable(true);

代码示例来源:origin: pentaho/mondrian

jf.setBounds(0, 0, 500, 480);
jf.setClosable(true);
jf.setIconifiable(true);
jf.setMaximizable(true);
jf.setResizable(true);

代码示例来源:origin: pentaho/mondrian

schemaFrame.setIconifiable(true);
schemaFrame.setMaximizable(true);
schemaFrame.setResizable(true);

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@ScriptFunction
public void setMinimizable(boolean aValue) {
  minimizable = aValue;
  if (surface instanceof JDialog) {
    //((JDialog) surface).setMinimizable(minimizable);
  }
  if (surface instanceof JInternalFrame) {
    ((JInternalFrame) surface).setIconifiable(minimizable);
  }
  if (surface instanceof JFrame) {
    //((JFrame) surface).setMinimizable(minimizable);
  }
}

代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu

public void addLayoutComponent(Component _c, Object _o) {
 // System.out.println("ADD "+_c);
 if ((_c instanceof JComponent) && isPalette((JComponent) _c)) return;
 if (_c instanceof BuInternalFrame) ((BuInternalFrame) _c).simplifyTop();
 /*
  * if(_c instanceof JComponent) ((JComponent)_c).setBorder(UIManager.getBorder("TitleBorder.border"));
  */
 if (_c instanceof JInternalFrame) {
  JInternalFrame f = (JInternalFrame) _c;
  f.setIconifiable(false);
  f.setMaximizable(false);
  // f.setVisible(f.isSelected());
 }
}

代码示例来源:origin: BranislavLazic/SwingTutorials

public void run() {
    JDesktopPane desktopPane = new JDesktopPane();
    JInternalFrame intFrame = new JInternalFrame(
        "JInternalFrame demo");
    intFrame.setMaximizable(true);
    intFrame.setIconifiable(true);
    intFrame.setResizable(true);
    intFrame.setClosable(true);
    intFrame.setDefaultCloseOperation(JInternalFrame.DISPOSE_ON_CLOSE);
    intFrame.setSize(320, 240);
    // intFrame.pack();
    intFrame.setVisible(true);
    desktopPane.add(intFrame);
    JFrame frame = new JFrame();
    frame.add(desktopPane);
    frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    frame.setSize(640, 480);
    // frame.pack();
    frame.setVisible(true);
  }
});

代码示例来源:origin: com.googlecode.gstreamer-java/gstreamer-java

frame.setResizable(true);
frame.setClosable(true);
frame.setIconifiable(true);
frame.setMaximizable(true);

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

layersPanel.setIconifiable(true);

代码示例来源:origin: net.sf.nimrod/nimrod-laf

public void actionPerformed( ActionEvent ev) {
  JInternalFrame jif = new JInternalFrame( "The Long Titled Internal Frame, n� (this is to test \"strange caracters\" titles)" + pos / 5, true, true, true, true);
  
  jif.setVisible( true);
  jif.setFrameIcon( nextIcon());
  
  jif.setIconifiable( true);
  jif.setMaximizable( true);
  jif.setClosable( true);
  
  JButton but = new JButton( "Change Icon");
  but.addActionListener( new dummy( jif));
  jif.getContentPane().add( new JLabel( "Another InternalFrame"));
  jif.getContentPane().add( but, BorderLayout.SOUTH);
  
  jif.setLocation( new Point( pos, pos));
  
  pos += 5;
  jif.pack();
  desktop.add( jif);
  
  try {
   jif.setSelected( true);
  }
  catch ( PropertyVetoException e) {}
 }
}

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

iFrame.setResizable(true);
iFrame.setClosable(true);
iFrame.setIconifiable(true);
iFrame.setSize(new Dimension(300, 300));
iFrame.setLocation(0, 0);

代码示例来源:origin: antlr/antlrworks

jInternalFrame.setClosable(true);
jInternalFrame.setMaximizable(true);
jInternalFrame.setIconifiable(true);

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

frame.setResizable(true);
frame.setMaximizable(true);
frame.setIconifiable(true);
frame.setClosable(true);
frame.setVisible(true);

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

setClosable(true);
setMaximizable(true);
setIconifiable(true);
pack();
setVisible(true);

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

setLayout(new BorderLayout());
i.setClosable(true);
i.setIconifiable(true);
i.setMaximizable(true);
i.setDefaultCloseOperation(JInternalFrame.DISPOSE_ON_CLOSE);

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

if (imageFrame == null || imageFrame.isClosed()) {
  imageFrame = new JInternalFrame("Image");
  imageFrame.setIconifiable(true);
  imageFrame.setMaximizable(true);
  imageFrame.setClosable(true);

代码示例来源:origin: com.googlecode.gstreamer-java/gstreamer-java

frame.setResizable(true);
frame.setClosable(true);
frame.setIconifiable(true);
frame.setMaximizable(true);

代码示例来源: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: com.eas.platypus/platypus-js-forms

internalFrame.setIconifiable(true);
internalFrame.setMaximizable(true);
internalFrame.getContentPane().add(view, BorderLayout.CENTER);

代码示例来源: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.opentcs.thirdparty.jhotdraw/jhotdraw

f.setMaximizable(true);
f.setResizable(true);
f.setIconifiable(false);
f.setSize(new Dimension(400, 400));
updateViewTitle(v, f);

相关文章

JInternalFrame类方法