Package edu.stanford.genetics.treeview.test

Source Code of edu.stanford.genetics.treeview.test.ButtonTest

package edu.stanford.genetics.treeview.test;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JDialog;

import edu.stanford.genetics.treeview.app.LinkedViewApp;
public class ButtonTest {
  public static final void main(final String[] argv) {
    JDialog jd = new JDialog();
    JButton but = new JButton("Push Me");
    but.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        LinkedViewApp.main(argv);
      }
    });
    jd.add(but);
    jd.setVisible(true);
  }
}
TOP

Related Classes of edu.stanford.genetics.treeview.test.ButtonTest

TOP
Copyright © 2018 www.massapi.com. 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.