1 23 24 package org.infoglue.cmsinstaller; 25 26 import java.awt.event.*; 27 import javax.swing.*; 28 29 public class AlertActionListener implements ActionListener 30 { 31 private JPanel panel = null; 32 private String text = null; 33 private String title = null; 34 private int mode; 35 36 public AlertActionListener(JPanel panel, String text, String title, int mode) 37 { 38 this.panel = panel; 39 this.text = text; 40 this.title = title; 41 this.mode = mode; 42 } 43 44 public void actionPerformed(ActionEvent e) 46 { 47 JOptionPane.showMessageDialog(this.panel, this.text, this.title, this.mode); 48 } 49 50 } | Popular Tags |