本文整理了Java中javax.swing.JInternalFrame.setMaximizable()
方法的一些代码示例,展示了JInternalFrame.setMaximizable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JInternalFrame.setMaximizable()
方法的具体详情如下:
包路径:javax.swing.JInternalFrame
类名称:JInternalFrame
方法名:setMaximizable
暂无
代码示例来源:origin: pentaho/mondrian
jf.setClosable(true);
jf.setIconifiable(true);
jf.setMaximizable(true);
jf.setResizable(true);
jf.setVisible(true);
代码示例来源:origin: pentaho/mondrian
jf.setClosable(true);
jf.setIconifiable(true);
jf.setMaximizable(true);
jf.setResizable(true);
jf.setVisible(true);
代码示例来源:origin: antlr/antlrworks
public void setMaximizable(boolean flag) {
if(useDesktop) {
jInternalFrame.setMaximizable(flag);
} else {
// not applicable
}
}
代码示例来源:origin: pentaho/mondrian
schemaFrame.setClosable(true);
schemaFrame.setIconifiable(true);
schemaFrame.setMaximizable(true);
schemaFrame.setResizable(true);
schemaFrame.setVisible(true);
代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf
public void setMinimizable(boolean minimizable) {
if (this.minimizable == minimizable)
return;
boolean old = this.minimizable;
this.minimizable = minimizable;
internalFrame.setMaximizable(minimizable);
firePropertyChangeEvent("minimizable", old, minimizable);
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction
public void setMaximizable(boolean aValue) {
maximizable = aValue;
if (surface instanceof JDialog) {
//((JDialog) surface).setMaximizable(maximizable);
}
if (surface instanceof JInternalFrame) {
((JInternalFrame) surface).setMaximizable(maximizable);
}
if (surface instanceof JFrame) {
//((JFrame) surface).setMaximizable(maximizable);
}
}
代码示例来源: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: org.cytoscape/swing-application-impl
private void updateNetworkFrameSize(final CyNetworkView view, int width, int height, boolean resizable) {
final JInternalFrame frame = presentationContainerMap.get(view);
if (frame == null)
return;
if (width > 0 && height > 0) {
if(width != frame.getContentPane().getWidth() &&
height != frame.getContentPane().getHeight()) {
frame.getContentPane().setPreferredSize(new Dimension(width, height));
frame.pack();
}
}
frame.setResizable(resizable);
frame.setMaximizable(resizable);
}
代码示例来源: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.setClosable(true);
frame.setIconifiable(true);
frame.setMaximizable(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: net.sourceforge.mydoggy/mydoggy-plaf
protected void initInternalFrame() {
internalFrame = new JInternalFrame(content.getTitle(), true, true, true, true);
internalFrame.setFrameIcon(content.getIcon());
internalFrame.getContentPane().add(content.getComponent());
internalFrame.setClosable(closable);
internalFrame.setMaximizable(true);
initInternalFrameListeners();
}
代码示例来源:origin: stackoverflow.com
frame.setLocation(p);
frame.setResizable(true);
frame.setMaximizable(true);
frame.setIconifiable(true);
frame.setClosable(true);
代码示例来源:origin: stackoverflow.com
setResizable(true);
setClosable(true);
setMaximizable(true);
setIconifiable(true);
pack();
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/skinlf
/**
* Constructor for the InternalTest object
*/
InternalTest() {
setLayout(new BorderLayout());
JDesktopPane desk = new JDesktopPane();
add("Center", new JScrollPane(desk));
desk.putClientProperty("JDesktopPane.backgroundEnabled", Boolean.TRUE);
JInternalFrame frame = new JInternalFrame("A Frame", true, true, true, true);
frame.getContentPane().add(new JButton("Ola"));
frame.setVisible(true);
frame.setSize(200, 100);
desk.add(frame);
frame = new JInternalFrame("An other Frame", true, true, true, true);
frame.getContentPane().add(new JButton("Hello"));
frame.setMaximizable(false);
frame.setVisible(true);
frame.setSize(200, 200);
frame.setLocation(50, 50);
desk.add(frame);
}
}
代码示例来源:origin: stackoverflow.com
i.setClosable(true);
i.setIconifiable(true);
i.setMaximizable(true);
i.setDefaultCloseOperation(JInternalFrame.DISPOSE_ON_CLOSE);
i.setSize(320,240);
代码示例来源:origin: com.googlecode.gstreamer-java/gstreamer-java
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.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;
}
内容来源于网络,如有侵权,请联系作者删除!