How to make a JTable fill entire available space?
问题 I want to created a panel with a table, which fills the entire available space. I do this using following code: public class MyFrame extends JFrame { public EconomyFrame() throws HeadlessException { super("..."); final JTabbedPane tabbedPane = new JTabbedPane(); add(tabbedPane); final JPanel companiesPanel = new JPanel(); final CompaniesTableModel companiesModel = new CompaniesTableModel (ApplicationStateSingleton.INSTANCE.getPersistence().getCompanies()); final JTable companiesTable = new