Examples of revalidate()


Examples of javax.swing.JSplitPane.revalidate()

                        JSplitPane splitPane = (JSplitPane) headerContainer;
                        splitPane.setDividerLocation(-1);
                        splitPane.setDividerSize(8);
                        splitPane.setOneTouchExpandable(true);
                        splitPane.repaint();
                        splitPane.revalidate();

                    }

                }
View Full Code Here

Examples of javax.swing.JTabbedPane.revalidate()

      public void run() {
        // Create Tab
        addUIElement("jobs." + jobId, jobPanel);
        JTabbedPane tabs = getUIElement("tabs");
        tabs.addTab(profile.getJob().getClass().getSimpleName(), jobPanel);
        tabs.revalidate();
      }
    });

   
   
View Full Code Here

Examples of javax.swing.JTabbedPane.revalidate()

  protected void removeJobTab(String jobId) {
   
    // Detach Tab
    JTabbedPane tabs = getUIElement("tabs");
    tabs.remove(getUIElement("jobs." + jobId));
    tabs.revalidate();
   
    // Remove UI Elements
    removeUIElement("jobs."+jobId+".progress");
    removeUIElement("jobs."+jobId+".terminate");
    removeUIElement("jobs."+jobId+".closetab");
View Full Code Here

Examples of javax.swing.JTable.revalidate()

          if (!table.getValueAt(e.getLastRow(), e.getColumn()).toString().trim().equals("")) {
            node.setStateAt(table.getValueAt(e.getLastRow(),
                e.getColumn()).toString(), e.getLastRow()
                - (table.getRowCount() - node.getStatesSize()));
          } else {
            table.revalidate();
            table.setValueAt(node.getStateAt(e.getLastRow()
                - (table.getRowCount() - node.getStatesSize())), e.getLastRow(),
                e.getColumn());
          }
        // Change the CPT cell or reset to its previous value.
View Full Code Here

Examples of javax.swing.JTextArea.revalidate()

        }
      }
    }
    JTextArea messageField = inspectionControl.getMessageField();
    messageField.setText(message.toString());
    messageField.revalidate();
  }

  /**
   * (overridden)
   *
 
View Full Code Here

Examples of javax.swing.JToolBar.revalidate()

      g.setColor(Color.gray);
      if (parent.getOrientation() == SwingConstants.HORIZONTAL) {
        if (orientation != SwingConstants.HORIZONTAL) {
          setMaximumSize(Horizontal);
          orientation = SwingConstants.HORIZONTAL;
          parent.revalidate();
        }
        g.drawLine(d.width / 2, 0, d.width / 2, d.height);
      } else {
        if (orientation != SwingConstants.VERTICAL) {
          setMaximumSize(Vertical);
View Full Code Here

Examples of javax.swing.JViewport.revalidate()

            JViewport vp2 = scrollPane2.getViewport();
            Point p1 = vp1.getViewPosition();
            Point p2 = vp2.getViewPosition();
            p2.setLocation((int) p2.getX(), (int) p1.getY());
            vp2.setViewPosition(p2);
            vp2.revalidate();
          }
        });

        scrollPane2.getViewport().addChangeListener(new ChangeListener() {
          public void stateChanged(ChangeEvent e) {
View Full Code Here

Examples of javax.swing.text.JTextComponent.revalidate()

      if (isHideLabel(state))
      {
        graphComponent.redraw(state);
      }

      currentEditor.revalidate();
      currentEditor.requestFocusInWindow();
      currentEditor.selectAll();

      configureActionMaps();
    }
View Full Code Here

Examples of mage.client.game.CombatGroup.revalidate()

      CombatGroup combatGroup = new CombatGroup();
      combatGroup.init(gameId, bigCard);
      combatGroup.update(group);
      combatGroup.setVisible(true);
      combatArea.add(combatGroup);
      combatGroup.revalidate();
    }
    try {
      this.setSelected(true);
    } catch (PropertyVetoException ex) {
      Logger.getLogger(CombatDialog.class.getName()).log(Level.SEVERE, null, ex);
View Full Code Here

Examples of mage.client.unusedFiles.CombatGroup.revalidate()

            CombatGroup combatGroup = new CombatGroup();
            combatGroup.init(gameId, bigCard);
            combatGroup.update(group);
            combatGroup.setVisible(true);
            combatArea.add(combatGroup);
            combatGroup.revalidate();
        }
        try {
            this.setSelected(true);
        } catch (PropertyVetoException ex) {
            Logger.getLogger(CombatDialog.class.getName()).log(Level.SEVERE, null, ex);
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.