Skip to main content

initComponentImpl bug

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
mohaemdsaleh
Offline
Joined: 2009-02-18

Hi

There is a bug in Component.initComponentImpl

in the follwoing code:

if(isRTL() && isScrollableX()){

setScrollX(getScrollDimension().getWidth());

}

It should be:

if(isRTL() && isScrollableX()){

setScrollX(getScrollDimension().getWidth()-getWidth());

}

Now it displays blank screen when RTL is true.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
Joined: 2003-11-07

Thanks, I'll fix it in my next commit.