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

TextField in Dialog can not displayed entirely in Dialog( setResizable(false) ).

XMLWordPrintable

    • 1.1.8
    • sparc
    • solaris_2.6
    • Not verified

      JDK Version: jdk118
      OS: Solaris 2.6
      Locale: C, zh

      If we construct a Dialog, and set its resizable to false, then the textfield
      in it will not be displayed entirely. Maybe the dialog does not deal with the
      status window properly.
      Following is a program to reproduce it, please run it in Solaris 2.6 zh locale,
      maybe this problem also exists in ko or zh_TW locale.
      After you run it, you will find that the textfield in this dialog can not
      be displayed entirely, but if you set LANG to C, it run well.

      ====================CheckInput1.java==========================================
      import java.awt.*;
      import java.awt.event.*;
      import java.io.*;

      public class CheckInput1 {
         
         Label label;
         TextField tf;
         Button button;

         public static void main(String args[]) {
             new CheckInput1();
         }

         public CheckInput1() {
             Frame f = new Frame("Main Frame");
             Dialog dlg = new Dialog(f, "Check Dialog");
             dlg.setLayout(new BorderLayout());

             Panel northPanel = new Panel(new FlowLayout());
             northPanel.add(new TextField("10000"));

             dlg.add(northPanel, BorderLayout.NORTH);
             dlg.pack();
             dlg.setResizable(false);
             dlg.show();
         }

      }
      ===============================================================================


      jim.hu@prc 1998-12-11

            peterz Peter Zhelezniakov
            jhusunw Jim Hu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: