private void createUiComponent(boolean enabled) { bagSettingsPanel = createSettingsPanel(); infoPanel = new JPanel(new GridBagLayout()); infoPanel.setToolTipText(bagView.getPropertyMessage("bagView.bagInfoInputPane.help")); Border emptyBorder = new EmptyBorder(5, 5, 5, 5); infoPanel.setBorder(emptyBorder); GridBagConstraints gbc = LayoutUtil.buildGridBagConstraints( 0, 0, 1, 1, 0, 0, GridBagConstraints.HORIZONTAL, GridBagConstraints.WEST); infoPanel.add(bagSettingsPanel, gbc); bagInfoInputPane = new BagInfoInputPane(bagView, false); bagInfoInputPane.setToolTipText(bagView.getPropertyMessage("bagView.bagInfoInputPane.help")); bagInfoInputPane.setEnabled(false); gbc = LayoutUtil.buildGridBagConstraints( 0, 1, 1, 1, 1, 1, GridBagConstraints.BOTH, GridBagConstraints.WEST); infoPanel.add(bagInfoInputPane, gbc); this.setViewportView(infoPanel); }