} else { final JInternalFrame window = (JInternalFrame) JProgressWindow.this.window; window.setResizable(true);
jf.setIconifiable(true); jf.setMaximizable(true); jf.setResizable(true); jf.setVisible(true);
jf.setIconifiable(true); jf.setMaximizable(true); jf.setResizable(true); jf.setVisible(true);
schemaFrame.setIconifiable(true); schemaFrame.setMaximizable(true); schemaFrame.setResizable(true); schemaFrame.setVisible(true);
public void setResizable(boolean flag) { if(useDesktop) { jInternalFrame.setResizable(flag); } else { jFrame.setResizable(flag); } }
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(); } }
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); } } }
@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); } }
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); } }
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); }
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); } }
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); } });
File file = files[i]; JInternalFrame frame = new JInternalFrame(file.getName()); frame.setResizable(true); frame.setClosable(true); frame.setIconifiable(true);
getContentPane().add(scroll); setTitle("Employees"); setResizable(true); setClosable(true); setMaximizable(true);
jInternalFrame.setResizable(true); jInternalFrame.setSize(new Dimension(300, 300)); jInternalFrame.setLocation(100, 100);
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; }
/** * 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; }
frame.setResizable (true); dimension = mOutput.getSize (); frame.setBounds (0, 0, dimension.width, dimension.height / 2);
/** * 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; }
left.setResizable(true); left.setSize(400, 800); left.setVisible(true); right.setResizable(true); right.setSize(400, 800); right.setVisible(true);