-
Notifications
You must be signed in to change notification settings - Fork 0
/
0Cdvirtualclient.java
40 lines (35 loc) · 1.16 KB
/
0Cdvirtualclient.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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package cdvirtualclient;
import java.awt.Dimension;
import java.awt.Toolkit;
/**
*
* @author Chayan-Dhaddha
*/
public class Cdvirtualclient {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
IP_Entry log=new IP_Entry();
//Student log=new Student();
//Mentor log =new Mentor();
// StudentSessionHeld student=new StudentSessionHeld();
Toolkit tool=Toolkit.getDefaultToolkit(); // abstract class implemented by awt
Dimension size=tool.getScreenSize();
//for ip_entry
final int WIDTH=280;
final int HEIGHT=150;
//final int WIDTH=700;
//final int HEIGHT=600;
log.setVisible(true);
log.setBounds(size.width/2-WIDTH/2,size.height/2-HEIGHT/2,WIDTH,HEIGHT);
log.setTitle("IP_entry");
log.setResizable(true);
}
}