Package javax.swing

Examples of javax.swing.JApplet$AccessibleJApplet


        //
        // All this drives the choice of JApplet for the top level Swing component. It is the
        // only single component that satisfies all the above. This does not imply that
        // we have a true applet; in particular, there is no notion of an applet lifecycle in this
        // context.
        JApplet applet = new ToplevelPanel();
        
        if (Platform.isWin32()) {
            // Avoid stack overflows by ensuring correct focus traversal policy
            // (see comments in scheduleComponentCreation() for details)
            applet.setFocusTraversalPolicy(new LayoutFocusTraversalPolicy());
        }

        frame.add(applet);
        return applet;
    }
View Full Code Here


    List<String> kmers = AssemblerDNA.idealShotgun(sequence, k);

    DeBruijnGraph graph = AssemblerDNA.getDeBruijnGraph(kmers, true);
    // graph = AssemblerDNA.simplify(graph);

    JApplet grApphlet = new GrApphlet();
    ((GrApphlet) grApphlet).setGraph(graph);

    JFrame mainFrame = new JFrame("12l-mbi");
    grApphlet.init();
    mainFrame.add(grApphlet, BorderLayout.CENTER);
    mainFrame.pack();
    mainFrame.setVisible(true);
    mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
View Full Code Here

        layout.spacing = 0;
        setLayout(layout);

        if (CometeWidgetFactory.getCurrentPackage() == CometePackage.SWING) {
            frame = SWT_AWT.new_Frame(this);
            applet = new JApplet();
            frame.add(applet);
        }

        component = initComponent(childStyle);
View Full Code Here

     * root JFCApplet in the overriding method {@link AntApplet#getApplet()}
     * (set by default on loading by {@link AntApplet#setApplet(JApple)}
     */
    public static void _restart(AntApplet a) {
        restartingEnv = true;
        JApplet aA = a.getApplet();
        if (aA != null && !(aA instanceof JFCApplet ? ((JFCApplet) aA).noStub : false)) {
            aA.getAppletContext().showDocument(aA.getDocumentBase());
        } else {
            __restartIfNoContext(a);
        }
    }
View Full Code Here

    // only single component that satisfies all the above. This does not
    // imply that
    // we have a true applet; in particular, there is no notion of an applet
    // lifecycle in this
    // context.
    JApplet applet = new JApplet();

    // In JRE 1.4, the JApplet makes itself a focus cycle root. This
    // interferes with the focus handling installed on the parent frame, so
    // change it back to a non-root here.
    // TODO: consider moving the focus policy from the Frame down to the
    // JApplet
    applet.setFocusCycleRoot(false);

    frame.add(applet);

    return applet;
  }
View Full Code Here

    addWindowListener(new MenuScreenDisposeListener());
  }

  @Override
  protected Component createSpecificComponents() {
    JApplet verticalButtons = initButtons();
    return verticalButtons;
  }
View Full Code Here

TOP

Related Classes of javax.swing.JApplet$AccessibleJApplet

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.