-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTabForm.java
More file actions
89 lines (67 loc) · 2.15 KB
/
Copy pathTabForm.java
File metadata and controls
89 lines (67 loc) · 2.15 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package GUI;
import Guitil.MyUtil;
import com.intellij.uiDesigner.core.GridLayoutManager;
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseAdapter;
public class TabForm {
private JPanel panel;
private int cnt = 0;
private JMenu menu1, menu2, menu3, menu4, menu5, menu6;
public TabForm() {
JMenuBar menuBar = new JMenuBar();
menuBar.setBackground(panel.getBackground());
menuBar.setForeground(panel.getBackground());
menu1 = new JMenu(MyUtil.formatStr("随机生成拓扑仿真", 40));
menuBar.add(menu1);
cnt++;
menu2 = new JMenu(MyUtil.formatStr("格状网络拓扑编队", 40));
menuBar.add(menu2);
cnt++;
menu3 = new JMenu(MyUtil.formatStr("链状网络拓扑编队", 40));
menuBar.add(menu3);
cnt++;
menu4 = new JMenu(MyUtil.formatStr("球状网络拓扑编队", 40));
menuBar.add(menu4);
cnt++;
menu5 = new JMenu(MyUtil.formatStr("编队切换仿真", 40));
menuBar.add(menu5);
cnt++;
menu6 = new JMenu(MyUtil.formatStr("弹性网络仿真", 40));
menuBar.add(menu6);
cnt++;
panel.add(menuBar);
menu1.addMouseListener(new MouseAdapter() {
});
menu2.addMouseListener(new MouseAdapter() {
});
menu3.addMouseListener(new MouseAdapter() {
});
menu4.addMouseListener(new MouseAdapter() {
});
menu5.addMouseListener(new MouseAdapter() {
});
menu6.addMouseListener(new MouseAdapter() {
});
}
public JPanel getPanel() {
return panel;
}
{
// GUI initializer generated by IntelliJ IDEA GUI Designer
// >>> IMPORTANT!! <<<
// DO NOT EDIT OR ADD ANY CODE HERE!
$$$setupUI$$$();
}
/**
* Method generated by IntelliJ IDEA GUI Designer
* >>> IMPORTANT!! <<<
* DO NOT edit this method OR call it in your code!
*
* @noinspection ALL
*/
private void $$$setupUI$$$() {
final JPanel panel1 = new JPanel();
panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));
}
}