private void initializeComponent() { JPanel panel = new JPanel(); panel.setLayout(new GridBagLayout()); getRootPane().setLayout(new BorderLayout()); getRootPane().add(panel, BorderLayout.CENTER);
private void initializeComponent() { JPanel panel = new JPanel(); panel.setLayout(new GridBagLayout()); getRootPane().setLayout(new BorderLayout()); getRootPane().add(panel, BorderLayout.CENTER);
private void initializeComponent() { JPanel panel = new JPanel(); panel.setLayout(new GridBagLayout()); getRootPane().setLayout(new BorderLayout()); getRootPane().add(panel, BorderLayout.CENTER);
getRootPane().setLayout(layout); layout.setAutoCreateGaps(true); layout.setAutoCreateContainerGaps(true);
getRootPane().setLayout(layout); layout.setAutoCreateGaps(true); layout.setAutoCreateContainerGaps(true);
private void initializeComponent() { JPanel panel = new JPanel(); panel.setLayout(new GridBagLayout()); getRootPane().setLayout(new BorderLayout()); getRootPane().add(panel, BorderLayout.CENTER);
private void initializeComponent() { JPanel panel = new JPanel(); panel.setLayout(new GridBagLayout()); getRootPane().setLayout(new BorderLayout()); getRootPane().add(panel, BorderLayout.CENTER); processIdTextField = new JTextField("com.sample.ruleflow"); GridBagConstraints c = new GridBagConstraints(); c.weightx = 1; c.fill = GridBagConstraints.HORIZONTAL; c.insets = new Insets(5, 5, 5, 5); panel.add(processIdTextField, c); startButton = new JButton("Start"); startButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { start(); } }); c = new GridBagConstraints(); c.gridy = 1; c.anchor = GridBagConstraints.EAST; c.insets = new Insets(5, 5, 5, 5); panel.add(startButton, c); }
/** * Uninstalls the previously installed <code>LayoutManager</code>. * * @param root * Root pane. */ private void uninstallLayout(JRootPane root) { if (this.savedOldLayout != null) { root.setLayout(this.savedOldLayout); this.savedOldLayout = null; } }
public void uninstallLayout(JRootPane root) { if (savedOldLayout != null) { root.setLayout(savedOldLayout); savedOldLayout = null; } }
/** * Uninstalls the previously installed <code>LayoutManager</code>. * * @param root the JRootPane. */ private void uninstallLayout(JRootPane root) { if (savedOldLayout != null) { root.setLayout(savedOldLayout); savedOldLayout = null; } }
/** * Uninstalls the previously installed <code>LayoutManager</code>. */ private void uninstallLayout(JRootPane root) { if (savedOldLayout != null) { root.setLayout(savedOldLayout); savedOldLayout = null; } }
/** * Uninstalls the previously installed <code>LayoutManager</code>. * * @param root * Root pane. */ private void uninstallLayout(JRootPane root) { if (this.savedOldLayout != null) { root.setLayout(this.savedOldLayout); this.savedOldLayout = null; } }
/** * Uninstalls the previously installed <code>LayoutManager</code>. */ private void uninstallLayout(JRootPane root) { if (savedOldLayout != null) { root.setLayout(savedOldLayout); savedOldLayout = null; } }
/** * Installs the appropriate LayoutManager on the <code>JRootPane</code> to * render the window decorations. */ private void installLayout(JRootPane root) { if (layoutManager == null) { layoutManager = createLayoutManager(); } savedOldLayout = root.getLayout(); root.setLayout(layoutManager); }
/** * Installs the appropriate LayoutManager on the <code>JRootPane</code> to render the window decorations. * * @param root */ public void installLayout(JRootPane root) { if (layoutManager == null) { layoutManager = createLayoutManager(); } savedOldLayout = root.getLayout(); root.setLayout(layoutManager); }
/** * Installs the appropriate LayoutManager on the <code>JRootPane</code> to * render the window decorations. */ private void installLayout(JRootPane root) { if (layoutManager == null) { layoutManager = createLayoutManager(); } savedOldLayout = root.getLayout(); root.setLayout(layoutManager); }
/** * Installs the appropriate LayoutManager on the <code>JRootPane</code> to * render the window decorations. * * @param root * Root pane. */ private void installLayout(JRootPane root) { if (this.layoutManager == null) { this.layoutManager = this.createLayoutManager(); } this.savedOldLayout = root.getLayout(); root.setLayout(this.layoutManager); }
/** * Installs the appropriate LayoutManager on the <code>JRootPane</code> to * render the window decorations. * * @param root the JRootPane. */ private void installLayout(JRootPane root) { if (layoutManager == null) { layoutManager = createLayoutManager(); } savedOldLayout = root.getLayout(); root.setLayout(layoutManager); }
/** * Installs the appropriate LayoutManager on the <code>JRootPane</code> to * render the window decorations. * * @param root * Root pane. */ private void installLayout(JRootPane root) { if (this.layoutManager == null) { this.layoutManager = this.createLayoutManager(); } this.savedOldLayout = root.getLayout(); root.setLayout(this.layoutManager); }
@Override public void run() { //Get the main window of the NetBeans Platform: JFrame frame = (JFrame) WindowManager.getDefault().getMainWindow(); //Get our custom main toolbar: JComponent toolbar = new BannerComponent(); //Set the new layout of our root pane: frame.getRootPane().setLayout(new BannerRootPanelLayout(toolbar)); //Install a new toolbar component into the layered pane //of the main frame on layer 0: toolbar.putClientProperty(JLayeredPane.LAYER_PROPERTY, 0); frame.getRootPane().getLayeredPane().add(toolbar, 0); } });