made reportProgressBar color less bright

This commit is contained in:
sidheshenator 2015-04-16 09:41:00 -04:00
parent 748c62091f
commit 772c6773a8

View File

@ -254,18 +254,20 @@ public class ReportProgressPanel extends javax.swing.JPanel {
NbBundle.getMessage(this.getClass(), "ReportProgressPanel.complete.processLbl.text")); NbBundle.getMessage(this.getClass(), "ReportProgressPanel.complete.processLbl.text"));
reportProgressBar.setValue(reportProgressBar.getMaximum()); reportProgressBar.setValue(reportProgressBar.getMaximum());
reportProgressBar.setStringPainted(true); reportProgressBar.setStringPainted(true);
reportProgressBar.setForeground(Color.GREEN); // set reportProgressBar color as green.
reportProgressBar.setForeground(new Color(50,205,50));
reportProgressBar.setString("Complete"); //NON-NLS reportProgressBar.setString("Complete"); //NON-NLS
break; break;
} }
case ERROR: { case ERROR: {
STATUS = ReportStatus.ERROR; STATUS = ReportStatus.ERROR;
processingLabel.setForeground(Color.RED); processingLabel.setForeground(new Color(178,34,34));
processingLabel.setText( processingLabel.setText(
NbBundle.getMessage(this.getClass(), "ReportProgressPanel.complete.processLb2.text")); NbBundle.getMessage(this.getClass(), "ReportProgressPanel.complete.processLb2.text"));
reportProgressBar.setValue(reportProgressBar.getMaximum()); reportProgressBar.setValue(reportProgressBar.getMaximum());
reportProgressBar.setStringPainted(true); reportProgressBar.setStringPainted(true);
reportProgressBar.setForeground(Color.RED); // set reportProgressBar color as red.
reportProgressBar.setForeground(new Color(178,34,34));
reportProgressBar.setString("Error"); //NON-NLS reportProgressBar.setString("Error"); //NON-NLS
break; break;
} }
@ -359,9 +361,10 @@ public class ReportProgressPanel extends javax.swing.JPanel {
reportProgressBar.setIndeterminate(false); reportProgressBar.setIndeterminate(false);
reportProgressBar.setValue(0); reportProgressBar.setValue(0);
reportProgressBar.setStringPainted(true); reportProgressBar.setStringPainted(true);
reportProgressBar.setForeground(Color.red); // set reportProgressBar color as red.
reportProgressBar.setForeground(new Color(178,34,34));
reportProgressBar.setString("Cancelled"); //NON-NLS reportProgressBar.setString("Cancelled"); //NON-NLS
processingLabel.setForeground(Color.RED); processingLabel.setForeground(new Color(178,34,34));
processingLabel.setText(NbBundle.getMessage(this.getClass(), "ReportProgressPanel.cancel.procLbl.text")); processingLabel.setText(NbBundle.getMessage(this.getClass(), "ReportProgressPanel.cancel.procLbl.text"));
break; break;
} }