@Override public void run(){
  amIActive=true;
  panel=new CoordinateTransformDialog(myHost);
  if (myHost instanceof JFrame) {
    JDialog dialog=new JDialog((JFrame)myHost,"Coordinate System Transformation",false);
    Container contentPane=dialog.getContentPane();
    contentPane.add(panel,BorderLayout.CENTER);
    dialog.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    dialog.pack();
    dialog.setLocationRelativeTo(null);
    dialog.setVisible(true);
  }
 else {
    JFrame frame=new JFrame("Coordinate System Transformation");
    Container contentPane=frame.getContentPane();
    contentPane.add(panel,BorderLayout.CENTER);
    frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
  }
}

@ Override public void run ( ) { amIActive = true ; panel = new CoordinateTransformDialog ( myHost ) ; if ( myHost instanceof JFrame ) { JDialog dialog = new JDialog ( ( JFrame ) myHost , "Coordinate System Transformation" , false ) ; Container contentPane = dialog . getContentPane ( ) ; contentPane . add ( panel , BorderLayout . CENTER ) ; dialog . setDefaultCloseOperation ( JFrame . DISPOSE_ON_CLOSE ) ; dialog . pack ( ) ; dialog . setLocationRelativeTo ( null ) ; dialog . setVisible ( true ) ; } else { JFrame frame = new JFrame ( "Coordinate System Transformation" ) ; Container contentPane = frame . getContentPane ( ) ; contentPane . add ( panel , BorderLayout . CENTER ) ; frame . setDefaultCloseOperation ( JFrame . DISPOSE_ON_CLOSE ) ; frame . pack ( ) ; frame . setLocationRelativeTo ( null ) ; frame . setVisible ( true ) ; } }
used to execute this plugin tool .
