import javax.swing.JDialog;

public class Test {
    public int foo() {
        return JDialog.DISPOSE_ON_CLOSE;
    }
}