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

JTable JavaDoc: how to enable horizontal scrolling

XMLWordPrintable

    • b10
    • generic
    • generic
    • Not verified

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: