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

Solaris: setSize doesn't change the size of Choice

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1, 1.1.2
    • client-libs
    • generic, sparc
    • generic, solaris_2.5.1

      Choice can be resized by setSize on Windows but Solaris

      import java.awt.*;

      public class fjtest extends java.applet.Applet{

              Choice ch;
              Button bt;

              public void init(){
                      ch = new Choice();
                      bt = new Button("button");
                      ch.add("item1");
                      ch.add("item2");
                      ch.add("item3");
                      ch.add("item4");
                      ch.add("item5");
                      ch.add("item6");
                      ch.add("item7");
                      ch.add("item8");
                      ch.add("item9");
                      ch.add("item10");
                      add(ch);
                      add(bt);
              }

              public boolean action(Event ev, Object arg) {
                      if (ev.target instanceof Button) {
                              ch.setSize(200,200);
                              //ch.setLocation(0,0);
                      }
                      return true;
              }
      }

            mbronsonsunw Mike Bronson (Inactive)
            sishidasunw Shoji Ishida (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: