package monitoring;
import java.awt.event.*;
import javax.swing.*;
import java.awt.*;
import java.lang.*;
import javax.swing.JEditorPane;
import monitoring.task.jvm.JVMMonitoringTask;
public class home extends JFrame {
private JFrame j1;
private JPanel c1;
private JLabel m1;
private JLabel l1;
private JLabel l2;
private JSeparator js1;
private JButton j;
private JButton s;
private JButton tc;
public home() {
super();
creat();
this.setVisible(true);
}
private void creat() {
JFrame j1 = new JFrame();
JPanel c1 = new JPanel();
c1 = (JPanel)this.getContentPane();
JLabel m1 = new JLabel();
m1.setText("Application Monitoring Wizard");
m1.setBounds(400,10,500,100);
m1.setEnabled(true);
m1.setForeground(Color.RED);
m1.setFont(new java.awt.Font("Monotype Corsiva", 1, 32));
JLabel l1 = new JLabel();
l1.setText("Health");
l1.setBounds(400,100,200,30);
l1.setFont(new java.awt.Font("Palatino Linotype", 1, 24));
JLabel l2 = new JLabel();
l2.setText("Availibilty");
l2.setBounds(600,100,200,30);
l2.setFont(new java.awt.Font("Palatino Linotype", 1, 24));
JSeparator js1 = new JSeparator();
js1.setBounds(5,350,1000,10);
String link = "JVM";
JButton j = new JButton("<html><head></head><body>"+link+"</body></html>");
j.setBounds(100,150,100,20);
j.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
{
j_actionPerformed(e);
}
});
String link1 = "Website";
JButton s = new JButton("<html><head></head><body>"+link1+"</body></html>");
s.setBounds(100,220,100,20);
s.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
{
s_actionPerformed(e);
}
});
String link2 = "Tomcat";
JButton tc = new JButton("<html><head></head><body>"+link2+"</body></html>");
tc.setBounds(100,290,100,20);
tc.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
{
tc_actionPerformed(e);
}
});
c1.setLayout(null);
c1.setBorder(BorderFactory.createEtchedBorder());
c1.setBackground(new Color(204, 204, 204));
c1.add(j);
c1.add(s);
c1.add(tc);
c1.add(m1);
c1.add(l1);
c1.add(l2);
c1.add(js1);
this.setTitle("Home Page");
this.setLocation(new Point(76, 182));
this.setSize(new Dimension(600, 400));
this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
this.setResizable(true);
setVisible(true);
[B] private void j_actionPerformed(ActionEvent e) {
}[/B]
}
public static void main(String[] args) {
new home();
}
}
this is my code...
I am getting an error in it and unable to understand how 2 remove it..
the bold statement is in error..