Commit adf94cac by Tom Tromey Committed by Tom Tromey

ScrollPane.java (ScrollPane): Fixed test for valid display policy.

	* java/awt/ScrollPane.java (ScrollPane): Fixed test for valid
	display policy.

From-SVN: r58963
parent 323941f6
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
......
/* 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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment