looks
  1. looks
  2. LOOKS-183

Unicode Problem when using PlasticXPLookAndFeel

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.4
    • Fix Version/s: not determined
    • Component/s: plastic
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: PC

    • Issuezilla Id:
      183

      Description

      When using the PlasticXPLookAndFeel Unicode characters
      are not correctly presented.

      Try this example:

      import java.awt.BorderLayout;

      import javax.swing.JFrame;
      import javax.swing.JTable;
      import javax.swing.SwingUtilities;
      import javax.swing.UIManager;
      import javax.swing.UnsupportedLookAndFeelException;

      import com.jgoodies.looks.plastic.PlasticXPLookAndFeel;

      public class UnicodeProblem
      {
      public static void main(String[] args)
      {
      SwingUtilities.invokeLater(new Runnable()
      {
      public void run()
      {
      PlasticXPLookAndFeel lookAndFeel = new PlasticXPLookAndFeel();
      try

      { UIManager.setLookAndFeel(lookAndFeel); }

      catch (UnsupportedLookAndFeelException e)

      { e.printStackTrace(); }

      JFrame frame = new JFrame("Unicode Problem");
      final String UP_POINTING_TRIANGLE = "\u25b2";
      JTable table = new JTable(new Object[][] {

      { "a", "b" }

      }, new Object[]

      { "A" + UP_POINTING_TRIANGLE, "B" }

      );
      frame.add(table.getTableHeader(), BorderLayout.NORTH);
      frame.add(table, BorderLayout.CENTER);
      frame.pack();
      frame.setVisible(true);
      }
      });
      }
      }

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              looks-issues
              Reporter:
              fischauto
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: