import java.awt.*;
import javax.swing.*;
import java.awt.event.*;/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2004</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */public class Dialog1 extends JDialog {
  JPanel panel1 = new JPanel();
  BorderLayout borderLayout1 = new BorderLayout();
  JPopupMenu jPopupMenu1 = new JPopupMenu();
  JMenu jMenu1 = new JMenu();
  JMenuItem jMenuItem1 = new JMenuItem();
  JMenuItem jMenuItem2 = new JMenuItem();public static void main(String[] args){
Dialog1 a=new Dialog1(null,"titile",true);
}  public Dialog1(Frame frame, String title, boolean modal) {
    super(frame, title, modal);
    try {
      jbInit();
      pack();
show();
    }
    catch(Exception ex) {
      ex.printStackTrace();
    }
try {    this.toFront();}
catch (Exception ex1) {
}
  }  public Dialog1() {
    this(null, "", false);
  }
  private void jbInit() throws Exception {
    panel1.setLayout(borderLayout1);
    jMenu1.setText("a");
    jMenuItem1.setText("g");
    jMenuItem1.addActionListener(new Dialog1_jMenuItem1_actionAdapter(this));
    jMenuItem2.setText("d");
    getContentPane().add(panel1);
    jPopupMenu1.add(jMenu1);
    jPopupMenu1.add(jMenuItem2);
    jMenu1.add(jMenuItem1);
  }  void jMenuItem1_actionPerformed(ActionEvent e) {
System.out.println("df");
  }
}class Dialog1_jMenuItem1_actionAdapter implements java.awt.event.ActionListener {
  Dialog1 adaptee;  Dialog1_jMenuItem1_actionAdapter(Dialog1 adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.jMenuItem1_actionPerformed(e);
  }
}