Commit 90747dd6 authored by Florian Schäfer's avatar Florian Schäfer

Rename field to camelCase to conform to naming conventions

parent 3f2fba90
......@@ -4,7 +4,6 @@ import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.TimeUnit;
......
......@@ -5,25 +5,25 @@ import javax.swing.JPanel;
import javax.swing.JProgressBar;
public class ProgressJPanel extends JPanel {
private final JProgressBar PROGRESS_BAR = new JProgressBar();
private final JProgressBar progressBar = new JProgressBar();
ProgressJPanel() {
setLayout(new BorderLayout());
PROGRESS_BAR.setStringPainted(true);
progressBar.setStringPainted(true);
}
protected synchronized void showProgress(final String message) {
if (!isAncestorOf(PROGRESS_BAR)) {
add(PROGRESS_BAR, BorderLayout.NORTH);
if (!isAncestorOf(progressBar)) {
add(progressBar, BorderLayout.NORTH);
}
PROGRESS_BAR.setIndeterminate(true);
PROGRESS_BAR.setString(message);
progressBar.setIndeterminate(true);
progressBar.setString(message);
revalidate();
repaint();
}
protected synchronized void hideProgress() {
remove(PROGRESS_BAR);
remove(progressBar);
revalidate();
repaint();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment