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

Geater control needed for component set*size() methods

XMLWordPrintable

    • x86
    • windows_2000, windows_xp



      Name: rmT116609 Date: 08/07/2003


      A DESCRIPTION OF THE REQUEST :
      I think it would be useful to have more control over the sizing of a component.

      Currently, there are three methods available...

      setPreferredSize()
      setMaximumSize()
      setMinimumSize()

      ...that require you to set both dimensions at the same time.

      It would be much more powerful if you could also set the dimensions independently using separate methods...

      setPreferredWidth()
      setPreferredHeight()
      setMaximumWidth()
      setMaximumHeight()
      setMinimumWidth()
      setMinimumHeight()


      JUSTIFICATION :
      In my application, I have the need to limit the width of a JTextField within a GridBagLayout to make sure that other dynamically added content will fit within my window. I'd like to set ONLY the preferred width and allow the height to size itself as needed to adjust for larger fonts and other platform differences.
      (Incident Review ID: 193678)
      ======================================================================

            Unassigned Unassigned
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: