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,8 @@
|
||||||
2002-11-09 Tom Tromey <tromey@redhat.com>
|
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/List.java (processEvent): Added missing `else's.
|
||||||
|
|
||||||
* java/awt/Window.java (show): validate() before showing. Make
|
* java/awt/Window.java (show): validate() before showing. Make
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* ScrollPane.java -- Scrolling window
|
/* 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.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
|
@ -134,9 +134,9 @@ ScrollPane(int scrollbarDisplayPolicy)
|
||||||
{
|
{
|
||||||
this.scrollbarDisplayPolicy = scrollbarDisplayPolicy;
|
this.scrollbarDisplayPolicy = scrollbarDisplayPolicy;
|
||||||
|
|
||||||
if ((scrollbarDisplayPolicy != SCROLLBARS_ALWAYS) ||
|
if (scrollbarDisplayPolicy != SCROLLBARS_ALWAYS
|
||||||
(scrollbarDisplayPolicy != SCROLLBARS_AS_NEEDED) ||
|
&& scrollbarDisplayPolicy != SCROLLBARS_AS_NEEDED
|
||||||
(scrollbarDisplayPolicy != SCROLLBARS_NEVER))
|
&& scrollbarDisplayPolicy != SCROLLBARS_NEVER)
|
||||||
throw new IllegalArgumentException("Bad scrollbarDisplayPolicy: " +
|
throw new IllegalArgumentException("Bad scrollbarDisplayPolicy: " +
|
||||||
scrollbarDisplayPolicy);
|
scrollbarDisplayPolicy);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue