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

Solaris JDK1.1.1: IM status region breaks window layout

    XMLWordPrintable

Details

    • 1.1.4
    • sparc
    • generic, solaris_9
    • Not verified

    Description

      [katakai 3/27/97 JST]
      The IM status region is created inside of AWT window,
      so it breaks the layout of Window.

      Please see a snapshot of attachment. The JAVA code is
      included in this report.

      Two windows of left side are created with IM status,
      right windows do not have IM status. You can see the
      problem that IM status region is created in the window itself.

      The problem always happens when the window has input field,
      In createa(), resize() does set dimension of Frame,
      but including IMstatus region. This means that the frame
      size will be different when we do/do not use IM.
      (Actually, IMstatus region overlaps the contents of window)
      IMstatus region is now created inside of frame,
      but it should be created at outside (appended at bottom) of Frame.

      In createb(), the textfield can not be display completely,
      the bottom is chopped off when we use IM.

      ------------- Begin Included Message -------------

      import java.awt.*;

      public class sample {
      public static void main( String[] args ) {
      createa();
      createb();
      }
      static void createa () {
      Dimension d=new Dimension(200,200);

                      MenuBar menuBar = new MenuBar();
                      Menu menu= new Menu("File");
                      menu.add(new MenuItem("Open..."));
                      menuBar.add(menu);

      Frame a=new Frame("Test");
                      a.setMenuBar(menuBar);
      a.setLayout(new BorderLayout());
      a.add("Center", new TextArea());
      a.add("South", new Label("Status"));
      a.resize(d);
      a.show();
      }

      static void createb () {
                      MenuBar menuBar = new MenuBar();
                      Menu menu= new Menu("File");
                      menu.add(new MenuItem("Open..."));
                      menuBar.add(menu);

      Frame b=new Frame("Text");
                      b.setMenuBar(menuBar);
      b.add(new TextField("test"));
      b.pack();
      b.show();
      }
      }

      ------------- End Included Message -------------

      Attachments

        Issue Links

          Activity

            People

              bcbeck Brian Beck (Inactive)
              katakai Masaki Katakai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: