Package diva.gui

Examples of diva.gui.BasicFrame


     * Construct a new instance of graph demo, which does the work of
     * setting up the graphs and displaying itself.
     * @param argv Command line arguments, currently ignored.
     */
    public static void main(String[] argv) {
        new BubbleGraphDemo(new BasicFrame("Bubble Graph Demo"));
    }
View Full Code Here


public class SimpleTutorial {
    /**
     * Pop up an empty graph editing window.
     */
    public static void main(String[] argv) {
        final AppContext context = new BasicFrame("Simple Tutorial");
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                new SimpleTutorial(context);
                context.setVisible(true);
            }
        });
    }
View Full Code Here

    /**
     * Pop up an empty graph editing window.
     */
    public static void main(String[] argv) {
        final AppContext context = new BasicFrame("Editor Tutorial");
        context.setSize(800, 600);

        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                new EditorTutorial(context);
                context.setVisible(true);
            }
        });
    }
View Full Code Here

* @version $Id: PrepopulatedTutorial.java,v 1.19 2005/07/08 19:55:08 cxh Exp $
* @Pt.AcceptedRating Red
*/
public class PrepopulatedTutorial {
    public static void main(String[] argv) {
        final AppContext context = new BasicFrame("Prepopulated Tutorial");
        context.setSize(300, 600);

        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                new PrepopulatedTutorial(context);
                context.setVisible(true);
            }
        });
    }
View Full Code Here

* @version $Id: NestedTutorial.java,v 1.18 2005/07/08 19:55:08 cxh Exp $
* @Pt.AcceptedRating Red
*/
public class NestedTutorial {
    public static void main(String[] argv) {
        final AppContext context = new BasicFrame("Nested Tutorial");
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                new NestedTutorial(context);
                context.setVisible(true);
            }
        });
    }
View Full Code Here

    /**
     * Instantiate a new tutorial window and
     * display it.
     */
    public static void main(String[] argv) {
        final AppContext context = new BasicFrame("Node Renderer Tutorial");
        context.setSize(800, 600);

        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                new NodeRendererTutorial(context);
                context.setVisible(true);
            }
        });
    }
View Full Code Here

        // Create a controller to do the work.
        controller = new BasicController(graphicsPane);
        defaultInteractor = controller.getSelectionInteractor();

        // Create the window
        BasicFrame frame = new BasicFrame("Simple canvas tutorial", canvas);
        frame.setSize(600, 400);
        frame.setVisible(true);
    }
View Full Code Here

    public VectorFigureTutorial() {
        canvas = new JCanvas();
        graphicsPane = (GraphicsPane) canvas.getCanvasPane();
        createFigures();

        new BasicFrame("Vector figure tutorial", canvas);
    }
View Full Code Here

    public FigureTutorial() {
        canvas = new JCanvas();
        graphicsPane = (GraphicsPane) canvas.getCanvasPane();
        createFigures();

        new BasicFrame("Figure tutorial", canvas);
    }
View Full Code Here

                        sp.addEntry(null, "Foo", new JLabel("foo's component"));
                        sp.addEntry(null, "Bar", new JLabel("bar's component"));
                        sp.addEntry(null, "Baz", new JLabel("baz's component"));
                        sp.addEntry(null, "Moo", new JLabel("moo's component"));

                        JFrame f = new BasicFrame("Entry test");
                        f.getContentPane().add("Center", sp);

                        f.setSize(600, 400);
                        f.setVisible(true);
                    } catch (Exception ex) {
                        System.err.println(ex.toString());
                        ex.printStackTrace();
                    }
                }
View Full Code Here

TOP

Related Classes of diva.gui.BasicFrame

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.