You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The JTextField component supports the client property "JTextField.placeholderText", which takes as default alignment "ComponentOrientation.LEFT_TO_RIGHT". I propose that if you set a different alignment for the text using "setHorizontalAlignment(SwingConstants.CENTER)" the "placeholder" text should be aligned in that direction as well.
Since the placeholder text uses "ComponentOrientation" it is not possible to align it to the center when using "setHorizontalAlignment".
When "setHorizontalAlignment.CENTER" is not defined use "LEFT_TO_RIGHT" or "RIGHT_TO_LEFT".
The text was updated successfully, but these errors were encountered:
The
JTextField
component supports the client property "JTextField.placeholderText", which takes as default alignment "ComponentOrientation.LEFT_TO_RIGHT". I propose that if you set a different alignment for the text using "setHorizontalAlignment(SwingConstants.CENTER)" the "placeholder" text should be aligned in that direction as well.Since the placeholder text uses "ComponentOrientation" it is not possible to align it to the center when using "setHorizontalAlignment".
When "setHorizontalAlignment.CENTER" is not defined use "LEFT_TO_RIGHT" or "RIGHT_TO_LEFT".
The text was updated successfully, but these errors were encountered: