Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4467063
Votes 1
Synopsis JScrollPane.setCorner() causes IllegalArgumentException. (invalid corner key)
Category java:classes_swing
Reported Against merlin-beta2
Release Fixed 1.5(tiger)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs 4229940
Submit Date 07-JUN-2001
Description
Keys for JScrollPane.setCorner(), which were added for Kestrel, can not be used.
  JScrollPane.LOWER_LEADING_CORNER
  JScrollPane.LOWER_TRAILING_CORNER
  JScrollPane.UPPER_LEADING_CORNER
  JScrollPane.UPPER_TRAILING_CORNER

Since constants which correspond the above keys exist in JScrollPane.java,
I can compile a program which uses JscrollPane.setCorner() with one of the
above keys.
However, the program causes IllegalArgumentException on runtime, because
setCorner() treats it as an invalid key.
  xxxxx@xxxxx   2001-06-07
Work Around
N/A
Evaluation




These four keys are not handled at the set/getCorner() at all.

  xxxxx@xxxxx  

======================================================================

Need to modify not only setCorner() & getCorner() but also 
other parts in order to make JScrollPane update corner components
correctly when setComponentOrientation() is called.
Committed to Tiger.
  xxxxx@xxxxx   2003-02-12

The problem with setComponentOrientaion() is filed as another bug.(4817131)
  xxxxx@xxxxx   2003-02-12
Comments
  
  Include a link with my name & email   

Submitted On 16-NOV-2001
caroma
still a problem in 1.4b3



PLEASE NOTE: JDK6 is formerly known as Project Mustang