Package javax.swing

Examples of javax.swing.JComponent.invalidate()


            }

            c.setComponentPopupMenu(null);
            c.removeAll();
            c.removeNotify();
            c.invalidate();
        }
    }   
   
    public static int getPreferredFieldHeight() {
        return DcSettings.getInt(DcRepository.Settings.stInputFieldHeight);
View Full Code Here


  }

  void repaintComponents() {
    for(Iterator it = components.iterator(); it.hasNext(); ) {
      JComponent comp = (JComponent)it.next();
      comp.invalidate();
      comp.repaint();
    }
  }

View Full Code Here

                                                       "Error parsing Constraint!",
                                                       JOptionPane.ERROR_MESSAGE );
                        return;
                    }

                    c.invalidate();
                    c.getParent().validate();
                }
            }
        }
    }
View Full Code Here

                                                       "Error parsing Constraint!",
                                                       JOptionPane.ERROR_MESSAGE );
                        return;
                    }

                    c.invalidate();
                    c.getParent().validate();
                }
            }
        }
    }
View Full Code Here

                                                       "Error parsing Constraint!",
                                                       JOptionPane.ERROR_MESSAGE );
                        return;
                    }

                    c.invalidate();
                    c.getParent().validate();
                }
            }
        }
    }
View Full Code Here

  public static class ComponentCreator {
    public static final JComponent newComponent(
        Class<? extends JComponent> klass) {
      try {
        JComponent ret = (JComponent) klass.newInstance();
        ret.invalidate();
        ret.setVisible(true);
        return ret;
      } catch (Exception exc) {
        throw new RuntimeException(StrUtils.toString(exc));
      }
View Full Code Here

                try {
                    UIManager.setLookAndFeel(lookAndFeel);
                    final JComponent componentToSwitch = guiData.getMainFrameRootPane();
                    SwingUtilities.updateComponentTreeUI(componentToSwitch);
                    componentToSwitch.invalidate();
                    componentToSwitch.validate();
                    componentToSwitch.repaint();
                } catch (final ClassNotFoundException ex) {
                    throw new RuntimeException("cannot set look and feel: " + lookAndFeel, ex);
                } catch (final InstantiationException ex) {
View Full Code Here

                                                       "Error parsing Constraint!",
                                                       JOptionPane.ERROR_MESSAGE );
                        return;
                    }

                    c.invalidate();
                    c.getParent().validate();
                }
            }
        }
    }
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.