Package javax.swing

Examples of javax.swing.JPanel.invalidate()


      JPanel ret = new JPanel();
      ret.setLayout(new BoxLayout(ret, BoxLayout.Y_AXIS));
      ret.setAlignmentY((float) 0);
      for (int i = 0; i < labels.length; i++) {
        JPanel componentPanel = new JPanel();
        componentPanel.invalidate();
        componentPanel.setVisible(true);
        componentPanel.setLayout(new GridLayout(1, 1));
        componentPanel.setBorder(new TitledBorder(new EtchedBorder(),
            labels[i]));
        componentPanel.add(components[i]);
View Full Code Here


     * @return
     */
    public static JPanel createRightAlignedOkAndCancelButtonPanel(
        Map<String, JButton> controls) {
      JPanel panel = new JPanel();
      panel.invalidate();
      panel.setVisible(true);

      panel.setLayout(new FlowLayout(FlowLayout.RIGHT));

      JButton ok = new JButton("Ok");
View Full Code Here

      controls.put("ok", ok);
      controls.put("cancel", cancel);

      JPanel buttonsPanel = new JPanel();
      buttonsPanel.invalidate();
      buttonsPanel.setVisible(true);
      buttonsPanel.setLayout(new GridLayout(1, 2, 10, 10));
      buttonsPanel.add(ok);
      buttonsPanel.add(cancel);
View Full Code Here

    }

    public static JPanel createRightAlignedButtonsPanel(String[] labels,
        String[] names, Map<String, JButton> controls) {
      JPanel panel = new JPanel();
      panel.invalidate();
      panel.setVisible(true);

      JPanel buttonsPanel = GuiUtils.ComponentCreator.newPanel();
      buttonsPanel.setLayout(new GridLayout(1, labels.length, 10, 10));
View Full Code Here

    }

    public static JPanel createLeftAlignedButtonsPanel(String[] labels,
        String[] names, Map<String, JButton> controls) {
      JPanel panel = new JPanel();
      panel.invalidate();
      panel.setVisible(true);
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));

      JPanel buttonsPanel = GuiUtils.ComponentCreator.newPanel();
      buttonsPanel.setLayout(new GridLayout(1, labels.length, 10, 10));
View Full Code Here

      progressBar.invalidate();
      progressBar.setVisible(true);

      JPanel pbPanel = new JPanel();
      pbPanel.setLayout(new BoxLayout(pbPanel, BoxLayout.X_AXIS));
      pbPanel.invalidate();
      pbPanel.setVisible(true);
      pbPanel.add(GuiConstructionUtilities.newHorizontalFiller(15));
      pbPanel.add(progressBar);
      pbPanel.add(GuiConstructionUtilities.newHorizontalFiller(15));
      return pbPanel;
View Full Code Here

    cancelButton.setVisible(true);
    cancelButton.invalidate();
    cancelButton.addActionListener(this);
    p.add(cancelButton);

    p.invalidate();
    p.setVisible(true);
    return p;
  }

  /**
 
View Full Code Here

    Class<?> editingContextPanelMakerClass = Class.forName(ConfigProperties
        .getInstance().getProperty(BEAN_EDITING_CONTEXT_PANEL_MAKER));
    ((IBeanEditingContextPanelMaker) editingContextPanelMakerClass
        .newInstance()).setupPanel(innerPanel, getEditingContext());

    innerPanel.invalidate();
    innerPanel.setVisible(true);
    JScrollPane sp = new JScrollPane();
    sp.setVisible(true);
    sp.invalidate();
    sp.setViewportView(innerPanel);
View Full Code Here

    editingPanel.setLayout(new BorderLayout());
    editingPanel.add(getBeanPanel(), BorderLayout.CENTER);
    editingPanel.add(getActionButtonPanel(), BorderLayout.SOUTH);
    editingPanel.add(getEditingContextPanel(), BorderLayout.WEST);
    editingPanel.setVisible(true);
    editingPanel.invalidate();
    tabbedPane.add("Edit bean field", editingPanel);

    tabbedPane.add("View entire bean", renderWholeBeanPanel());
    tabbedPane.setVisible(true);
    tabbedPane.invalidate();
View Full Code Here

    label = new JLabel();
    label.invalidate();
    label.setVisible(true);
    JPanel lbPanel = new JPanel();
    lbPanel.invalidate();
    lbPanel.setVisible(true);
    lbPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
    lbPanel.add(GuiConstructionUtilities.newHorizontalFiller(15));
    lbPanel.add(label);
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.