blob: 1bf6887980e50dd00cb6e4f90b24a9b2779bfe18 (
plain) (
blame)
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
|
package cuchaz.enigma.gui.panels;
import cuchaz.enigma.gui.Gui;
import cuchaz.enigma.utils.Utils;
import javax.swing.*;
import java.awt.*;
public class PanelIdentifier extends JPanel {
private final Gui gui;
public PanelIdentifier(Gui gui) {
this.gui = gui;
this.setLayout(new GridLayout(4, 1, 0, 0));
this.setPreferredSize(new Dimension(0, 100));
this.setBorder(BorderFactory.createTitledBorder("Identifier Info"));
}
public void clearReference() {
this.removeAll();
JLabel label = new JLabel("No identifier selected");
Utils.unboldLabel(label);
label.setHorizontalAlignment(JLabel.CENTER);
this.add(label);
gui.redraw();
}
}
|