-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
44 lines (31 loc) · 1016 Bytes
/
Main.java
File metadata and controls
44 lines (31 loc) · 1016 Bytes
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
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package mp3metagen;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
/**
*
* @author stephenmalloy
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Toolkit kit = Toolkit.getDefaultToolkit();
Dimension screenSize = kit.getScreenSize();
int screenWidth = (int)screenSize.getWidth(); // getting Screen width
int screenHeight = (int)screenSize.getHeight(); // getting Screen height
Mp3ConvertGUI mcg = new Mp3ConvertGUI();
mcg.setLocation(((screenWidth / 2) - (mcg.getWidth()/2)),
((screenHeight / 2) - (mcg.getHeight()/2)));
mcg.setVisible(true);
}
}