-
Notifications
You must be signed in to change notification settings - Fork 1
/
tables.java
44 lines (38 loc) · 966 Bytes
/
tables.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
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
public class tables extends JFrame
{
static JFrame mf=new JFrame("Content");
public tables()
{
mf.setBounds(380,300,450,450);
Image img=Toolkit.getDefaultToolkit().getImage("ddsm113.jpg");
mf.setIconImage(img);
String data[][]={
{"Page No.","Information related to"},
{"",""},
{"1.","Introduction"},
{"2.","Embed"},
{"3.","De-Embed"},
{"4.","CRC"},
{"5.","CRC Generation"},
{"6.","CRC Verification"},
{"7.","Compress"},
{"8.","Decompress"},
};
String cn[]={"Page No.","Topic"};
JTable tab=new JTable(data,cn);
mf.getContentPane().add(BorderLayout.CENTER,tab);
mf.setSize(270,195);
mf.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e)
{
mf.dispose();
}
});
mf.setVisible(true);
mf.setResizable(false);
}
}