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

Choice component in Firefox/Mozilla has a wrong size

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows

      Description

      Consider the following simple applet:

      import java.applet.*;
      import java.awt.*;

      public class choice_cut extends Applet {

      public void init()
      {
          setBackground(Color.gray);
          Choice choice = new Choice();
          choice.setFont(new Font("Serif", Font.BOLD, 19));
          for (int i=0; i<101; i++) choice.addItem("Item " + String.valueOf(i) + " ");
          add(choice);
      }
      }

      Running the applet in appletviewer or Internet Explorer doesn't show any errors, while in Mozilla and Firefox the opened choice size is too large: about 30 items or even more. If the screen resolution is 800x600 or less this may lead to some last choice items (98, 99, 100) to be inaccessible with mouse.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              serb Sergey Bylokhov
              Reporter:
              art Artem Ananiev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: