Repository navigation
Expand file tree
/
Copy pathHelpGUI.java
More file actions
39 lines (29 loc) · 1.56 KB
/
Copy pathHelpGUI.java
File metadata and controls
39 lines (29 loc) · 1.56 KB
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
38
39
package gnnbeanfix;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.Toolkit;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class HelpGUI extends JFrame{
private Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
public HelpGUI(){
JPanel panel = (JPanel) this.getContentPane();
panel.setLayout(new GridLayout(9,1));
panel.add(new JLabel("<html><u>Show Sample</u></html>", JLabel.CENTER));
panel.add(new JLabel("ON: Every time the dimensions shown are changed, the inputs are all " +
"checked (That they are numbers), and the values displayed on the graph, coloured black" , JLabel.CENTER));
panel.add(new JLabel("OFF: The sample is not shown. Inputs are not checked", JLabel.CENTER));
panel.add(new JLabel(""));
panel.add(new JLabel("<html><u>Auto-Update Classification</u></html>", JLabel.CENTER));
panel.add(new JLabel("ON: Every time the dimensions shown are changed, the inputs are all " +
"checked (That they are numbers), and the classification is updated", JLabel.CENTER));
panel.add(new JLabel("OFF: Classification not updated, inputs not checked", JLabel.CENTER));
panel.add(new JLabel(""));
panel.add(new JLabel("Turn both off these off if you just want to see lots of graphs without any hassle!", JLabel.CENTER));
pack();
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
setLocation(screenSize.width/2 - (this.getWidth()/2), screenSize.height/2 - (this.getHeight()/2));
setVisible(true);
}
}