-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCodeHopLoadPanel.java
More file actions
37 lines (30 loc) · 1009 Bytes
/
Copy pathCodeHopLoadPanel.java
File metadata and controls
37 lines (30 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package ca.virology.baseByBase.gui.CodeHop;
import javax.swing.*;
import java.awt.*;
public class CodeHopLoadPanel extends JPanel {
JLabel label;
static JLabel processingText;
static JProgressBar progressBar;
JPanel[][] panelHolder;
public CodeHopLoadPanel() {
int rows = 4;
int cols = 3;
panelHolder = new JPanel[rows][cols];
setLayout(new GridLayout(rows, cols));
for (int i = 0; i < rows; i++) {
for (int j = 0; j < cols; j++) {
panelHolder[i][j] = new JPanel();
add(panelHolder[i][j]);
}
}
label = new JLabel("Processing Results");
progressBar = new JProgressBar(0, 100);
progressBar.setIndeterminate(true);
processingText = new JLabel("Currently Processing... ");
}
public void addComponents() {
panelHolder[1][1].add(label);
panelHolder[1][1].add(progressBar);
panelHolder[2][1].add(processingText);
}
}