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

Request for more info (doc) on Swing component size

    XMLWordPrintable

Details

    • Cause Known
    • x86
    • windows_xp

    Description

      FULL PRODUCT VERSION :
      Microsoft Windows XP [Version 5.1.2600]
      (C) Copyright 1985-2001 Microsoft Corp.

      C:\Documents and Settings\Paul>java -version
      java version "1.6.0"
      Java(TM) SE Runtime Environment (build 1.6.0-b105)
      Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

      C:\Documents and Settings\Paul>

      ADDITIONAL OS VERSION INFORMATION :
      Windows XP Pro

      A DESCRIPTION OF THE PROBLEM :
      In the API doc, it is not clear how the component sizes are being determined. Request for clarification on the relationship between layout manager and component size, and how setMinimum(), setMaximum, setPreferredSize() are used. Info from the following links should be included in the API doc.

      How component sizes are being determined:
      http://java.sun.com/docs/books/tutorial/uiswing/layout/howLayoutWorks.html

      Border Layout works differently:
      http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4916048

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -

      ACTUAL -
      I cannot find these info in the API doc.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :

      Attachments

        Activity

          People

            Unassigned Unassigned
            ryeung Roger Yeung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Imported:
              Indexed: