Author: techfox9
Simple popup display widget ..
Monday, August 11th, 2008 @ 3:21 pm
import javax.swing.JOptionPane; import javax.swing.JFrame; public class JPopup extends JFrame { public JPopup(String msg) { JOptionPane.showMessageDialog(this, msg); System.exit(0); } public static void main(String[] args) { if (args.length == 0) { System.out.println("usage: JPopup message"); System.exit(1); } new JPopup(args[0]); } }