-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathviewOnePlayer.java
More file actions
101 lines (83 loc) · 3.03 KB
/
viewOnePlayer.java
File metadata and controls
101 lines (83 loc) · 3.03 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
90
91
92
93
94
95
96
97
98
99
100
101
package dataKicker;
// 한 선수의 상세정보 조
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import java.awt.Font;
import javax.swing.JButton;
import javax.swing.JRadioButton;
import javax.swing.ButtonGroup;
public class viewOnePlayer extends JFrame {
private static final long serialVersionUID = 1L;
private JPanel contentPane;
private final ButtonGroup buttonGroup = new ButtonGroup();
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
viewOnePlayer frame = new viewOnePlayer();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public viewOnePlayer() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 450, 300);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
JPanel panel = new JPanel();
panel.setBounds(24, 75, 126, 151);
contentPane.add(panel);
JLabel lblNewLabel = new JLabel("선수 ID:");
lblNewLabel.setHorizontalAlignment(SwingConstants.RIGHT);
lblNewLabel.setBounds(180, 75, 61, 16);
contentPane.add(lblNewLabel);
JLabel lblNewLabel_2 = new JLabel("포지션:");
lblNewLabel_2.setHorizontalAlignment(SwingConstants.RIGHT);
lblNewLabel_2.setBounds(180, 103, 61, 16);
contentPane.add(lblNewLabel_2);
JLabel lblNewLabel_3 = new JLabel("생년월일:");
lblNewLabel_3.setHorizontalAlignment(SwingConstants.RIGHT);
lblNewLabel_3.setBounds(180, 131, 61, 16);
contentPane.add(lblNewLabel_3);
JLabel lblNewLabel_4 = new JLabel("액션:");
lblNewLabel_4.setHorizontalAlignment(SwingConstants.RIGHT);
lblNewLabel_4.setBounds(180, 159, 61, 16);
contentPane.add(lblNewLabel_4);
JLabel lblNewLabel_5 = new JLabel("(선수 이름)");
lblNewLabel_5.setFont(new Font("Lucida Grande", Font.BOLD, 18));
lblNewLabel_5.setHorizontalAlignment(SwingConstants.CENTER);
lblNewLabel_5.setBounds(6, 33, 438, 35);
contentPane.add(lblNewLabel_5);
JButton btnNewButton = new JButton("Back");
btnNewButton.setBounds(6, 6, 117, 29);
contentPane.add(btnNewButton);
JLabel lblNewLabel_4_1 = new JLabel("출전 가능 여부:");
lblNewLabel_4_1.setHorizontalAlignment(SwingConstants.RIGHT);
lblNewLabel_4_1.setBounds(163, 187, 78, 16);
contentPane.add(lblNewLabel_4_1);
JRadioButton rdbtnNewRadioButton = new JRadioButton("가능");
buttonGroup.add(rdbtnNewRadioButton);
rdbtnNewRadioButton.setBounds(245, 183, 61, 23);
contentPane.add(rdbtnNewRadioButton);
JRadioButton rdbtnNewRadioButton_1 = new JRadioButton("불가능");
buttonGroup.add(rdbtnNewRadioButton_1);
rdbtnNewRadioButton_1.setBounds(305, 183, 78, 23);
contentPane.add(rdbtnNewRadioButton_1);
// staff일 경우 출전 가능 여부 수정 가능, player일 경우 불가능
}
}