ScrollPane.java (ScrollPane): Fixed test for valid display policy.
* java/awt/ScrollPane.java (ScrollPane): Fixed test for valid display policy. From-SVN: r58963
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* ScrollPane.java -- Scrolling window
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999, 2002 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
@@ -134,9 +134,9 @@ ScrollPane(int scrollbarDisplayPolicy)
|
||||
{
|
||||
this.scrollbarDisplayPolicy = scrollbarDisplayPolicy;
|
||||
|
||||
if ((scrollbarDisplayPolicy != SCROLLBARS_ALWAYS) ||
|
||||
(scrollbarDisplayPolicy != SCROLLBARS_AS_NEEDED) ||
|
||||
(scrollbarDisplayPolicy != SCROLLBARS_NEVER))
|
||||
if (scrollbarDisplayPolicy != SCROLLBARS_ALWAYS
|
||||
&& scrollbarDisplayPolicy != SCROLLBARS_AS_NEEDED
|
||||
&& scrollbarDisplayPolicy != SCROLLBARS_NEVER)
|
||||
throw new IllegalArgumentException("Bad scrollbarDisplayPolicy: " +
|
||||
scrollbarDisplayPolicy);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user