forked from YUR0ii/Red-Group
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEditAction.java
More file actions
33 lines (26 loc) · 863 Bytes
/
EditAction.java
File metadata and controls
33 lines (26 loc) · 863 Bytes
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
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class EditAction extends JPanel implements ActionListener{
public void createAndShowGUI() {
// 2x jlabel 1x jtextpane 4x jradiobutton 3x jcheckbox 3x jspinner 3x jbutton
final int frameWidth = 400;
final int frameHeight = 600;
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(frameWidth, frameHeight);
frame.setTitle("Edit Item");
JPanel panel = new JPanel();
panel.setLayout(new GridBagLayout());
panel.setSize(frameWidth, frameHeight);
frame.setVisible(true);
}
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
}
public static void main(String[] args) {
EditAction e = new EditAction();
e.createAndShowGUI();
}
}