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

JDK1.1.5'G': 'Warning:Applet Window' banner breaks layout of component

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.1.5
    • 1.1.5
    • client-libs
    • None
    • 1.1.5
    • sparc
    • solaris_9
    • Not verified

        masaki.katakai@Japan 1997-11-11

        On JDK1.1.5G, 'Warning:Applet Window' banner breaks layout of component.
         
        Please try the following on appletviewer.
         
                import java.awt.*;
                import java.applet.*;
         
                public class frametest extends Applet {
                        public void init(){
                                Frame f=new Frame();
                                f.add("East", new TextField("test", 20));
                                f.add("North", new Button("Close"));
                                f.pack();
                                f.show();
                        }
                }
         
        The text field under 'Close' button shrinks and no one can use
        the text field. I put the snapshot into attachment.
         
        Without warning banner, the layout seems to be correct.
         
                // without warning banner
                public class frametest2 extends Frame {
                        public frametest2(){
                                add("East", new TextField("test", 20));
                                add("North", new Button("Close"));
                                pack();
                        }
                        public static void main(String args[]){
                                frametest2 f=new frametest2();
                                f.show();
                        }
                }
         
         
        This problem is a regression because I could not reproduce the
        problem with JDK1.1.4.

              pyoung Paul Young (Inactive)
              katakai Masaki Katakai
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: