Package java.awt

Examples of java.awt.Frame$AccessibleAWTFrame


  /**
   * 生成图形界面
   */
  public Main()
  {
    frame = new Frame("饭否消息导出工具");
    frame.setResizable(false);
    frame.addWindowListener(new WindowAdapter() {
      @Override
      public void windowClosing(WindowEvent arg0)
      {
View Full Code Here


*/
public boolean
init(Server server, String prefix) {
    this.prefix = prefix;
    isMine = new MatchString(prefix);
    f = new Frame("Message from Client");
    screen = f.getToolkit().getScreenSize();
    init();
    f.add("Center", this);
    f.pack();
    return true;
View Full Code Here

    {
        if (helpWindow == null)
        {
            helpWindow =
                new JDialog(
              new Frame(),// independent frame to allow it to be overlaid by the main frame
                    JMeterUtils.getResString("help"),//$NON-NLS-1$
                    false);
            helpWindow.getContentPane().setLayout(new GridLayout(1, 1));
            ComponentUtil.centerComponentInWindow(helpWindow, 60);
        }
View Full Code Here

    public ThinTest() throws Exception {
        add(parse(new ByteArrayInputStream(MARKUP.getBytes())));
    }

    public static void main(String[] args) throws Exception {
        Frame f = new Frame();
        f.setSize(200, 200);
        f.setLocation(200, 200);
        ThinTest test = new ThinTest();
        f.add(test, BorderLayout.CENTER);
        f.setVisible(true);
        test.requestFocus();
    }
View Full Code Here

            }
        }

        if (source == null) {
            JNodeToolkit tk = (JNodeToolkit) Toolkit.getDefaultToolkit();
            Frame top = tk.getTop();
            if (top == null) {
                //awt is not yet initialized
                //drop this event
                return;
            } else {
View Full Code Here

     * @param x the x coordiante
     * @param y the y coordinate
     * @return the component
     */
    public Component getTopComponentAt(int x, int y) {
        final Frame f = getTop();
        if (f == null) {
            return null;
        }
        Component c = f.findComponentAt(x, y);
        if (c == null) {
            c = f;
        }
        return c;
    }
View Full Code Here

      return cons.newInstance();
    } catch (NoSuchMethodException e) {
      try {
        Constructor cons = beanClass.getConstructor(new Class[] { Frame.class });
        cons.setAccessible(true);
        return cons.newInstance(new Frame());
      } catch (NoSuchMethodException ex) {
        try {
          Constructor cons = beanClass.getConstructor(new Class[] { String.class });
          cons.setAccessible(true);
          return cons.newInstance(new String());
View Full Code Here

  public static void save(Window w) {
    String header = w.getClass().getSimpleName();
    Rectangle bounds = w.getBounds();
    if(w instanceof Frame) {
      Frame f = (Frame)w;
      if(f.getExtendedState() == Frame.MAXIMIZED_BOTH)
        return;

      if(f.isResizable()) {
        Settings.getSection(header).write("height", bounds.height);
        Settings.getSection(header).write("width", bounds.width);
      }
    }
    Settings.getSection(header).write("x", bounds.x);
View Full Code Here

        assertTrue(SwingUtilities.isRightMouseButton(button3Clicked));
        assertFalse(SwingUtilities.isRightMouseButton(button3DraggedEvent));
    }

    public void testGetAncestorOfClass() {
        final Frame f = new Frame();
        final JDialog dialog = new JDialog(f);
        assertSame(f, SwingUtilities.getAncestorOfClass(Frame.class, dialog));
    }
View Full Code Here

    private final Font titleFont;
    private final int left;
    private final Font logoFont;

    public SplashWindow(final TemplateImageLoader loader) {
        super(new Frame());
        parent = (Frame) getParent();
        final String imageName = AboutIsis.getImageName();
        final TemplateImage templateImage = loader.getTemplateImage(imageName);
        if (templateImage == null) {
            throw new IsisException("Failed to find splash image " + imageName);
View Full Code Here

TOP

Related Classes of java.awt.Frame$AccessibleAWTFrame

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.