Menu

#7 Coords swapped in Component.java setBounds method

open
nobody
None
5
2008-07-22
2008-07-22
oraether
No

In charva.awt.Component.java the method
setBounds( int top_, int left_, int bottom_, int right_) has a small bug.

The parameters in the function call inside the method are swapped. The original code is:

public void setBounds( int top_, int left_, int bottom_, int right_) {
setLocation(left_, top_ );
}

but the method call should be

setLocation(top_, left_ );

Olaf

Discussion


Log in to post a comment.