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

JDK1.1.5'G': List shrinks by addItem()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.1.5
    • Fix Version/s: 1.1.5
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      1.1.5
    • CPU:
      sparc
    • OS:
      solaris_9
    • Verification:
      Not verified

      Backports

        Description

        masaki.katakai@Japan 1997-11-11

        List shrinks when item is appened on JDK1.1.5'G'.
         
        Please try following sample to reproduce the problem.
         
                import java.awt.*;
                import java.applet.*;
         
                public class listtest extends Applet {
                        List list;
                        public void init(){
                                setLayout(new BorderLayout());
                                add("North", new Button("set"));
                                add("Center", list=new List(10));
                        }
                        public boolean action(Event e, Object arg) {
                                list.addItem("item");
                                return true;
                        }
                }
         
        <applet name="listtest"
        code="listtest.class"
        width="200"
        height="300"
        align="Top">
        </applet>

        The 'List' is created in 'Center' of applet. When 'set' button is clicked,
        item 'item' is inserted into the list but the List shrinks.
         
        I found the problem on Views first. The problem always happens on NameView.
        The List of right side shrinks after searching.
         
        I belive it's a regression from JDK1.1.4 because I could not
        reproduce the problem with JDK1.1.4.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jkoenigsunw Janet Koenig (Inactive)
                Reporter:
                katakai Masaki Katakai
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: