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

JTable JavaDoc: how to enable horizontal scrolling

    Details

    • Subcomponent:
    • Resolved In Build:
      b10
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Description

      JTable does a fine job of laying out columns so they will fit into the table's containing viewport. However, if you would like your JTable's to allow the columns to be wide enough to necessitate horizontal scrolling, it can be tricky to figure out w/ the current JavaDocs. You can beg, plead, and threaten the JScrollPane all you want, but you won't get anywhere without calling JTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF). This should be spelled out somewhere in the JTable JavaDoc.

        Attachments

          Activity

            People

            • Assignee:
              bchristi Brent Christian
              Reporter:
              bchristi Brent Christian
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: