summaryrefslogtreecommitdiff
path: root/javax/swing/plaf/basic/BasicOptionPaneUI.java
diff options
context:
space:
mode:
authorRoman Kennke <roman@kennke.org>2005-05-11 11:59:38 +0000
committerRoman Kennke <roman@kennke.org>2005-05-11 11:59:38 +0000
commit5a1fc6a5589bc473d7a0a9faf387bb4b49d4d12a (patch)
tree412a52f5d6d65de1ddf31fc1e6a1d3859f5c14a3 /javax/swing/plaf/basic/BasicOptionPaneUI.java
parent970ba429c9e92740a34c48c9c267060cf56e5ccd (diff)
downloadclasspath-5a1fc6a5589bc473d7a0a9faf387bb4b49d4d12a.tar.gz
2005-05-11 Roman Kennke <roman@kennke.org>
* javax/swing/plaf/basic/BasicOptionPaneUI.java (createSeparator): Implemented. Returns a vertical separator with a height of 17 pixels as recommended in the book Java Look & Feel Design Guidelines. (installComponents): Added an empty border around the dialog.
Diffstat (limited to 'javax/swing/plaf/basic/BasicOptionPaneUI.java')
-rw-r--r--javax/swing/plaf/basic/BasicOptionPaneUI.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/javax/swing/plaf/basic/BasicOptionPaneUI.java b/javax/swing/plaf/basic/BasicOptionPaneUI.java
index f86dd75e6..801fe4d84 100644
--- a/javax/swing/plaf/basic/BasicOptionPaneUI.java
+++ b/javax/swing/plaf/basic/BasicOptionPaneUI.java
@@ -56,6 +56,7 @@ import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.beans.PropertyVetoException;
+import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.Icon;
@@ -906,7 +907,7 @@ public class BasicOptionPaneUI extends OptionPaneUI
*/
protected Container createSeparator()
{
- return null;
+ return (Container) Box.createVerticalStrut(17);
}
/**
@@ -1123,6 +1124,7 @@ public class BasicOptionPaneUI extends OptionPaneUI
optionPane.add(button);
}
+ optionPane.setBorder(BorderFactory.createEmptyBorder(12, 12, 11, 11));
optionPane.invalidate();
}