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:
parent
323941f6b6
commit
adf94cac56
2 changed files with 7 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue