Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6728987

Incorrect height of selection highlighting space in JTextPane

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 6
    • client-libs

      FULL PRODUCT VERSION :


      ADDITIONAL OS VERSION INFORMATION :
      Fedora 7
      SLED10 SP1


      A DESCRIPTION OF THE PROBLEM :
      There are a few fonts to select, which cause of painting "selection space" with height in two times smaller than height of selected text.
      I've reproduce this with Cursor, Standard Symbols L, Ellinia CLM



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1) set for example "Cursor" font to JTextPane
      2) type there some text.
      3) select typed text





      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      JFrame frame = new JFrame();
      JTextPane textPane = new JTextPane();
      textPane.setFont(new Font("Cursor", Font.PLAIN, 14));
      frame.add(textPane);
      frame.setSize(300,300);
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      frame.setLocationRelativeTo(null);
      frame.setVisible(true);

      REPRODUCIBILITY :
      This bug can be reproduced always.

            peterz Peter Zhelezniakov
            igor Igor Nekrestyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: