-
Notifications
You must be signed in to change notification settings - Fork 2
/
DHMain.java
executable file
·135 lines (114 loc) · 4.26 KB
/
DHMain.java
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
import java.io.*;
public class DHMain extends javax.swing.JFrame
{
public DHMain()
{
initComponents();
//jDesktopPane1.add( new DHFrame());
java.awt.Dimension dim = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
setSize(610,455);
setResizable(false);
}
private void initComponents()
{
jdp = new javax.swing.JDesktopPane();
jMenuBar1 = new javax.swing.JMenuBar();
fileMenu = new javax.swing.JMenu();
fileMenu1 = new javax.swing.JMenu();
embedMenu = new javax.swing.JMenuItem();
extractmenu = new javax.swing.JMenuItem();
exitmenu = new javax.swing.JMenuItem();
aboutMenu = new javax.swing.JMenuItem();
piclabel=new javax.swing.JLabel(new javax.swing.ImageIcon("new2.jpg"));
piclabel.setBounds(0,0,600,400);
add(piclabel);
setTitle("Audio-Stego");
addWindowListener(new java.awt.event.WindowAdapter()
{
public void windowClosing(java.awt.event.WindowEvent evt) {
exitForm(evt);
}
});
getContentPane().add(jdp, java.awt.BorderLayout.CENTER);
fileMenu.setMnemonic('F');
fileMenu.setText("File");
fileMenu1.setMnemonic('h');
fileMenu1.setText("Help");
embedMenu.setMnemonic('m');
embedMenu.setText("Embed");
embedMenu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
embedMenuActionPerformed(evt);
}
});
fileMenu.add(embedMenu);
extractmenu.setMnemonic('t');
extractmenu.setText("Extract");
extractmenu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
extractmenuActionPerformed(evt);
}
});
fileMenu.add(extractmenu);
exitmenu.setMnemonic('x');
exitmenu.setText("Exit");
exitmenu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
exitmenuActionPerformed(evt);
}
});
fileMenu1.add(aboutMenu);
aboutMenu.setMnemonic('a');
aboutMenu.setText("About");
aboutMenu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
aboutMenuActionPerformed(evt);
}
});
fileMenu.add(exitmenu);
fileMenu1.add(aboutMenu);
jMenuBar1.add(fileMenu);
jMenuBar1.add(fileMenu1);
setJMenuBar(jMenuBar1);
pack();
}
private void exitmenuActionPerformed(java.awt.event.ActionEvent evt)
{
System.exit(0);
}
private void extractmenuActionPerformed(java.awt.event.ActionEvent evt)
{
piclabel.setVisible(false);
WizardFrame wf = new ExtractAction(this).getWizardFrame();
jdp.add(wf);
wf.moveToFront();
}
private void embedMenuActionPerformed(java.awt.event.ActionEvent evt)
{
System.out.println("Embed Action Selected..");
piclabel.setVisible(false);
WizardFrame wf = new EmbedAction(this).getWizardFrame();
jdp.add(wf);
wf.moveToFront();
}
private void aboutMenuActionPerformed(java.awt.event.ActionEvent evt)
{
javax.swing.JOptionPane.showMessageDialog(this,"AUDIO HIDING USING STEGNOGRAPHY\n\n"+"Created by : Arunprasath Shankar","About",javax.swing.JOptionPane.PLAIN_MESSAGE);
}
private void exitForm(java.awt.event.WindowEvent evt) {
System.exit(0);
}
public static void main(String args[])
{
new DHMain().show();
}
private javax.swing.JMenuItem exitmenu;
private javax.swing.JMenu fileMenu;
private javax.swing.JMenu fileMenu1;
private javax.swing.JDesktopPane jdp;
private javax.swing.JMenuItem extractmenu;
private javax.swing.JMenuItem embedMenu;
private javax.swing.JMenuItem aboutMenu;
private javax.swing.JMenuBar jMenuBar1;
public javax.swing.JLabel piclabel;
}