I'm using a jTable in a JDialog, when I need to use the scrollbars it drags the JDialgo instead of the rows. I'm using NetBeans form design.
P.D. Of course ny JTable is inside a JScrollPane.
I'm using a jTable in a JDialog, when I need to use the scrollbars it drags the JDialgo instead of the rows. I'm using NetBeans form design.
P.D. Of course ny JTable is inside a JScrollPane.
Edited: On Mac OS X, this is a feature when you specify setUndecorated(true)
, as shown in this example. Use setUndecorated(false)
instead. As long as you use a layout manager and pack()
the dialog, the JTable
should adopt a reasonable size. You can use setPreferredScrollableViewportSize()
, mentioned here, if required. See also these caveats.