Examples of revalidate()


Examples of javax.swing.JOptionPane.revalidate()

            if (JOptionPane.ICON_PROPERTY.equals(event.getPropertyName()) ||
                JOptionPane.MESSAGE_PROPERTY.equals(event.getPropertyName()) ||
                JOptionPane.OPTIONS_PROPERTY.equals(event.getPropertyName()) ||
                JOptionPane.INITIAL_VALUE_PROPERTY.equals(event.getPropertyName())) {

                pane.revalidate();
            } else if (JOptionPane.SELECTION_VALUES_PROPERTY.equals(event.getPropertyName()) ||
                       JOptionPane.WANTS_INPUT_PROPERTY.equals(event.getPropertyName())) {

                initValues(pane);
                pane.revalidate();
View Full Code Here

Examples of javax.swing.JOptionPane.revalidate()

                pane.revalidate();
            } else if (JOptionPane.SELECTION_VALUES_PROPERTY.equals(event.getPropertyName()) ||
                       JOptionPane.WANTS_INPUT_PROPERTY.equals(event.getPropertyName())) {

                initValues(pane);
                pane.revalidate();
            } else if (JOptionPane.INITIAL_SELECTION_VALUE_PROPERTY.equals(event.getPropertyName())) {
                setInputValue(event.getNewValue());
            } else if (StringConstants.ANCESTOR_PROPERTY_NAME.equals(event.getPropertyName())
                    && (event.getOldValue() == null)) {
View Full Code Here

Examples of javax.swing.JPanel.revalidate()

    portField = new JTextField(8);
    portField.setName(ProxyControl.PORT);
    portField.addKeyListener(this);
    portField.setText("8080");
    panel.add(portField);
    panel.revalidate();
    return panel;
  }

  private JPanel createIncludePanel()
  {
View Full Code Here

Examples of javax.swing.JPanel.revalidate()

        JPanel panel = new JPanel();
        panel.setLayout(new BorderLayout());
        panel.add(sourceCodeScrollPane, BorderLayout.CENTER);

        panel.revalidate();
        if (MainFrame.GUI2_DEBUG) {
            System.out.println("Created source code panel");
        }
        return panel;
    }
View Full Code Here

Examples of javax.swing.JPanel.revalidate()

          tree.setModel(treeModel);
          //tree.setPreferredSize(new Dimension(180, 400));
          treePanel.removeAll();
          treePanel.add("Center", tree);
          //pack();
          treePanel.revalidate();
          selBtn.setEnabled(true);
         
        }catch(RuntimeException e){
          e.printStackTrace();
         
View Full Code Here

Examples of javax.swing.JPanel.revalidate()

        }catch(RuntimeException e){
          e.printStackTrace();
         
          treePanel.removeAll();
          treePanel.add("Center", new JTextArea(e.getMessage()));
          treePanel.revalidate();
         
          //dispose();
        }
      }
    }.start();
View Full Code Here

Examples of javax.swing.JPopupMenu.revalidate()

                  .getSelected().getModel().getExtendsConfig());
              extendsConfig.add(selected);
              state.getSelected().getModel().setExtendsConfig(extendsConfig);
              availableModel.remove(availableList.getSelectedIndex());
              mineModel.addElement(selected);
              popup.revalidate();
              DefaultPropView.this.notifyListeners();
            }

            public void mouseEntered(MouseEvent e) {
            }
View Full Code Here

Examples of javax.swing.JPopupMenu.revalidate()

                  .getSelected().getModel().getExtendsConfig());
              extendsConfig.remove(selected);
              state.getSelected().getModel().setExtendsConfig(extendsConfig);
              mineModel.remove(mineList.getSelectedIndex());
              availableModel.addElement(selected);
              popup.revalidate();
              DefaultPropView.this.notifyListeners();
            }

            public void mouseEntered(MouseEvent e) {
            }
View Full Code Here

Examples of javax.swing.JRootPane.revalidate()

              _log.debug("\tsetting root pane size to " + newSize);
            }
            if (newSize.height != rootPane.getHeight()
                    || newSize.width != rootPane.getWidth()) {
                rootPane.setSize(newSize);
                rootPane.revalidate(); //PM:4/8/07 Added to correct paint issue
                rootPane.repaint();
            }
        }

        if (_log.isDebugEnabled()) {
View Full Code Here

Examples of javax.swing.JScrollPane.revalidate()

        Dimension spDim = new Dimension(
            viewportSize.width + ins.left + ins.right + scrollBarWidth,
            viewportSize.height + ins.top + ins.bottom + ((header != null) ? header.getPreferredSize().height : 0));
        if (!(sp.isMinimumSizeSet() && spDim.equals(sp.getMinimumSize()))) {
          sp.setMinimumSize(spDim);               
          sp.revalidate();
        }
      }
      else {
        // The array field is not parented onto a scroll pane, set the minimum size to allow
        // proper layout to occur.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.