err.fine("is ProgressInstantiatingIterator"); handle = ProgressHandleFactory.createHandle (PROGRESS_BAR_DISPLAY_NAME); final JComponent progressComp = ProgressHandleFactory.createProgressComponent (handle); final JLabel detailComp = ProgressHandleFactory.createDetailLabelComponent (handle); Mutex.EVENT.readAccess( new Runnable() { handle = ProgressHandleFactory.createHandle (PROGRESS_BAR_DISPLAY_NAME); final JComponent progressComp = ProgressHandleFactory.createProgressComponent (handle); final JLabel mainLabelComp = ProgressHandleFactory.createMainLabelComponent (handle); Mutex.EVENT.readAccess( new Runnable() {
/** * have the component in custom location, don't include in the status bar. */ JComponent extractComponent() { return ProgressHandleFactory.createProgressComponent(handle); }
/** * Get the progress bar component for use in custom dialogs, the task won't * show in the progress bar anymore. * @since org.netbeans.api.progress 1.3 * @return the component to use in custom UI. */ public static JComponent createProgressComponent(AggregateProgressHandle handle) { return ProgressHandleFactory.createProgressComponent(getProgressHandle(handle)); }
public JComponent getProgressComponent() { return ProgressHandleFactory.createProgressComponent(getProgressHandle()); }
/** Start the progress indication for indeterminate task. */ public void start(Integer delay) { if (modal) { progressComponent = ProgressHandleFactory.createProgressComponent(handle); } if (delay != null) { handle.setInitialDelay(delay.intValue()); } handle.start(); }
private JPanel createProgressPanel(ProgressHandle progressHandle) { JPanel panel = preparePanel(); JComponent progressComponent = ProgressHandleFactory.createProgressComponent(progressHandle); JLabel progressLabel = ProgressHandleFactory.createMainLabelComponent(progressHandle); GridBagConstraints constraints = new GridBagConstraints(); constraints.weightx = 0.5; constraints.fill = GridBagConstraints.HORIZONTAL; constraints.insets = new Insets(0, 40, 0, 40); panel.add(progressLabel, constraints); constraints = new GridBagConstraints(); constraints.gridx = 0; constraints.gridy = 1; constraints.weightx = 0.5; constraints.fill = GridBagConstraints.HORIZONTAL; constraints.insets = new Insets(0, 40, 20, 40); panel.add(progressComponent, constraints); JScrollPane scrlPane = new JScrollPane(); scrlPane.setViewportView(panel); JPanel pnl = new JPanel(); pnl.setLayout(new BorderLayout()); pnl.add(scrlPane, BorderLayout.CENTER); return pnl; }
Component progress = ProgressHandleFactory.createProgressComponent(handle); JLabel label = ProgressHandleFactory.createDetailLabelComponent(handle);
public DetectRunnable() { setLayout(new GridBagLayout()); GridBagConstraints gbc; searchLabel = new JLabel(); gbc = new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(12, 12, 6, 12), 0, 0); add(searchLabel, gbc); gbc = new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 12, 6, 12), 0, 0); progress = ProgressHandleFactory.createHandle(NbBundle.getMessage(SearchRunnable.class, "Title_DetectRunnable_Searching")); //NOI18N this.getAccessibleContext().setAccessibleName(NbBundle.getMessage(SearchRunnable.class, "ACSN_detectingPlatform")); //NOI18N this.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(SearchRunnable.class, "ACSD_detectingPlatform")); //NOI18N JComponent component = ProgressHandleFactory.createProgressComponent(progress); component.getAccessibleContext().setAccessibleName(NbBundle.getMessage(SearchRunnable.class, "ACSN_detectingPlatform")); //NOI18N component.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(SearchRunnable.class, "ACSD_detectingPlatform")); //NOI18N add(component, gbc); setPreferredSize(new Dimension(400, 70)); }
@Messages({ "LBL_FormattingQuestion=Recursivelly format the selected files and folders?", "LBL_FormattingInProgress=Formatting:" }) public ConfirmationPanel(ProgressHandle handle) { initComponents(); setLayout(new CardLayout()); add(new JLabel(Bundle.LBL_FormattingQuestion()), PANEL_QUESTION); JPanel progress = new JPanel(new BorderLayout()); JLabel inProgressLabel = new JLabel(Bundle.LBL_FormattingInProgress()); inProgressLabel.setBorder(new EmptyBorder(0, 0, 6, 0)); progress.add(inProgressLabel, BorderLayout.NORTH); progress.add(ProgressHandleFactory.createProgressComponent(handle), BorderLayout.CENTER); add(progress, PANEL_PROGRESS); ((CardLayout) getLayout()).show(this, PANEL_QUESTION); }
@NbBundle.Messages("ProgressPanel.progress.title=Synchronizing...") public ProgressPanel(SyncPanel.SyncInfo syncInfo) { assert SwingUtilities.isEventDispatchThread(); assert syncInfo != null; summaryPanel = new SummaryPanel(syncInfo.upload, syncInfo.download, syncInfo.delete, syncInfo.noop); progressHandle = ProgressHandleFactory.createHandle(Bundle.ProgressPanel_progress_title()); // #211494 progressMessageLabel = ProgressHandleFactory.createDetailLabelComponent(progressHandle); // set correct height of the component progressMessageLabel.setText(" "); // NOI18N initComponents(); summaryPanelHolder.add(summaryPanel, BorderLayout.CENTER); progressPanelHolder.add(ProgressHandleFactory.createProgressComponent(progressHandle), BorderLayout.CENTER); progressMessagePanelHolder.add(progressMessageLabel, BorderLayout.CENTER); revalidate(); repaint(); }
progress.add(jPanel4, "not-progress"); // NOI18N progressImpl.add(progressComponent = ProgressHandleFactory.createProgressComponent(handle)); progressImpl.setLayout(new java.awt.GridBagLayout());
public void run() { final String titleString = NbBundle.getMessage(SearchRunnable.class, "Title_SearchRunnable_Searching"); progress = ProgressHandleFactory.createHandle(titleString); panel = new SearchPanel(ProgressHandleFactory.createProgressComponent(progress)); progress.start(); progress.switchToIndeterminate();
c.fill = GridBagConstraints.HORIZONTAL; c.weightx = 1.0; JComponent pc = ProgressHandleFactory.createProgressComponent(this.progressHandle); ((GridBagLayout)this.component.progressPanel.getLayout ()).setConstraints(pc,c); this.component.progressPanel.add (pc);
progress.add(jPanel4, "not-progress"); // NOI18N progressImpl.add(progressComponent = ProgressHandleFactory.createProgressComponent(handle)); progressImpl.setMinimumSize(new java.awt.Dimension(121, 17)); progressImpl.setPreferredSize(new java.awt.Dimension(121, 17));
progressImpl.add(jLabel5, gridBagConstraints); jPanel3.add(ProgressHandleFactory.createProgressComponent(handle)); jPanel3.setLayout(new java.awt.BorderLayout()); gridBagConstraints = new java.awt.GridBagConstraints();
panel.setText(message); ProgressHandle handle = ProgressHandleFactory.createHandle(null); JComponent progress = ProgressHandleFactory.createProgressComponent(handle); handle.start(); final List<T> result = new ArrayList<>(1);
JComponent pc = ProgressHandleFactory.createProgressComponent(handle); JLabel ml = ProgressHandleFactory.createMainLabelComponent(handle);