Examples of validate()


Examples of java.awt.Component.validate()

        }

        component.setBounds
            ((int) area.getX(), (int) area.getY(),
                (int) area.getWidth(), (int) area.getHeight());
        component.validate();
        component.paint(graphics);
      }
      finally
      {
        cleanUp();
View Full Code Here

Examples of java.awt.Container.validate()

      contents.add(toolbar, value);
      boolean vertical = value == BorderLayout.WEST || value == BorderLayout.EAST;
      toolbar.setOrientation(vertical ? Toolbar.VERTICAL : Toolbar.HORIZONTAL);
    }
    contents.validate();
  }
 
  public Project getProject() {
    return proj;
  }
View Full Code Here

Examples of java.awt.Dialog.validate()

                / 2, clientgui.frame.getLocation().y
                + clientgui.frame.getSize().height / 5
                - dialog.getSize().height / 2);
        dialog.setSize(300, 450);

        dialog.validate();
        dialog.setVisible(true);
    }

    /**
     * Pop up the dialog to load a mech
View Full Code Here

Examples of java.awt.Frame.validate()

      if (parent.isDisposed()) return;
      final Rectangle clientArea = parent.getClientArea();
      EventQueue.invokeLater(new Runnable () {
        public void run () {
          frame.setSize (clientArea.width, clientArea.height);
          frame.validate ();
        }
      });
    }
  });
  return frame;
View Full Code Here

Examples of java.awt.Panel.validate()

            final Panel p = new Panel();
            p.setLayout(new BorderLayout());
            embedded_frame.add(p,BorderLayout.CENTER);
            embedded_frame.validate();
            p.add(btn);
            p.validate();
            frame.setVisible(true);
            Robot robot = new Robot();
            tk.realSync();
            Util.clickOnComp(btn, robot);
            tk.realSync();
View Full Code Here

Examples of java.awt.Window.validate()

      {
        final Component component = getComponent();
        if (component instanceof Window)
        {
          final Window w = (Window) component;
          w.validate();
        }
        else if (isOwnPeerConnected())
        {
          final Window w = ComponentDrawable.getWindowAncestor(component);
          if (w != null)
View Full Code Here

Examples of java.awt.image.VolatileImage.validate()

                VolatileImage vImage = (java.awt.image.VolatileImage)offscreen;
                GraphicsConfiguration gc = bufferComponent.
                                            getGraphicsConfiguration();
                for (int i = 0; !paintCompleted &&
                         i < RepaintManager.VOLATILE_LOOP_MAX; i++) {
                    if (vImage.validate(gc) ==
                                   VolatileImage.IMAGE_INCOMPATIBLE) {
                        repaintManager.resetVolatileDoubleBuffer(gc);
                        offscreen = repaintManager.getVolatileOffscreenBuffer(
                            bufferComponent,w, h);
                        vImage = (java.awt.image.VolatileImage)offscreen;
View Full Code Here

Examples of java.security.cert.CertPathValidator.validate()

                CertificateFactory certFact = CertificateFactory.getInstance("X.509");
                CertPath path = certFact.generateCertPath(Arrays.asList(chain));
                PKIXParameters params = new PKIXParameters(trustcacerts);
                params.setRevocationEnabled(false);
                CertPathValidator certPathValidator = CertPathValidator.getInstance(CertPathValidator.getDefaultType());
                CertPathValidatorResult result = certPathValidator.validate(path, params);
                PKIXCertPathValidatorResult pkixResult = (PKIXCertPathValidatorResult) result;
                TrustAnchor ta = pkixResult.getTrustAnchor();
                X509Certificate cert = ta.getTrustedCert();
                return;
            } catch (Exception e) {
View Full Code Here

Examples of javax.faces.component.UISelectMany.validate()

            Boolean.class)));
        root.getChildren().add(booleanv);
        booleanv.getChildren().add(newUISelectItem(Boolean.TRUE));
        booleanv.getChildren().add(newUISelectItem(Boolean.FALSE));
        booleanv.decode(getFacesContext());
        booleanv.validate(getFacesContext());
        booleanv.updateModel(getFacesContext());
        assertNotNull(bean.getBooleans());
        assertTrue(bean.getBooleans()[0] == false);
        assertTrue(bean.getBooleans()[1] == true);
        assertTrue(bean.getBooleans()[2] == false);
View Full Code Here

Examples of javax.faces.component.html.HtmlInputText.validate()

       
        //set the value
        component1.setSubmittedValue("blue");
       
        // invoke component validation
        component1.validate(facesContext);
           
        // check for a error message
        checkMessages(component1);
      
    }
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.