public JPanel buildPanel(WindowInterface window) { initComponents(window); FormLayout layout = new FormLayout("p", "240dlu,3dlu,p"); PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(new JScrollPane(tableCommission), cc.xy(1, 1)); builder.add(ButtonBarFactory.buildCenteredBar(buttonExcel), cc.xy(1, 3)); JPanel panel = builder.getPanel(); panel.addComponentListener(viewHandler.getClaimComponentListener(window)); return panel; }
private void initComponents(WindowInterface window) { tableCommission = viewHandler.getTableCommission(); buttonExcel = viewHandler.getButtonExcel(window); }