I have a JTable which has scroll pane. Scroll pane is added to JTabbedPane. JTabbedPane is added to JPanel which is in JFrame. 
Problem is JTable should occupy entire space width but JTable always places in center and other components gets added to its right. If I make JTable occupy entire width by using `table.setPreferredScrollableViewportSize(table.getPreferredSize());`
scrollbar is not visible. How to make JTable occupy entire space and other components getting added to its bottom?