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

BorderFactory JavaDoc misleading

XMLWordPrintable

    • beta2
    • x86
    • windows_2000

      The following javadoc is misleading. You pass in a border for it to use, but the javadoc continues on to say that the border it will use will be the default (etched or gray), not the one passed in. Seems odd.
      javadoc:

      createTitledBorder

      public static TitledBorder createTitledBorder(Border border)

             Creates a new title border with an empty title specifying the border object, using the default text position (sitting on the top line) and
             default justification (leading) and using the default font, text color, and border determined by the current look and feel. (The Motif and
             Windows look and feels use an etched border; The Java look and feel uses a gray border.)

             Parameters:
                    border - the Border object to add the title to
             Returns:
                    the TitledBorder object

            svioletsunw Scott Violet (Inactive)
            jdixonsunw John Dixon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: