Examples of repaint()


Examples of javax.swing.JProgressBar.repaint()

                        jpb.setMaximum(total);
                        jpb.setValue(value);
                        if (ThreadWorks.Swing.isEventDispatchThread()) {
                                jpb.paintImmediately(jpb.getBounds());
                        } else {
                                jpb.repaint();
                        }
                }
                return id;
        }
View Full Code Here

Examples of javax.swing.JRootPane.repaint()

            }
            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()) {
          _log.debug("\tSetting owning container's size to ("
View Full Code Here

Examples of javax.swing.JScrollBar.repaint()

          if (SubstanceScrollBarUI.this.scrollbar == ver) {
            other = hor;
          }

          if ((other != null) && other.isVisible())
            other.repaint();
          SubstanceScrollBarUI.this.scrollbar.repaint();
        }
      }
    };
    this.scrollbar.addAdjustmentListener(this.substanceAdjustmentListener);
View Full Code Here

Examples of javax.swing.JScrollPane.repaint()

      private void updateChars(DocumentEvent e) {
        ((TitledBorder) sdsp.getBorder()).setTitle(i18n
            .getString("Admin.message")
            + "\t ("
            + sds.getText().length() + "/" + maxChars + ")");
        sdsp.repaint();
        send.setEnabled(!sds.getText().isEmpty());
        notification.setForeground(Color.WHITE);
        notification.setText("PLACEHOLDER");
      }
    });
View Full Code Here

Examples of javax.swing.JSplitPane.repaint()

                    if (headerContainer instanceof JSplitPane) {
                        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.repaint()

  class ChangeHandler implements ChangeListener {   
    public void stateChanged(ChangeEvent e) {
      JTabbedPane tabPane = (JTabbedPane)e.getSource();
      tabPane.revalidate();
      tabPane.repaint();
    }
  }
 
  class PropertyChangeHandler implements PropertyChangeListener {
    public void propertyChange(PropertyChangeEvent e) {
View Full Code Here

Examples of javax.swing.JTable.repaint()

  @Override
  public void mouseMoved(MouseEvent e) {
    JTable aTable = (JTable) e.getSource();
    MouseHoverTable.itsRow = aTable.rowAtPoint(e.getPoint());
    MouseHoverTable.itsColumn = aTable.columnAtPoint(e.getPoint());
    aTable.repaint();
  }
}
View Full Code Here

Examples of javax.swing.JTextField.repaint()

        editorTextField.putClientProperty("AuxEditorComponent", Boolean.TRUE);

        editorTextField.addFocusListener(new FocusListener() {
            @Override
            public void focusGained(final FocusEvent e) {
                editorTextField.repaint();
            }

            @Override
            public void focusLost(final FocusEvent e) {
                editorTextField.repaint();
View Full Code Here

Examples of javax.swing.JToolBar.repaint()

    for (String p : INSTANCE.generatedToolBars.keySet().toArray(
            new String[INSTANCE.generatedToolBars.keySet().size()])) {
      try {
        JToolBar bar = createJToolBarFor(p, INSTANCE.generatedToolBars.get(p));
        bar.revalidate();
        bar.repaint();
      } catch (MalformedURLException | UnsupportedEncodingException e) {
        SimSystem.report(e);
      }
    }
  }
View Full Code Here

Examples of javax.swing.JToolTip.repaint()

    JPanel panel = ( JPanel ) toolTip.getParent();
    if ( !opaqueTips.contains( toolTip ) ) {
      toolTip.setOpaque( false );
      panel.setOpaque( false );
      panel.repaint();
      toolTip.repaint();
      opaqueTips.add( toolTip );
    }
    String imagePath = ( String ) UIManager.get( "ToolTip.background" );
    Insets sInsets = new Insets( 7, 7, 7, 7 );
    Insets dInsets = new Insets( 7, 7, 7, 7 );
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.