-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.java
40 lines (40 loc) · 1.47 KB
/
Main.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
import javax.swing.JFrame;
import java.util.*;
import java.awt.Color;
import java.awt.event.*;
public class Main {
public static int Cpp=0,java=0,html=0,python3=0,css=0,t = 1,cre = 0;
public static String user;
public static ArrayList<question> Cpplist = new ArrayList<question>(Cpp);
public static ArrayList<question> javalist = new ArrayList<question>(java);
public static ArrayList<question> htmllist = new ArrayList<question>(html);
public static ArrayList<question> python3list = new ArrayList<question>(python3);
public static ArrayList<question> csslist = new ArrayList<question>(css);
public static ArrayList<Creden> crelist = new ArrayList<Creden>();
public static void main(String[] args){
Readfile r = new Readfile();
r.readFile("Cpp.txt");
r.readFile("java.txt");
r.readFile("html.txt");
r.readFile("python3.txt");
r.readFile("css.txt");
r.readFile("credentials.txt");
Eswar eswar = new Eswar();
eswar.setVisible(true);
eswar.setSize(1100, 700);
eswar.setLocation(400, 100);
eswar.getContentPane().setBackground( new Color(73,252,187) );
eswar.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
eswar.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent event) {
Writefile w = new Writefile();
w.writeFile("Cpp.txt");
w.writeFile("java.txt");
w.writeFile("html.txt");
w.writeFile("python3.txt");
w.writeFile("css.txt");
w.writeFile("credentials.txt");
}
});
}
}