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); }
public void updateInfoFormsPane(boolean enabled) { // need to remove something? infoPanel.remove(bagInfoInputPane); infoPanel.validate(); bagInfoInputPane = new BagInfoInputPane(bagView, enabled); bagInfoInputPane.setToolTipText(bagView.getPropertyMessage("bagView.bagInfoInputPane.help")); GridBagConstraints gbc = LayoutUtil.buildGridBagConstraints( 0, 1, 1, 1, 1, 1, GridBagConstraints.BOTH, GridBagConstraints.WEST); infoPanel.add(bagInfoInputPane, gbc); this.validate(); }
public void showTabPane(int i) { bagInfoInputPane.setSelectedIndex(i); bagInfoInputPane.invalidate(); }
public void updateInfoForms() { bagInfoInputPane.populateForms(bag, false); bagInfoInputPane.enableForms(false); bagInfoInputPane.invalidate(); }