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:
Tom Tromey 2002-11-09 23:42:01 +00:00 committed by Tom Tromey
parent 323941f6b6
commit adf94cac56
2 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,8 @@
2002-11-09 Tom Tromey <tromey@redhat.com>
* java/awt/ScrollPane.java (ScrollPane): Fixed test for valid
display policy.
* java/awt/List.java (processEvent): Added missing `else's.
* java/awt/Window.java (show): validate() before showing. Make

View File

@ -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);