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

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

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

JInternalFrame.setResizable介绍

暂无

代码示例

代码示例来源:origin: geotools/geotools

} else {
  final JInternalFrame window = (JInternalFrame) JProgressWindow.this.window;
  window.setResizable(true);

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

jf.setIconifiable(true);
jf.setMaximizable(true);
jf.setResizable(true);
jf.setVisible(true);

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

jf.setIconifiable(true);
jf.setMaximizable(true);
jf.setResizable(true);
jf.setVisible(true);

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

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

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

public void setResizable(boolean flag) {
  if(useDesktop) {
    jInternalFrame.setResizable(flag);
  } else {
    jFrame.setResizable(flag);
  }
}

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

public void setResizable( boolean b )
{
  if( f != null ) {
    f.setResizable( b );
  } else if( d != null ) {
    d.setResizable( b );
  } else if( jif != null ) {
    jif.setResizable( b );
  } else {
    throw new IllegalStateException();
  }
}

代码示例来源:origin: org.fudaa.framework.ebli/ebli-2d

public void setVideoMode(final boolean _b) {
  // pour eviter qu'un thread soit cree par la vue calque
  getVueCalque().setNoRepaintTask(_b);
  final Container f = SwingUtilities.getAncestorOfClass(JInternalFrame.class, ZEbliCalquesPanel.this);
  if (f != null) {
   ((JInternalFrame) f).setResizable(!_b);
  }
 }
}

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

@ScriptFunction
public void setResizable(boolean aValue) {
  resizable = aValue;
  if (surface instanceof JDialog) {
    ((JDialog) surface).setResizable(resizable);
  }
  if (surface instanceof JInternalFrame) {
    ((JInternalFrame) surface).setResizable(resizable);
  }
  if (surface instanceof JFrame) {
    ((JFrame) surface).setResizable(resizable);
  }
}

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

import javax.swing.JDesktopPane;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import net.miginfocom.swing.MigLayout;

public class MainClass {

  public static void main(String[] args) {
    JFrame frame = new JFrame ();
    frame.setVisible(true);
    frame.setAlwaysOnTop(true);
    final JDesktopPane desktopPane = new JDesktopPane();
    desktopPane.setLayout(new MigLayout("center panel",
        "[100px:100px:1366px,grow,shrink 50,center]",
        "[100px:100px:768px,grow,shrink 50,center]"));
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);        
    JInternalFrame form = new JInternalFrame();
    form.setResizable(true);      
    form.setVisible(true);
    desktopPane.add(form);
    frame.add(desktopPane);
  }
}

代码示例来源: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: stackoverflow.com

import javax.swing.JInternalFrame;

public class WeatherIFrame extends JInternalFrame {

  public WeatherIFrame() {
    this.setTitle("Weather");
    this.setSize(300, 200);
    this.setVisible(true);
    this.setClosable(true);
    this.setResizable(true);        
  }
}

代码示例来源: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

File file = files[i];
JInternalFrame frame = new JInternalFrame(file.getName());
frame.setResizable(true);
frame.setClosable(true);
frame.setIconifiable(true);

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

getContentPane().add(scroll);
setTitle("Employees");
setResizable(true);
setClosable(true);
setMaximizable(true);

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

jInternalFrame.setResizable(true);
jInternalFrame.setSize(new Dimension(300, 300));
jInternalFrame.setLocation(100, 100);

代码示例来源:origin: org.appdapter/org.appdapter.lib.gui

private JInternalFrame createJInternalFrame(String name, Class c, Component view) {
  JInternalFrame frame = new JInternalFrame(name, true, true, true, true);
  frame.setResizable(true);
  try {
    // Get an icon for the object
    Icon icon;
    icon = Utility.getIcon(c);
    frame.setFrameIcon(icon);
  } catch (Exception e) {
  }
  // Put the GUI and icon in the frame
  frame.getContentPane().add(view);
  // Listen to the frame, so we notice if it closes
  frame.addInternalFrameListener(listener);
  BoxPanelSwitchableView bsv = Utility.getBoxPanelTabPane();
  bsv.addComponent(name, frame, DisplayType.FRAME);
  return frame;
}

代码示例来源: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.bbossgroups/bboss-htmlparser

frame.setResizable (true);
dimension = mOutput.getSize ();
frame.setBounds (0, 0, dimension.width, dimension.height / 2);

代码示例来源: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: palantir/Cinch

left.setResizable(true);
left.setSize(400, 800);
left.setVisible(true);
right.setResizable(true);
right.setSize(400, 800);
right.setVisible(true);

相关文章

JInternalFrame类方法