Definition at line 18 of file View.java.
◆ View()
◆ getDownButton()
JButton View.getDownButton |
( |
| ) |
|
|
inline |
◆ getResultLabel()
JLabel View.getResultLabel |
( |
| ) |
|
|
inline |
◆ getUpButton()
JButton View.getUpButton |
( |
| ) |
|
|
inline |
◆ setControlPanel()
void View.setControlPanel |
( |
| ) |
|
|
inlineprivate |
Definition at line 59 of file View.java.
59 {
60
63 upButton.setAlignmentX(Component.CENTER_ALIGNMENT);
64 downButton.setAlignmentX(Component.CENTER_ALIGNMENT);
65
66 JPanel panelsContainer = new JPanel();
67
68 panels[1].setLayout(
new BoxLayout(
panels[1], BoxLayout.Y_AXIS));
69 panelsContainer.setLayout(new BoxLayout(panelsContainer, BoxLayout.X_AXIS));
70
71 panels[1].add(panelsContainer);
74 }
References downButton, panels, and upButton.
Referenced by View().
◆ setDisplayPanel()
void View.setDisplayPanel |
( |
| ) |
|
|
inlineprivate |
Definition at line 50 of file View.java.
50 {
51 label =
new JLabel(
"-");
52 label.setFont(
label.getFont().deriveFont(64.0f));
53 label.setAlignmentX(Component.CENTER_ALIGNMENT);
54 panels[0].setLayout(
new BoxLayout(
panels[0], BoxLayout.Y_AXIS));
55
57 }
References label, and panels.
Referenced by View().
◆ setFrame()
Definition at line 34 of file View.java.
34 {
35 frame =
new JFrame(
"Client");
36 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
37 frame.setSize(300, 300);
38 frame.setVisible(
true);
39
40 Container cp =
frame.getContentPane();
41 cp.setLayout(new BoxLayout(cp, BoxLayout.Y_AXIS));
42
44 for (
int i = 0; i <
panels.length; i++) {
47 }
48 }
References frame, and panels.
Referenced by View().
◆ downButton
◆ frame
◆ label
◆ panels
◆ upButton
The documentation for this class was generated from the following file: