Lines Matching defs:optionPane

91     protected JOptionPane         optionPane;
95 /** JComponent provide for input if optionPane.getWantsInput() returns
138 optionPane = (JOptionPane)c;
140 optionPane.setLayout(createLayoutManager());
152 optionPane.setLayout(null);
156 optionPane = null;
160 LookAndFeel.installColorsAndFont(optionPane, "OptionPane.background",
162 LookAndFeel.installBorder(optionPane, "OptionPane.border");
164 LookAndFeel.installProperty(optionPane, "opaque", Boolean.TRUE);
168 LookAndFeel.uninstallBorder(optionPane);
172 optionPane.add(createMessageArea());
176 optionPane.add(separator);
178 optionPane.add(createButtonArea());
179 optionPane.applyComponentOrientation(optionPane.getComponentOrientation());
186 optionPane.removeAll();
190 return new BoxLayout(optionPane, BoxLayout.Y_AXIS);
195 optionPane.addPropertyChangeListener(propertyChangeListener);
201 optionPane.removePropertyChangeListener(propertyChangeListener);
221 SwingUtilities.replaceUIInputMap(optionPane, JComponent.
224 LazyActionMap.installLazyActionMap(optionPane, BasicOptionPaneUI.class,
229 SwingUtilities.replaceUIInputMap(optionPane, JComponent.
231 SwingUtilities.replaceUIActionMap(optionPane, null);
237 optionPane, this, "OptionPane.windowBindings");
239 return LookAndFeel.makeComponentInputMap(optionPane, bindings);
265 if (c == optionPane) {
290 Border topBorder = (Border)DefaultLookup.get(optionPane, this,
316 cons.anchor = DefaultLookup.getInt(optionPane, this,
439 if (optionPane != null) {
440 if (optionPane.getWantsInput()) {
445 Object message = optionPane.getMessage();
446 Object[] sValues = optionPane.getSelectionValues();
447 Object inputValue = optionPane
510 return optionPane.getMessage();
539 Icon mIcon = (optionPane == null ? null : optionPane.getIcon());
541 if(mIcon == null && optionPane != null)
542 mIcon = getIconForType(optionPane.getMessageType());
568 return (Icon)DefaultLookup.get(optionPane, this, propertyName);
577 return optionPane.getMaxCharactersPerLineCount();
615 Border border = (Border)DefaultLookup.get(optionPane, this,
622 DefaultLookup.getBoolean(optionPane, this,
624 DefaultLookup.getInt(optionPane, this, "OptionPane.buttonPadding",
626 DefaultLookup.getInt(optionPane, this,
628 DefaultLookup.getBoolean(optionPane, this, "OptionPane.isYesLast",
677 optionPane, this, "OptionPane.buttonClickThreshhold",
720 if (DefaultLookup.getBoolean(optionPane, this,
749 if (optionPane != null) {
750 Object[] suppliedOptions = optionPane.getOptions();
754 int type = optionPane.getOptionType();
755 Locale l = optionPane.getLocale();
757 DefaultLookup.getInt(optionPane, this,
764 (Icon)DefaultLookup.get(optionPane, this,
769 (Icon)DefaultLookup.get(optionPane, this,
776 (Icon)DefaultLookup.get(optionPane, this,
781 (Icon)DefaultLookup.get(optionPane, this,
786 (Icon)DefaultLookup.get(optionPane, this,
793 (Icon)DefaultLookup.get(optionPane, this,
798 (Icon)DefaultLookup.get(optionPane, this,
805 (Icon)DefaultLookup.get(optionPane, this,
843 if (optionPane != null) {
844 Object iv = optionPane.getInitialValue();
845 Object[] options = optionPane.getOptions();
866 optionPane.setInputValue(((JTextField)inputComponent).getText());
870 optionPane.setInputValue(((JComboBox)inputComponent)
873 optionPane.setInputValue(((JList)inputComponent)
1123 * optionPane and is one of the ICON_PROPERTY, MESSAGE_PROPERTY,
1137 Color color = (Color)DefaultLookup.get(optionPane, this,
1142 Font messageFont = (Font)DefaultLookup.get(optionPane, this,
1154 Font buttonFont = (Font)DefaultLookup.get(optionPane, this,
1173 if (optionPane != null) {
1174 int optionType = optionPane.getOptionType();
1175 Object[] options = optionPane.getOptions();
1195 optionPane.setValue(Integer.valueOf(2));
1198 optionPane.setValue(Integer.valueOf(buttonIndex));
1201 optionPane.setValue(options[buttonIndex]);
1214 optionPane.setInputValue(((JTextField)e.getSource()).getText());
1238 optionPane.setInputValue(list.getModel().getElementAt(index));
1239 optionPane.setValue(JOptionPane.OK_OPTION);
1247 if(e.getSource() == optionPane) {
1268 BasicLookAndFeel.playSound(optionPane,
1274 BasicLookAndFeel.playSound(optionPane,
1280 BasicLookAndFeel.playSound(optionPane,
1286 BasicLookAndFeel.playSound(optionPane,
1292 BasicLookAndFeel.playSound(optionPane,
1316 optionPane.validate();
1331 // Classes used when optionPane.getWantsInput returns true.
1392 JOptionPane optionPane = (JOptionPane)e.getSource();
1394 optionPane.setValue(Integer.valueOf(JOptionPane.CLOSED_OPTION));