Package java.awt

Examples of java.awt.Frame$AllFrames


    public ActionListener getActionListener() {
        return new ActionListener() {
            public void actionPerformed(ActionEvent evt) {

                MapHandler mh = (MapHandler) getBeanContext();
                Frame frame = null;
                if (mh != null) {
                    frame = (Frame) mh.get(java.awt.Frame.class);
                }

                // -1 will get size from pack(), and get location (initially) to
View Full Code Here


                    x = (int) loc.getX();
                    y = (int) loc.getY();
                }

                MapHandler mh = (MapHandler) getBeanContext();
                Frame frame = null;
                if (mh != null) {
                    frame = (Frame) mh.get(java.awt.Frame.class);
                }

                ws.displayInWindow(frame, x, y, w, h);
View Full Code Here

                        "combinedCoordDialog.title",
                        "Go To Coordinates..."));
            }

            MapHandler mh = getMapHandler();
            Frame frame = null;
            if (mh != null) {
                frame = (Frame) mh.get(java.awt.Frame.class);
            }

            ws.displayInWindow(frame);
View Full Code Here

   * the base 14 fonts to our own FontMetrics implementation?
   * @param font The java.awt.Font to return the metrics for
   * @return FontMetrics for a font
   */
  public FontMetrics getFontMetrics(Font font) {
    Frame dummy = new Frame();
    dummy.addNotify();
    Image image = dummy.createImage(100, 100);
    if (image == null) {
      System.err.println("getFontMetrics: image is null");
    }
    Graphics graphics = image.getGraphics();
    return graphics.getFontMetrics(font);
View Full Code Here

   */
  public PaintComponentFunction()
  {
    if (PaintComponentFunction.isHeadless() == false)
    {
      peerSupply = new Frame();
      peerSupply.setLayout(new BorderLayout());
    }
    this.scale = 1;
  }
View Full Code Here

      throws IOException, ClassNotFoundException
  {
    in.defaultReadObject();
    if (PaintComponentFunction.isHeadless() == false)
    {
      peerSupply = new Frame();
      peerSupply.setLayout(new BorderLayout());
    }
  }
View Full Code Here

    /**
     * Try to display a URL in a web browser.
     */
    public void displayURL(String url) {
        MapHandler mh = (MapHandler) getBeanContext();
        Frame frame = null;
        if (mh != null) {
            frame = (Frame) mh.get(java.awt.Frame.class);
        }

        try {
View Full Code Here

    /**
     * Display a html String in a window.
     */
    public void displayBrowserContent(String content) {
        MapHandler mh = (MapHandler) getBeanContext();
        Frame frame = null;
        if (mh != null) {
            frame = (Frame) mh.get(java.awt.Frame.class);
        }

        com.bbn.openmap.gui.MiniBrowser.display(frame, "text/html", content);
View Full Code Here

     * @param splashImage The image to be displayed.
     * @return Returns the frame that owns the SplashWindow.
     */

    public static Frame splash() {
        Frame f = new Frame();
        SplashScreen w = new SplashScreen(f);

        // Show the window.
        w.setVisible(true);
        w.toFront();
View Full Code Here

* See notes for PBufferCanvasPeer
*/
public class PBufferCanvas3D extends Canvas3D {

    public static void initContext(Object owner) {
        Frame f = null;
        if (owner==null) {
            f = new Frame();
            f.setBounds(-100,-200,40,30);
            f.show();
            owner = f;
        }
        PBufferCanvasPeer.initContext(owner);
        if (f!=null) f.hide();
        else if (owner instanceof Component) {((Component)owner).repaint();};
    }
View Full Code Here

TOP

Related Classes of java.awt.Frame$AllFrames

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.