Examples of repaint()


Examples of javax.swing.JFormattedTextField.repaint()

                settings.put(s, Integer.parseInt(str));
              } catch (NumberFormatException e1) {
                SwingUtilities.invokeLater(new Runnable() {
                  public void run() {
                    te.setText(settings.get(s).toString());
                    te.repaint();
                  }
                })
              }
          }
          public void insertUpdate(DocumentEvent e) {
View Full Code Here

Examples of javax.swing.JFrame.repaint()

        }
        frame.getRootPane().revalidate();
        frame.invalidate();
        frame.validate();
        frame.repaint();

    }

    protected JMenu createLookAndFeelMenu() {
        JMenu menu = new JMenu();
View Full Code Here

Examples of javax.swing.JInternalFrame.repaint()

                if (frame != null) {
                    Dimension size = frame.getSize();
                    size.width += 1;
                    frame.setSize(size);
                    frame.revalidate();
                    frame.repaint();
                }
            }
        });
    }
View Full Code Here

Examples of javax.swing.JLabel.repaint()

      Icon icon = Util.getBundleIcon(b);

      c.setIcon(icon);

      c.invalidate();
      c.repaint();
      invalidate();
      repaint();
    }
  }
View Full Code Here

Examples of javax.swing.JLayeredPane.repaint()

            }
            if (newSize.height != layeredPane.getHeight()
                    || newSize.width != layeredPane.getWidth()) {
                layeredPane.setSize(newSize);
                layeredPane.revalidate();
                layeredPane.repaint();
            }
        }
        // size the glass pane
        if (glassPane != null) {
            if (_log.isDebugEnabled()) {
View Full Code Here

Examples of javax.swing.JList.repaint()

                        if (!(o instanceof DataSource)) {
                            return;
                        }
                        VariableConflict vc = (VariableConflict) list.getSelectedValue();
                        ((DataSource) o).getInformation().alias = vc.var;
                        list.repaint();
                        if (clm.resolved()) {
                            bok.setEnabled(true);
                        }
                        TreeNode tn = (TreeNode) (st.getSelectionPath().getLastPathComponent());
                        ((DefaultTreeModel) (st.getModel())).nodeChanged(tn);
View Full Code Here

Examples of javax.swing.JMenuBar.repaint()

    JMenuAdapter jmenuAdapter=(JMenuAdapter)WidgetAdapter.getWidgetAdapter(child);
    jmenuAdapter.hidePopup();
    JMenuBar origin = (JMenuBar) getWidget();   
    origin.remove(child);
    origin.doLayout();
    origin.repaint();
    Dimension size=child.getPreferredSize();   
    child.setSize(size);
    child.doLayout();
    return true;
  }
View Full Code Here

Examples of javax.swing.JMenuItem.repaint()

            item.setText(scmi.getLabel());
            item.setEnabled(scmi.isEnabled());
            if (scmi.getImage() != null) {
                item.setIcon(new ImageIcon(scmi.getImage()));
            }
            item.repaint();
            contextMenu.pack();
            contextMenu.repaint();
        }
    }
View Full Code Here

Examples of javax.swing.JPanel.repaint()

    } else if (contentPane.isAncestorOf(mStatusBar)) {
      jcontentPane.remove(mStatusBar);
    }

    contentPane.invalidate();
    contentPane.repaint();
  }

  public ProgressMonitor createProgressMonitor() {
    return mStatusBar.createProgressMonitor();
  }
View Full Code Here

Examples of javax.swing.JPopupMenu.repaint()

    // show the popup where the source component is
    if (e.getSource() instanceof Component) {
      Component comp = (Component) e.getSource();
      popup.show(comp, comp.getX(), comp.getY());
      popup.pack();
      popup.repaint();
    }
  }
      });

    return setButton;
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.