-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNextPage.java
More file actions
73 lines (60 loc) · 1.67 KB
/
Copy pathNextPage.java
File metadata and controls
73 lines (60 loc) · 1.67 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
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
class NextPage extends Template implements ActionListener
{
JLabel label;
JButton pack,unpack;
NextPage(String value)
{
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
label = new JLabel("Welcome: New Arts");
Dimension size = label.getPreferredSize();
label.setBounds(40,50,size.width + 60,size.height);
label.setFont(new Font("Century",Font.BOLD,17));
label.setForeground(Color.blue);
pack = new JButton("Pack Files");
Dimension bsize = pack.getPreferredSize();
pack.setBounds(100,100,bsize.width,bsize.height);
pack.addActionListener(this);
unpack = new JButton("Unpack Files");
Dimension b2size = pack.getPreferredSize();
unpack.setBounds(300,100,b2size.width,b2size.height);
unpack.addActionListener(this);
_header.add(label);
_content.add(pack);
_content.add(unpack);
ClockHome();
this.setSize(600,600);
this.setResizable(false);
this.setVisible(true);
}
public void actionPerformed(ActionEvent ae)
{
if(ae.getSource() == exit)
{
this.setVisible(false);
System.exit(0);
}
if(ae.getSource() == minimize)
{
this.setState(this.ICONIFIED);
}
if(ae.getSource() == pack)
{
this.setVisible(false);
try
{
PackFront obj = new PackFront();
}
catch(Exception e)
{}
}
if(ae.getSource() == unpack)
{
this.setVisible(false);
UnpackFront obj = new UnpackFront();
}
}
}