diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | javax/swing/border/CompoundBorder.java | 7 |
2 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2006-12-06 Tania Bento <tbento@redhat.com> + + * javax/swing/border/CompoundBorder.java: + (isBorderOpaque): If inside and outside border both have a null + value, return true. + 2006-12-06 Chris Burdess <dog@gnu.org> Fixes PR 29272. diff --git a/javax/swing/border/CompoundBorder.java b/javax/swing/border/CompoundBorder.java index 2ee639cf9..63a9a553d 100644 --- a/javax/swing/border/CompoundBorder.java +++ b/javax/swing/border/CompoundBorder.java @@ -115,6 +115,13 @@ public class CompoundBorder extends AbstractBorder */ public boolean isBorderOpaque() { + // Although the API specification states that this method + // returns true if both the inside and outside borders are non-null + // and opaque, and false otherwise, a mauve test shows that if both + // the inside or outside borders are null, then true is returned. + if ((insideBorder == null) && (outsideBorder == null)) + return true; + // While it would be safe to assume true for the opacity of // a null border, this behavior would not be according to // the API specification. Also, it is pathological to have |