n class="lineno" id="35"> 35 public static var NO_STR:String = "No";
36 public static var CLOSE_STR:String = "Close";
37
38
39 public static var OK:Number = 1;
40 public static var CANCEL:Number = 2;
41 public static var YES:Number = 4;
42 public static var NO:Number = 8;
43 public static var CLOSE:Number = 16;
44
45 private var okButton:JButton;
46 private var cancelButton:JButton;
47 private var yesButton:JButton;
48 private var noButton:JButton;
49 private var closeButton:JButton;
50
51 private var centerPane:JPanel;
52 private var msgLabel:JLabel;
53 private var inputText:JTextField;
54 private var buttonPane:JPanel;
55 private var frame:JFrame;
56
57 public function JOptionPane() {
58 super(new BorderLayout());
59 centerPane = SoftBox.createVerticalBox(6);
60 msgLabel = new JLabel();
61 centerPane.append(ASWingUtils.createPaneToHold(msgLabel, new FlowLayout(FlowLayout.CENTER, 5, 5)));
62 inputText = new JTextField();
63 var inputContainer:JPanel = new JPanel(new BorderLayout());
64 inputContainer.setBorder(new