/** Executed when the button is pushed. Sets the legend visible or not.*/
public void execute(){
if (myDialog == null) {
myDialog = new JDialog(getGISEditor());
ImageChopperApplication tempApplication = new ImageChopperApplication();
tempApplication.setFrame(myDialog);
myDialog.setContentPane(tempApplication);
myDialog.pack();
myDialog.setTitle("Image Chopper");
}
myDialog.show();