Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 405 → Rev 406

/sun/xmleditor/trunk/src/control/OtherGUIActions.java
1,36 → 1,30
/*
* Created on 02.07.2003
*
*/
package src.control;
 
/**
* @author Holgerchen
/** TODO JavaDoc-comments
*
* @author Holgerchen
*
* This class handels Gui operations that can't be placed in another class
* This class handels Gui operations that can't be placed in another class
*/
 
import java.awt.event.*;
import javax.swing.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
 
import javax.swing.JFrame;
import javax.swing.JOptionPane;
 
public class OtherGUIActions implements ActionListener
{
 
/**
* @author hjokusch
*an empty constructor
*
*/
public OtherGUIActions()
{
/** Empty constructor
*/
public OtherGUIActions() {
}
 
/**
* Method needed by ActionListener
*
*/
 
/**
* Method needed by ActionListener.
*
*/
public void actionPerformed(ActionEvent e) {
if (e.getActionCommand() == "Exit") {
37,17 → 31,16
if (quitConfirmed() == true) {
System.exit(0);
}
}
}
}
/**
* private methode to open the "Quit Confirmation" dialog
/** quitConfirmed asks the user if he/she wants to leave to program.
*
* @return nothing
* @return A boolean value indicating if the exit procedure has been confirmed.
* <code>true<code> if user confirms, <code>false<code> otherwise.
*
*/
// TODO comments
private boolean quitConfirmed()
{
JFrame frame = new JFrame();
75,7 → 68,4
return false;
}
}
}
 
 
 
}