use of javax.swing.JProgressBar in project processdash by dtuma.
the class WBSEditor method buildWaitContents.
private static JPanel buildWaitContents(String message) {
JPanel panel = new JPanel(new BorderLayout());
panel.setBorder(BorderFactory.createEmptyBorder(7, 7, 7, 7));
JLabel label = new JLabel(message);
label.setBorder(BorderFactory.createEmptyBorder(0, 0, 7, 10));
panel.add(label, BorderLayout.NORTH);
JProgressBar bar = new JProgressBar();
bar.setIndeterminate(true);
panel.add(bar, BorderLayout.CENTER);
panel.add(Box.createHorizontalStrut(200), BorderLayout.SOUTH);
return panel;
}
use of javax.swing.JProgressBar in project JWildfire by thargor6.
the class MeshGenInternalFrame method getPanel_98.
private JPanel getPanel_98() {
if (panel_98 == null) {
panel_98 = new JPanel();
panel_98.setPreferredSize(new Dimension(10, 202));
panel_98.setLayout(new BorderLayout(0, 0));
panel_98.add(getPanel_99(), BorderLayout.WEST);
JPanel panel_1 = new JPanel();
panel_1.setBorder(new TitledBorder(null, "Mesh generation", TitledBorder.LEADING, TitledBorder.TOP, null, null));
panel_98.add(panel_1, BorderLayout.CENTER);
panel_1.setLayout(new BorderLayout(0, 0));
JPanel panel_2 = new JPanel();
panel_2.setPreferredSize(new Dimension(10, 56));
panel_1.add(panel_2, BorderLayout.NORTH);
panel_2.setLayout(new BorderLayout(0, 0));
JPanel panel_3 = new JPanel();
panel_3.setPreferredSize(new Dimension(430, 10));
panel_2.add(panel_3, BorderLayout.WEST);
panel_3.setLayout(null);
JLabel lblImageDownsample = new JLabel();
lblImageDownsample.setText("Image downsample");
lblImageDownsample.setSize(new Dimension(68, 22));
lblImageDownsample.setPreferredSize(new Dimension(94, 22));
lblImageDownsample.setName("");
lblImageDownsample.setLocation(new Point(6, 76));
lblImageDownsample.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
lblImageDownsample.setBounds(6, 8, 108, 22);
panel_3.add(lblImageDownsample);
meshGenSequenceDownSampleREd = new JWFNumberField();
meshGenSequenceDownSampleREd.setValueStep(1.0);
meshGenSequenceDownSampleREd.setText("");
meshGenSequenceDownSampleREd.setSize(new Dimension(100, 24));
meshGenSequenceDownSampleREd.setPreferredSize(new Dimension(100, 24));
meshGenSequenceDownSampleREd.setOnlyIntegers(true);
meshGenSequenceDownSampleREd.setMinValue(1.0);
meshGenSequenceDownSampleREd.setMaxValue(12.0);
meshGenSequenceDownSampleREd.setLocation(new Point(71, 76));
meshGenSequenceDownSampleREd.setHasMinValue(true);
meshGenSequenceDownSampleREd.setHasMaxValue(true);
meshGenSequenceDownSampleREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
meshGenSequenceDownSampleREd.setBounds(113, 6, 100, 24);
panel_3.add(meshGenSequenceDownSampleREd);
JLabel lblSpatialFilterRadius_1 = new JLabel();
lblSpatialFilterRadius_1.setText("Spatial filter radius");
lblSpatialFilterRadius_1.setSize(new Dimension(68, 22));
lblSpatialFilterRadius_1.setPreferredSize(new Dimension(94, 22));
lblSpatialFilterRadius_1.setName("");
lblSpatialFilterRadius_1.setLocation(new Point(4, 76));
lblSpatialFilterRadius_1.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
lblSpatialFilterRadius_1.setBounds(6, 32, 108, 22);
panel_3.add(lblSpatialFilterRadius_1);
meshGenSequenceFilterRadiusREd = new JWFNumberField();
meshGenSequenceFilterRadiusREd.setHasMaxValue(true);
meshGenSequenceFilterRadiusREd.setValueStep(0.05);
meshGenSequenceFilterRadiusREd.setText("");
meshGenSequenceFilterRadiusREd.setSize(new Dimension(100, 24));
meshGenSequenceFilterRadiusREd.setPreferredSize(new Dimension(100, 24));
meshGenSequenceFilterRadiusREd.setMaxValue(2.0);
meshGenSequenceFilterRadiusREd.setLocation(new Point(71, 76));
meshGenSequenceFilterRadiusREd.setHasMinValue(true);
meshGenSequenceFilterRadiusREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
meshGenSequenceFilterRadiusREd.setBounds(113, 30, 100, 24);
panel_3.add(meshGenSequenceFilterRadiusREd);
meshGenSequenceThresholdREd = new JWFNumberField();
meshGenSequenceThresholdREd.setValueStep(1.0);
meshGenSequenceThresholdREd.setText("");
meshGenSequenceThresholdREd.setSize(new Dimension(100, 24));
meshGenSequenceThresholdREd.setPreferredSize(new Dimension(100, 24));
meshGenSequenceThresholdREd.setOnlyIntegers(true);
meshGenSequenceThresholdREd.setMaxValue(255.0);
meshGenSequenceThresholdREd.setLocation(new Point(71, 76));
meshGenSequenceThresholdREd.setHasMinValue(true);
meshGenSequenceThresholdREd.setHasMaxValue(true);
meshGenSequenceThresholdREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
meshGenSequenceThresholdREd.setBounds(325, 6, 100, 24);
panel_3.add(meshGenSequenceThresholdREd);
JLabel lblBrightnessThreshold = new JLabel();
lblBrightnessThreshold.setText("Brightness threshold");
lblBrightnessThreshold.setSize(new Dimension(68, 22));
lblBrightnessThreshold.setPreferredSize(new Dimension(94, 22));
lblBrightnessThreshold.setName("");
lblBrightnessThreshold.setLocation(new Point(6, 76));
lblBrightnessThreshold.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
lblBrightnessThreshold.setBounds(218, 8, 108, 22);
panel_3.add(lblBrightnessThreshold);
meshGenImageStepREd = new JWFNumberField();
meshGenImageStepREd.setValueStep(1.0);
meshGenImageStepREd.setText("");
meshGenImageStepREd.setSize(new Dimension(100, 24));
meshGenImageStepREd.setPreferredSize(new Dimension(100, 24));
meshGenImageStepREd.setOnlyIntegers(true);
meshGenImageStepREd.setMinValue(1.0);
meshGenImageStepREd.setLocation(new Point(71, 76));
meshGenImageStepREd.setHasMinValue(true);
meshGenImageStepREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
meshGenImageStepREd.setBounds(325, 30, 100, 24);
panel_3.add(meshGenImageStepREd);
JLabel lblImageStep = new JLabel();
lblImageStep.setText("Image step");
lblImageStep.setSize(new Dimension(68, 22));
lblImageStep.setPreferredSize(new Dimension(94, 22));
lblImageStep.setName("");
lblImageStep.setLocation(new Point(6, 76));
lblImageStep.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
lblImageStep.setBounds(218, 32, 108, 22);
panel_3.add(lblImageStep);
JPanel panel_8 = new JPanel();
panel_8.setPreferredSize(new Dimension(132, 10));
panel_2.add(panel_8, BorderLayout.EAST);
meshGenGenerateMeshBtn = new JButton();
meshGenGenerateMeshBtn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
tinaController.getMeshGenController().generateMeshButton_clicked();
}
});
meshGenGenerateMeshBtn.setText("Create Mesh");
meshGenGenerateMeshBtn.setIcon(new ImageIcon(TinaInternalFrame.class.getResource("/org/jwildfire/swing/icons/new/sports-soccer.png")));
meshGenGenerateMeshBtn.setPreferredSize(new Dimension(132, 48));
meshGenGenerateMeshBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
panel_8.add(meshGenGenerateMeshBtn);
meshGenGenerateMeshProgressbar = new JProgressBar();
meshGenGenerateMeshProgressbar.setValue(0);
meshGenGenerateMeshProgressbar.setStringPainted(true);
meshGenGenerateMeshProgressbar.setPreferredSize(new Dimension(568, 21));
panel_1.add(meshGenGenerateMeshProgressbar, BorderLayout.SOUTH);
JPanel panel = new JPanel();
panel.setPreferredSize(new Dimension(10, 86));
panel_98.add(panel, BorderLayout.SOUTH);
panel.setLayout(new BorderLayout(0, 0));
JPanel panel_4 = new JPanel();
panel_4.setBorder(new TitledBorder(null, "Image pre-filtering", TitledBorder.LEADING, TitledBorder.TOP, null, null));
panel_4.setPreferredSize(new Dimension(400, 10));
panel.add(panel_4, BorderLayout.WEST);
panel_4.setLayout(null);
meshGenPreFilter1Cmb = new JComboBox();
meshGenPreFilter1Cmb.setBounds(82, 19, 117, 24);
panel_4.add(meshGenPreFilter1Cmb);
meshGenPreFilter1Cmb.setToolTipText("");
meshGenPreFilter1Cmb.setPreferredSize(new Dimension(50, 24));
meshGenPreFilter1Cmb.setMinimumSize(new Dimension(100, 24));
meshGenPreFilter1Cmb.setMaximumSize(new Dimension(32767, 24));
meshGenPreFilter1Cmb.setMaximumRowCount(32);
meshGenPreFilter1Cmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
JLabel lblPrefilter = new JLabel();
lblPrefilter.setBounds(23, 21, 59, 22);
panel_4.add(lblPrefilter);
lblPrefilter.setText("PreFilter 1");
lblPrefilter.setPreferredSize(new Dimension(94, 22));
lblPrefilter.setName("");
lblPrefilter.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
JLabel lblPrefilter_1 = new JLabel();
lblPrefilter_1.setBounds(23, 45, 59, 22);
panel_4.add(lblPrefilter_1);
lblPrefilter_1.setText("PreFilter 2");
lblPrefilter_1.setPreferredSize(new Dimension(94, 22));
lblPrefilter_1.setName("");
lblPrefilter_1.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
meshGenPreFilter2Cmb = new JComboBox();
meshGenPreFilter2Cmb.setBounds(82, 43, 117, 24);
panel_4.add(meshGenPreFilter2Cmb);
meshGenPreFilter2Cmb.setToolTipText("");
meshGenPreFilter2Cmb.setPreferredSize(new Dimension(50, 24));
meshGenPreFilter2Cmb.setMinimumSize(new Dimension(100, 24));
meshGenPreFilter2Cmb.setMaximumSize(new Dimension(32767, 24));
meshGenPreFilter2Cmb.setMaximumRowCount(32);
meshGenPreFilter2Cmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
JPanel panel_5 = new JPanel();
panel_5.setBorder(new TitledBorder(null, "Post smoothing", TitledBorder.LEADING, TitledBorder.TOP, null, null));
panel.add(panel_5, BorderLayout.CENTER);
panel_5.setLayout(null);
meshGenTaubinSmoothCbx = new JCheckBox("Taubin-Smooth");
meshGenTaubinSmoothCbx.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
tinaController.getMeshGenController().taubinSmoothCbx_clicked();
}
});
meshGenTaubinSmoothCbx.setToolTipText("");
meshGenTaubinSmoothCbx.setSelected(true);
meshGenTaubinSmoothCbx.setBounds(24, 18, 207, 18);
panel_5.add(meshGenTaubinSmoothCbx);
JLabel lblPasses = new JLabel();
lblPasses.setText("Passes");
lblPasses.setSize(new Dimension(68, 22));
lblPasses.setPreferredSize(new Dimension(94, 22));
lblPasses.setName("");
lblPasses.setLocation(new Point(6, 76));
lblPasses.setFont(new Font("Dialog", Font.BOLD, 10));
lblPasses.setBounds(24, 44, 108, 22);
panel_5.add(lblPasses);
meshGenSmoothPassesREd = new JWFNumberField();
meshGenSmoothPassesREd.setMouseSpeed(0.2);
meshGenSmoothPassesREd.setValueStep(1.0);
meshGenSmoothPassesREd.setText("");
meshGenSmoothPassesREd.setSize(new Dimension(100, 24));
meshGenSmoothPassesREd.setPreferredSize(new Dimension(100, 24));
meshGenSmoothPassesREd.setOnlyIntegers(true);
meshGenSmoothPassesREd.setMaxValue(12.0);
meshGenSmoothPassesREd.setLocation(new Point(71, 76));
meshGenSmoothPassesREd.setHasMinValue(true);
meshGenSmoothPassesREd.setFont(new Font("Dialog", Font.PLAIN, 10));
meshGenSmoothPassesREd.setBounds(131, 42, 100, 24);
panel_5.add(meshGenSmoothPassesREd);
meshGenSmoothLambdaREd = new JWFNumberField();
meshGenSmoothLambdaREd.setMouseSpeed(0.04);
meshGenSmoothLambdaREd.setMinValue(-10.0);
meshGenSmoothLambdaREd.setHasMinValue(true);
meshGenSmoothLambdaREd.setHasMaxValue(true);
meshGenSmoothLambdaREd.setValueStep(0.01);
meshGenSmoothLambdaREd.setText("");
meshGenSmoothLambdaREd.setSize(new Dimension(100, 24));
meshGenSmoothLambdaREd.setPreferredSize(new Dimension(100, 24));
meshGenSmoothLambdaREd.setMaxValue(10.0);
meshGenSmoothLambdaREd.setLocation(new Point(71, 76));
meshGenSmoothLambdaREd.setFont(new Font("Dialog", Font.PLAIN, 10));
meshGenSmoothLambdaREd.setBounds(343, 18, 100, 24);
panel_5.add(meshGenSmoothLambdaREd);
JLabel lblLambda = new JLabel();
lblLambda.setText("Lambda");
lblLambda.setSize(new Dimension(68, 22));
lblLambda.setPreferredSize(new Dimension(94, 22));
lblLambda.setName("");
lblLambda.setLocation(new Point(6, 76));
lblLambda.setFont(new Font("Dialog", Font.BOLD, 10));
lblLambda.setBounds(236, 20, 108, 22);
panel_5.add(lblLambda);
JLabel lblMu = new JLabel();
lblMu.setText("Mu");
lblMu.setSize(new Dimension(68, 22));
lblMu.setPreferredSize(new Dimension(94, 22));
lblMu.setName("");
lblMu.setLocation(new Point(6, 76));
lblMu.setFont(new Font("Dialog", Font.BOLD, 10));
lblMu.setBounds(236, 44, 108, 22);
panel_5.add(lblMu);
meshGenSmoothMuREd = new JWFNumberField();
meshGenSmoothMuREd.setMouseSpeed(0.04);
meshGenSmoothMuREd.setMaxValue(10.0);
meshGenSmoothMuREd.setValueStep(0.01);
meshGenSmoothMuREd.setText("");
meshGenSmoothMuREd.setSize(new Dimension(100, 24));
meshGenSmoothMuREd.setPreferredSize(new Dimension(100, 24));
meshGenSmoothMuREd.setMinValue(-10.0);
meshGenSmoothMuREd.setLocation(new Point(71, 76));
meshGenSmoothMuREd.setHasMinValue(true);
meshGenSmoothMuREd.setFont(new Font("Dialog", Font.PLAIN, 10));
meshGenSmoothMuREd.setBounds(343, 42, 100, 24);
panel_5.add(meshGenSmoothMuREd);
}
return panel_98;
}
use of javax.swing.JProgressBar in project JWildfire by thargor6.
the class BatchFlameRendererInternalFrame method getBatchRenderTotalProgressBar.
/**
* This method initializes batchRenderTotalProgressBar
*
* @return javax.swing.JProgressBar
*/
JProgressBar getBatchRenderTotalProgressBar() {
if (batchRenderTotalProgressBar == null) {
batchRenderTotalProgressBar = new JProgressBar();
batchRenderTotalProgressBar.setValue(0);
batchRenderTotalProgressBar.setPreferredSize(new Dimension(568, 21));
batchRenderTotalProgressBar.setStringPainted(true);
}
return batchRenderTotalProgressBar;
}
use of javax.swing.JProgressBar in project JWildfire by thargor6.
the class EasyMovieMakerInternalFrame method getPanel_5.
private JPanel getPanel_5() {
if (panel_5 == null) {
panel_5 = new JPanel();
panel_5.setBorder(null);
panel_5.setPreferredSize(new Dimension(10, 62));
panel_5.setLayout(null);
swfAnimatorProgressBar = new JProgressBar();
swfAnimatorProgressBar.setBounds(578, 35, 369, 21);
panel_5.add(swfAnimatorProgressBar);
swfAnimatorProgressBar.setValue(0);
swfAnimatorProgressBar.setStringPainted(true);
swfAnimatorProgressBar.setPreferredSize(new Dimension(568, 21));
panel_5.add(getSwfAnimatorGenerateButton());
swfAnimatorCancelButton = new JButton();
swfAnimatorCancelButton.setBounds(993, 32, 177, 26);
panel_5.add(swfAnimatorCancelButton);
swfAnimatorCancelButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
tinaController.getSwfAnimatorCtrl().cancelButton_clicked();
}
});
swfAnimatorCancelButton.setText("Cancel");
swfAnimatorCancelButton.setPreferredSize(new Dimension(125, 24));
swfAnimatorCancelButton.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
panel_5.add(getLabel_3());
panel_5.add(getSwfAnimatorResolutionProfileCmb());
panel_5.add(getSwfAnimatorMovieFromClipboardButton());
panel_5.add(getSwfAnimatorMovieFromDiscButton());
panel_5.add(getSwfAnimatorMovieToClipboardButton());
panel_5.add(getSwfAnimatorMovieToDiscButton());
swfAnimatorGenRandomBatchBtn = new JButton();
swfAnimatorGenRandomBatchBtn.setBounds(6, 6, 119, 50);
panel_5.add(swfAnimatorGenRandomBatchBtn);
swfAnimatorGenRandomBatchBtn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (tinaController.getSwfAnimatorCtrl().createRandomBatch(-1, (String) swfAnimatorRandGenCmb.getSelectedItem())) {
tinaController.getSwfAnimatorCtrl().importFromRandomBatch(0);
}
}
});
swfAnimatorGenRandomBatchBtn.setToolTipText("Create a batch of random movies");
swfAnimatorGenRandomBatchBtn.setText("Random movies");
swfAnimatorGenRandomBatchBtn.setPreferredSize(new Dimension(105, 46));
swfAnimatorGenRandomBatchBtn.setMinimumSize(new Dimension(100, 46));
swfAnimatorGenRandomBatchBtn.setMaximumSize(new Dimension(32000, 46));
swfAnimatorGenRandomBatchBtn.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
JLabel label = new JLabel();
label.setBounds(132, 13, 80, 14);
panel_5.add(label);
label.setText(" Rnd Generator");
label.setPreferredSize(new Dimension(80, 22));
label.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
label.setAlignmentX(1.0f);
swfAnimatorRandGenCmb = new JComboBox();
swfAnimatorRandGenCmb.setBounds(132, 31, 160, 24);
panel_5.add(swfAnimatorRandGenCmb);
swfAnimatorRandGenCmb.setToolTipText("Random-flame-generator");
swfAnimatorRandGenCmb.setPreferredSize(new Dimension(100, 24));
swfAnimatorRandGenCmb.setMinimumSize(new Dimension(100, 24));
swfAnimatorRandGenCmb.setMaximumSize(new Dimension(32767, 24));
swfAnimatorRandGenCmb.setMaximumRowCount(32);
swfAnimatorRandGenCmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
swfAnimatorOutputTypeCmb = new JComboBox();
swfAnimatorOutputTypeCmb.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
}
}
});
swfAnimatorOutputTypeCmb.setPreferredSize(new Dimension(125, 24));
swfAnimatorOutputTypeCmb.setMinimumSize(new Dimension(33, 24));
swfAnimatorOutputTypeCmb.setMaximumRowCount(32);
swfAnimatorOutputTypeCmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
swfAnimatorOutputTypeCmb.setBounds(1045, 5, 125, 24);
panel_5.add(swfAnimatorOutputTypeCmb);
JLabel lblOutput = new JLabel();
lblOutput.setText("Output");
lblOutput.setPreferredSize(new Dimension(94, 22));
lblOutput.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
lblOutput.setBounds(994, 6, 52, 22);
panel_5.add(lblOutput);
swfAnimatorQualityProfileCmb = new JComboBox();
swfAnimatorQualityProfileCmb.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
}
}
});
swfAnimatorQualityProfileCmb.setPreferredSize(new Dimension(125, 24));
swfAnimatorQualityProfileCmb.setMinimumSize(new Dimension(33, 24));
swfAnimatorQualityProfileCmb.setMaximumRowCount(32);
swfAnimatorQualityProfileCmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
swfAnimatorQualityProfileCmb.setBounds(822, 6, 125, 24);
panel_5.add(swfAnimatorQualityProfileCmb);
JLabel lblQuality = new JLabel();
lblQuality.setText("Quality");
lblQuality.setPreferredSize(new Dimension(94, 22));
lblQuality.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
lblQuality.setBounds(772, 6, 45, 22);
panel_5.add(lblQuality);
}
return panel_5;
}
use of javax.swing.JProgressBar in project processdash by dtuma.
the class TeamProjectBrowser method buildTree.
private void buildTree() {
treeModel = new PropTreeModel(new DefaultMutableTreeNode("root"), null);
tree = new JTree(treeModel);
reloadHierarchy();
tree.setEditable(false);
tree.setRootVisible(false);
tree.setShowsRootHandles(true);
tree.setExpandsSelectedPaths(true);
tree.setCellRenderer(new ProjectTreeCellRenderer());
tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
tree.addTreeSelectionListener(handler);
filterReloadIndicator = new JProgressBar();
filterReloadIndicator.setIndeterminate(true);
filterReloadIndicator.setVisible(false);
ToolTipTimingCustomizer.INSTANCE.install(filterReloadIndicator);
JPanel leftPanel = new JPanel(new BorderLayout());
leftPanel.add(new JScrollPane(tree), BorderLayout.CENTER);
leftPanel.add(filterReloadIndicator, BorderLayout.SOUTH);
setLeftComponent(leftPanel);
}
Aggregations