MAin
MAin
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JPanel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.UIManager;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Color;
import java.awt.Font;
import javax.swing.JPasswordField;
import javax.swing.JOptionPane;
import java.io.File;
import javax.swing.JFileChooser;
import java.awt.Cursor;
import java.util.ArrayList;
import java.io.BufferedReader;
import java.io.FileReader;
import java.awt.Cursor;
import javax.swing.border.LineBorder;
import javax.swing.border.TitledBorder;
import java.util.Map;
import org.jfree.ui.RefineryUtilities;
import javax.swing.UIManager;
import javax.swing.JTextArea;
import javax.swing.JScrollPane;
public class Main extends JFrame{
LineBorder border;
TitledBorder title;
JPanel p1;
JPanel p2;
JLabel l1,l2;
JButton b1,b2,b3,b4,b5,b6,b7,b8,b9;
Font f1;
JFileChooser chooser;
File file;
JScrollPane jsp;
static JTextArea area;
static long db,som;
ViewComplexity vcc;
public Main(){
super("Bug Estimation");
p1 = new JPanel();
p1.setLayout(null);
border = new LineBorder(new Color(42,140,241),1,true);
title = new TitledBorder (border,"Modules
Information",TitledBorder.CENTER,TitledBorder.DEFAULT_POSITION, new
Font("Tahoma",Font.BOLD,16),Color.darkGray);
p1.setBorder(title);
f1 = new Font("Times New Roman",Font.BOLD,14);
p2 = new TitlePanel(600,60);
p2.setBackground(new Color(204, 110, 155));
l1 = new JLabel("<HTML><BODY><CENTER>Predicting Software Defect Complexity
and Accuracy Using<br/>Bug Estimation and
Clustering</CENTER></BODY></HTML>".toUpperCase());
l1.setFont(new Font("Courier New",Font.BOLD,16));
p2.add(l1);
l1.setForeground(Color.white);
}
});
b7 = new JButton("Exit");
b7.setFont(f1);
b7.setBounds(280,460,420,30);
p1.add(b7);
b7.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent ae){
System.exit(0);
}
});