Package graphmatcher.gui

Examples of graphmatcher.gui.GraphPanel


    GraphListPanel listPanel = new GraphListPanel("");
    listPanel.setInitialData(graphs);
    frame.add(listPanel, BorderLayout.WEST);

    final GraphPanel graphPanel = new GraphPanel(Color.BLACK, Color.GREEN);
    frame.add(graphPanel, BorderLayout.CENTER);

    listPanel.addListSelectionListener(new ListSelectionListener() {
      public void valueChanged(ListSelectionEvent e) {
        JList list = (JList) e.getSource();
        Graph graph = (Graph) list.getSelectedValue();
        graphPanel.setGraph(graph);
      }
    });

    frame.pack();
    frame.setVisible(true);
View Full Code Here

TOP

Related Classes of graphmatcher.gui.GraphPanel

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.