JDK-8088987 : Update Labeled javadoc, for RTL orientation, methods "setContentDisplay( RIGHT / LEFT )" get opposite results.
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 8
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2012-11-27
  • Updated: 2018-09-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Blocks :  
Duplicate :  
Description
8.0 b65, set orientation of Scene to RTL, then the methods setContentDisplay() and setAlignment() Labeled get opposite result for LEFT and RIGHT.

*** java doc ***
public final void setContentDisplay(ContentDisplay value)
Sets the value of the property contentDisplay.
Property description:
    Specifies the positioning of the graphic relative to the text.


public final void setAlignment(Pos value)
Sets the value of the property alignment.
Property description:
    Specifies how the text and graphic within the Labeled should be aligned when there is empty space within the Labeled.
Comments
It will be a fairly big job to go through all uses of Side in the source base and decide which ones are affected by RTL. Adding a general comment in javadoc for javafx.geometry.Side does not seem helpful or appropriate.
11-11-2015

Docs should be updated for all uses of Side.
06-08-2013

OK. this happens in many cases, for example, side of menu, side of title and legend for chart. It's better to be summarized in doc to avoid confusion.
28-11-2012

This is actually not a bug at all, but a result of the design of how RTL layout works. Instead of adding new values such as LEADING / TRAILING. it was decided to simply give Left / Right the opposite meanings when running in RTL. This needs to be documented better, so keeping this open as a doc bug for now.
27-11-2012

This is not a bug yet, because the feature to support RTL in Labels RT-24221 is not yet implemented. :)
27-11-2012