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

b62, JPasswordField under Solaris9 Intel does not accept RTL chara

    Details

    • Subcomponent:
    • Introduced In Version:
      5.0
    • Resolved In Build:
      b52
    • CPU:
      x86
    • OS:
      solaris_9

      Description

      Name: jbT81659 Date: 08/11/2004

      Locale: Solaris9 Intel
      Build: b62
      Under Solaris9 Intel, JPasswordField only accepts Latin characters and display them as asterisks, Arabic and Hebrew characters are not displayed at all. To reproduce bug:
      1. Compile and run the following test case (jPasswordField.java) under Solaris9 Intel
      2. In the upper JTextField, insert English, Arabic and Hebrew characters
      3. Note that English, Arabic and Hebrew characters are displayed in the JTextField
      4. In the lower JPasswordField, insert English characters
      5. Note that English characters are dispalyed as asterisks in the JPasswordField
      6. In the lower JPasswordField, insert Arabic and Hebrew characters
      7. Note that nothing is displayed

      -------------------------------------------------------Test Case-----------------------------------
      /* Copyright (c) Sun Microsystems 1998

      $Header: /home-bazelet/sun/src/javaLab/JDK1.4/standard/jPasswordField.java,v 1.1.1.1 2001/06/19 15:01:31 isam Exp $

      */

      import javax.swing.*;
      import java.awt.*;
      import java.awt.event.*;

      public class jPasswordField extends JApplet
      {
      public void init()
      {
      pass1 pass = new pass1();
      getContentPane().add(pass);
      }

      public static void main(String[] argv)
      {

      JFrame frame = new JFrame("\u0645\u062b\u0627\u0644");
           frame.setContentPane(new pass1());
           frame.pack();
           frame.setVisible(true);
              frame.addWindowListener( new WindowAdapter()
              {
                   public void windowClosing( WindowEvent e)
                   {
                       System.exit(0);
                   }
              });

      }
      }

      class pass1 extends JPanel
      {
      public pass1()
      {

      JPanel p = new JPanel();
              p.setLayout(new GridLayout(2, 2, 2, 2));
      JLabel label1 = new JLabel();
              label1.setFont(new Font("Lucida Sans regular",Font.PLAIN,10));
      label1.setText("\u0627\u0644\u0625\u0633\u0645\u0020\u05e9\u05dd");
              p.add(label1);
              p.add(new JTextField());
      JLabel label2 = new JLabel();
              label2.setFont(new Font("Lucida Sans regular",Font.PLAIN,10));
      label2.setText("\u05e1\u05e1\u05de\u05d4\u0020\u0643\u0644\u0645\u0629\u0020\u0627\u0644\u0633\u0631");
              p.add(label2);
              JPasswordField pass = new JPasswordField();
      pass.setEditable(true);
              p.add(pass);
              setLayout(new FlowLayout());
              add(p);
              validate();
      }
      }

      ----------------------------------------------------------------------------------------------------------
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yyamasaksunw Yuriko Yamasaki (Inactive)
                Reporter:
                jbenavrasunw Jonathan Benavraham (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: