- 
    Bug 
- 
    Resolution: Fixed
- 
     P2 P2
- 
    9
- 
        b143
- Run the code below on HiDPI display on Windows
- Select the text from the end to the beginning
The selected text is shifted than the original one.
----------------------
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
public class CheckTextSelection {
private static final String TEXT = "aaaaaaaaaaaaaaaaaaaa";
public static void main(String[] args) {
SwingUtilities.invokeLater(CheckTextSelection::createAndShowGUI);
}
private static void createAndShowGUI() {
JFrame frame = new JFrame();
frame.setSize(300, 300);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPanel panel = new JPanel(new BorderLayout());
JTextField textField = new JTextField(TEXT);
panel.add(textField);
frame.getContentPane().add(panel);
frame.setVisible(true);
}
}
----------------------
- blocks
- 
                    JDK-8163175 PlainView.modelToView() method should return Rectangle2D -           
- Resolved
 
-         
- relates to
- 
                    JDK-8132119 Provide public API for text related methods in SwingUtilities2 -           
- Resolved
 
-         
- 
                    JDK-8163175 PlainView.modelToView() method should return Rectangle2D -           
- Resolved
 
-         
- 
                    JDK-8169719 WrappedPlainView.modelToView() should return Rectangle2D -           
- Resolved
 
-         
- 
                    JDK-8163124 On HiDPI display text width can have floating point value so there should be a way to set the caret to floating point position: add floating point API support to javax.swing.text.Caret -           
- Closed
 
-         
- 
                    JDK-8189809 Large performance regression in Swing text layout. -           
- Resolved
 
-         
- 
                    JDK-8142966 Wrong cursor position in text components on HiDPI display -           
- Resolved
 
-         
- 
                    JDK-8156149 Blurry rendering on Windows 7 at 125% screen setting -           
- Closed
 
-         
- 
                    JDK-8159356 Swing_DnD/Automated/JEP2JEPDnDTest fails as Text selected in JEditorPane isn't copied to an empty JEditorPane -           
- Closed
 
-         
- 
                    JDK-8159357 Swing_DnD/Automated/JEP2JTADnDTest fails as text selected in JEditorPane isn't copied to a non-empty JTextArea -           
- Closed
 
-         
- 
                    JDK-8159358 Swing_DnD/Automated/JEP2JTFDnDTest fails as text selected in JEditorPane isn't copied to a non-empty JTextField -           
- Closed
 
-         
- 
                    JDK-8159359 Swing_DnD/Automated/JEP2JTPDnDTest fails as text selected in JEditorPane isn't copied to a non-empty JTextPane. -           
- Closed
 
-         
- 
                    JDK-8159360 Swing_DnD/Automated/JTF2JTADnDTest as text selected in JTextField isnt' copied to a non-empty JTextArea. -           
- Closed
 
-         
- 
                    JDK-8159361 Swing_DnD/Automated/JTF2JTFDnDTest fails as text selected in JTextField isn't copied to a non-empty JTextField. -           
- Closed
 
-