Package java.awt

Examples of java.awt.Toolkit$ComponentInternalsImpl


  private void initComponents() {
    this.setTitle("添加数据源");
    this.setIconImage(IconUtils.createIconImage(APP_ICON_IMAGE));
    this.setContentPane(buildContentPane());

    Toolkit tk = Toolkit.getDefaultToolkit();
    Dimension screenSize = tk.getScreenSize();
    int screenHeight = screenSize.height;
    int screenWidth = screenSize.width;
    //this.setSize(screenWidth / 2, screenHeight / 2);
    this.setSize(400, 200);
    this.setLocation((screenWidth - getWidth()) / 2, (screenHeight - getHeight()) / 2);
View Full Code Here


  private void initComponents() {
    this.setTitle("帮助主题");
    this.setIconImage(IconUtils.createIconImage(APP_ICON_IMAGE));
    this.setContentPane(buildContentPane());

    Toolkit tk = Toolkit.getDefaultToolkit();
    Dimension screenSize = tk.getScreenSize();
    int screenHeight = screenSize.height;
    int screenWidth = screenSize.width;
    this.setSize(screenWidth / 2, screenHeight / 2);
    this.setLocation((screenWidth - getWidth()) / 2, (screenHeight - getHeight()) / 2);
    this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
View Full Code Here

    this.getLayeredPane().add(new BackgroundImageLabel(IMAGE_CLASS_PATH + "loginbg.jpg"), new Integer(Integer.MIN_VALUE));
   
    this.setTitle(title);
    this.setIconImage(IconUtils.createIconImage(APP_ICON_IMAGE));

    Toolkit tk = Toolkit.getDefaultToolkit();
    Dimension screenSize = tk.getScreenSize();
    int screenHeight = screenSize.height;
    int screenWidth = screenSize.width;
    this.setSize(322, 240);
    this.setLocation((screenWidth - getWidth()) / 2, (screenHeight - getHeight() - 30) / 2);
    this.setResizable(false);
View Full Code Here

   */
  private void setFaceFeature() {
    this.setTitle("XGenerator");
    this.setIconImage(IconUtils.createIconImage(APP_ICON_IMAGE));

    Toolkit tk = Toolkit.getDefaultToolkit();
    Dimension screenSize = tk.getScreenSize();
    int screenHeight = screenSize.height;
    int screenWidth = screenSize.width;
//    this.setSize(screenWidth, screenHeight - 30);
//    this.setSize((int)(screenWidth*0.618), (int)(screenHeight*0.618));
    this.setSize(850, 600);
View Full Code Here

   */
  private void setFaceFeature() {
    this.setTitle("XGenerator");
    this.setIconImage(IconUtils.createIconImage(APP_ICON_IMAGE));

    Toolkit tk = Toolkit.getDefaultToolkit();
    Dimension screenSize = tk.getScreenSize();
    int screenHeight = screenSize.height;
    int screenWidth = screenSize.width;
    // this.setSize(screenWidth / 2, screenHeight / 2);
    // this.setSize(900, 600);
    //this.setSize(screenWidth, screenHeight - 30);
View Full Code Here

  private boolean isErrorSelected() {
    return fFailureList.getSelectedIndex() != -1;
  }

  private Image loadFrameIcon() {
    Toolkit toolkit= Toolkit.getDefaultToolkit();
    try {
      java.net.URL url= BaseTestRunner.class.getResource("smalllogo.gif");
      return toolkit.createImage((ImageProducer) url.getContent());
    } catch (Exception ex) {
    }
    return null;
  }
View Full Code Here

        fillPageCombo();
        Rectangle rect;
        if (parent != null) {
            rect = parent.getBounds();
        } else {
            Toolkit tk = Toolkit.getDefaultToolkit();
            Dimension dim = tk.getScreenSize();
            rect = new Rectangle(0,0,dim.width,dim.height);
        }
        setLocation(rect.x+(rect.width-getWidth())/2,
                rect.y+(rect.height-getHeight())/2);
        getRootPane().setDefaultButton(print);
View Full Code Here

        Thread t = new Thread() {
                public void run() {
                    Filter filt = null;

                    Toolkit tk = Toolkit.getDefaultToolkit();
                    Image img = tk.createImage(url);

                    if (img != null) {
                        RenderedImage ri = loadImage(img, dr);
                        if (ri != null) {
                            filt = new RedRable(GraphicsUtil.wrap(ri));
View Full Code Here

            } catch (Exception e) {}
        }
       
        buffer = bos.toByteArray();

        Toolkit tk = Toolkit.getDefaultToolkit();
        final Image img = tk.createImage(buffer);
        if (img == null) {
            return null;
        }

        RenderedImage ri = loadImage(img);
View Full Code Here

   */
  static public boolean isImageLoaded(
    Image image
    )
  {
    Toolkit tk = Toolkit.getDefaultToolkit();
    int status = tk.checkImage(image, -1, -1, null);

    return ((status & (ImageObserver.ALLBITS |ImageObserver.FRAMEBITS)) != 0);
  }
View Full Code Here

TOP

Related Classes of java.awt.Toolkit$ComponentInternalsImpl

Copyright © 2018 www.massapicom. 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.