/** * Initializes this dialog. */ private void initDialog() { setMinimumSize( new Dimension( 640, 480 ) ); final JComponent settingsPane = createSettingsPane(); final JComponent previewPane = createPreviewPane(); final JPanel contentPane = new JPanel( new GridBagLayout() ); contentPane.add( settingsPane, new GridBagConstraints( 0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.NONE, new Insets( 2, 0, 2, 0 ), 0, 0 ) ); contentPane.add( previewPane, new GridBagConstraints( 1, 0, 1, 1, 1.0, 1.0, GridBagConstraints.NORTH, GridBagConstraints.BOTH, new Insets( 2, 0, 2, 0 ), 0, 0 ) ); final JButton runAnalysisButton = ToolUtils.createRunAnalysisButton( this ); this.runAnalysisAction = ( RestorableAction )runAnalysisButton.getAction(); final JButton exportButton = ToolUtils.createExportButton( this ); this.exportAction = exportButton.getAction(); this.exportAction.setEnabled( false ); final JButton closeButton = ToolUtils.createCloseButton(); this.closeAction = closeButton.getAction(); final JComponent buttons = SwingComponentUtils.createButtonPane( runAnalysisButton, exportButton, closeButton ); SwingComponentUtils.setupWindowContentPane( this, contentPane, buttons, runAnalysisButton ); }
/** * Initializes this dialog. */ private void initDialog() { setMinimumSize( new Dimension( 640, 480 ) ); final JComponent settingsPane = createSettingsPane(); final JComponent previewPane = createPreviewPane(); final JPanel contentPane = new JPanel( new GridBagLayout() ); contentPane.add( settingsPane, new GridBagConstraints( 0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.NONE, new Insets( 2, 0, 2, 0 ), 0, 0 ) ); contentPane.add( previewPane, new GridBagConstraints( 1, 0, 1, 1, 1.0, 1.0, GridBagConstraints.NORTH, GridBagConstraints.BOTH, new Insets( 2, 0, 2, 0 ), 0, 0 ) ); final JButton runAnalysisButton = ToolUtils.createRunAnalysisButton( this ); this.runAnalysisAction = ( RestorableAction )runAnalysisButton.getAction(); final JButton exportButton = ToolUtils.createExportButton( this ); this.exportAction = exportButton.getAction(); this.exportAction.setEnabled( false ); final JButton closeButton = ToolUtils.createCloseButton(); this.closeAction = closeButton.getAction(); final JComponent buttons = SwingComponentUtils.createButtonPane( runAnalysisButton, exportButton, closeButton ); SwingComponentUtils.setupWindowContentPane( this, contentPane, buttons, runAnalysisButton ); }
/** * Initializes this dialog. */ private void initDialog() { setMinimumSize( new Dimension( 640, 480 ) ); final JComponent settingsPane = createSettingsPane(); final JComponent previewPane = createPreviewPane(); final JPanel contentPane = new JPanel( new GridBagLayout() ); contentPane.add( settingsPane, new GridBagConstraints( 0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.NONE, new Insets( 2, 0, 2, 0 ), 0, 0 ) ); contentPane.add( previewPane, new GridBagConstraints( 1, 0, 1, 1, 1.0, 1.0, GridBagConstraints.NORTH, GridBagConstraints.BOTH, new Insets( 2, 0, 2, 0 ), 0, 0 ) ); final JButton runAnalysisButton = ToolUtils.createRunAnalysisButton( this ); this.runAnalysisAction = ( RestorableAction )runAnalysisButton.getAction(); final JButton exportButton = ToolUtils.createExportButton( this ); this.exportAction = exportButton.getAction(); this.exportAction.setEnabled( false ); final JButton closeButton = ToolUtils.createCloseButton(); this.closeAction = closeButton.getAction(); final JComponent buttons = SwingComponentUtils.createButtonPane( runAnalysisButton, exportButton, closeButton ); SwingComponentUtils.setupWindowContentPane( this, contentPane, buttons, runAnalysisButton ); }
/** * Initializes this dialog. */ private void initDialog() { setMinimumSize( new Dimension( 640, 480 ) ); final JComponent settingsPane = createSettingsPane(); final JComponent previewPane = createPreviewPane(); final JPanel contentPane = new JPanel( new GridBagLayout() ); contentPane.add( settingsPane, new GridBagConstraints( 0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.NONE, new Insets( 2, 0, 2, 0 ), 0, 0 ) ); contentPane.add( previewPane, new GridBagConstraints( 1, 0, 1, 1, 1.0, 1.0, GridBagConstraints.NORTH, GridBagConstraints.BOTH, new Insets( 2, 0, 2, 0 ), 0, 0 ) ); final JButton runAnalysisButton = ToolUtils.createRunAnalysisButton( this ); this.runAnalysisAction = ( RestorableAction )runAnalysisButton.getAction(); final JButton exportButton = ToolUtils.createExportButton( this ); this.exportAction = exportButton.getAction(); this.exportAction.setEnabled( false ); final JButton closeButton = ToolUtils.createCloseButton(); this.closeAction = closeButton.getAction(); final JComponent buttons = SwingComponentUtils.createButtonPane( runAnalysisButton, exportButton, closeButton ); SwingComponentUtils.setupWindowContentPane( this, contentPane, buttons, runAnalysisButton ); }
/** * Initializes this dialog. */ private void initDialog() { setMinimumSize( new Dimension( 640, 480 ) ); final JPanel subSettingsPane = new JPanel( new SpringLayout() ); final JComponent settingsPane = createSettingsPane( subSettingsPane ); updateSettingsPane( subSettingsPane, ( LineDecoder )this.lineDecoders.getSelectedItem() ); final JPanel contentPane = new JPanel( new GridBagLayout() ); contentPane.add( settingsPane, // new GridBagConstraints( 0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.NONE, // new Insets( 2, 0, 2, 0 ), 0, 0 ) ); contentPane.add( subSettingsPane, // new GridBagConstraints( 0, 1, 1, 1, 1.0, 1.0, GridBagConstraints.NORTH, GridBagConstraints.NONE, // new Insets( 2, 0, 2, 0 ), 0, 0 ) ); final JButton runAnalysisButton = ToolUtils.createRunAnalysisButton( this ); this.runAnalysisAction = ( RestorableAction )runAnalysisButton.getAction(); final JButton closeButton = ToolUtils.createCloseButton(); this.closeAction = closeButton.getAction(); final JComponent buttonPane = SwingComponentUtils.createButtonPane( runAnalysisButton, closeButton ); SwingComponentUtils.setupWindowContentPane( this, contentPane, buttonPane, runAnalysisButton ); pack(); }
/** * */ private void initDialog() { setMinimumSize( new Dimension( 640, 480 ) ); final JComponent settingsPane = createSettingsPane(); final JComponent previewPane = createPreviewPane(); final JPanel contentPane = new JPanel( new GridBagLayout() ); contentPane.add( settingsPane, // new GridBagConstraints( 0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.NONE, new Insets( 2, 0, 2, 0 ), 0, 0 ) ); contentPane.add( previewPane, // new GridBagConstraints( 1, 0, 1, 1, 1.0, 1.0, GridBagConstraints.NORTH, GridBagConstraints.BOTH, new Insets( 2, 0, 2, 0 ), 0, 0 ) ); final JButton runAnalysisButton = ToolUtils.createRunAnalysisButton( this ); this.runAnalysisAction = ( RestorableAction )runAnalysisButton.getAction(); final JButton exportButton = ToolUtils.createExportButton( this ); this.exportAction = exportButton.getAction(); this.exportAction.setEnabled( false ); final JButton closeButton = ToolUtils.createCloseButton(); this.closeAction = closeButton.getAction(); final JComponent buttonPane = SwingComponentUtils.createButtonPane( runAnalysisButton, exportButton, closeButton ); SwingComponentUtils.setupWindowContentPane( this, contentPane, buttonPane, runAnalysisButton ); pack(); }
/** * */ private void initDialog() { setMinimumSize( new Dimension( 640, 480 ) ); final JComponent settingsPane = createSettingsPane(); final JComponent previewPane = createPreviewPane(); final JPanel contentPane = new JPanel( new GridBagLayout() ); contentPane.add( settingsPane, // new GridBagConstraints( 0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.NONE, new Insets( 2, 0, 2, 0 ), 0, 0 ) ); contentPane.add( previewPane, // new GridBagConstraints( 1, 0, 1, 1, 1.0, 1.0, GridBagConstraints.NORTH, GridBagConstraints.BOTH, new Insets( 2, 0, 2, 0 ), 0, 0 ) ); final JButton runAnalysisButton = ToolUtils.createRunAnalysisButton( this ); this.runAnalysisAction = ( RestorableAction )runAnalysisButton.getAction(); final JButton exportButton = ToolUtils.createExportButton( this ); this.exportAction = exportButton.getAction(); this.exportAction.setEnabled( false ); final JButton closeButton = ToolUtils.createCloseButton(); this.closeAction = closeButton.getAction(); final JComponent buttonPane = SwingComponentUtils.createButtonPane( runAnalysisButton, exportButton, closeButton ); SwingComponentUtils.setupWindowContentPane( this, contentPane, buttonPane, runAnalysisButton ); pack(); }
/** * Initializes this dialog. */ private void initDialog() { setMinimumSize( new Dimension( 640, 480 ) ); final JComponent settingsPane = createSettingsPane(); final JComponent previewPane = createPreviewPane(); final JPanel contentPane = new JPanel( new GridBagLayout() ); contentPane.add( settingsPane, // new GridBagConstraints( 0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.NONE, new Insets( 2, 0, 2, 0 ), 0, 0 ) ); contentPane.add( previewPane, // new GridBagConstraints( 1, 0, 1, 1, 1.0, 1.0, GridBagConstraints.NORTH, GridBagConstraints.BOTH, new Insets( 2, 0, 2, 0 ), 0, 0 ) ); final JButton runAnalysisButton = ToolUtils.createRunAnalysisButton( this ); this.runAnalysisAction = ( RestorableAction )runAnalysisButton.getAction(); final JButton exportButton = ToolUtils.createExportButton( this ); this.exportAction = exportButton.getAction(); this.exportAction.setEnabled( false ); final JButton closeButton = ToolUtils.createCloseButton(); this.closeAction = closeButton.getAction(); final JComponent buttonPane = SwingComponentUtils.createButtonPane( runAnalysisButton, exportButton, closeButton ); SwingComponentUtils.setupWindowContentPane( this, contentPane, buttonPane, runAnalysisButton ); pack(); }
/** * Initializes this dialog. */ private void initDialog() { setResizable( false ); final JComponent pane = createContentPane(); final JButton runAnalysisButton = ToolUtils.createRunAnalysisButton( this ); this.runAction = ( RestorableAction )runAnalysisButton.getAction(); final JButton closeButton = ToolUtils.createCloseButton(); final JComponent buttons = SwingComponentUtils.createButtonPane( runAnalysisButton, closeButton ); SwingComponentUtils.setupWindowContentPane( this, pane, buttons, runAnalysisButton ); } }