I have a table which is placed in a Panel. This panel contains a Horizonal Scroll Bar which when scrolled to the right enables us to see the whole JTable. Now the Table itself has a vertical scrollbar.

The probelm is when the user can't see the whole table he does not know that that the table contains a vertical scroll bar.

Is there a way to make the vertical scrollbar of the table floating so that even when you scroll to the right the vertical scrollbar of the table is scrolling as you scroll to the right by clicking on the panel scrollbar


Wrong architecture.
Place the JTable in a JScrollPane, and place that in the JPanel. Scrap the scrollbar on the JPanel as the JScrollPane will handle them automatically.

You will have to fiddle with the settings of the JScrollPane a bit to make the horizontal scrollbar to show up.