/** * 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 ); }
/** * */ 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(); }