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

EOU: Checkboxes and radio buttons are too big (java.awt.Checkbox)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.0
    • 1.3.0
    • client-libs
    • beta
    • x86
    • windows_98



      Name: yyT116575 Date: 01/31/2001


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      This problem appears in all versions of Sun JDK/JRE on Windows platform.
      Check boxes and radio buttons (java.awt.Checkbox) have screen appeareances
      inconsistent with the look of native system UI components. AWT components
      appear twice as big as they should be. This causes applications to look
      quite unprofessional, to such an extent that I am forced to avoid using
      this component.

      To reproduce the problem, create any window with AWT checkboxes or
      radio buttons and compare its look with any non-Java Windows application.
      The difference is obvious and striking.

      The evaluation of the bug #4304049 (related to different problem with
      checkboxes) contains some pointers to where the problem lies. Using
      this information I have tracked the problem to be in the awt_Checkbox.cpp
      source file (source directory: src\win32\native\sun\windows). Method
      AwtCheckbox::GetCheckSize() returns value of ::GetSystemMetrics(SM_CYSMICON).
      This value is obviously too big. Probably a fixed value (16?) should be used
      instead.
      (Review ID: 116162)
      ======================================================================

            duke J. Duke
            yyoungsunw Yung-ching Young (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: