-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
31 lines (27 loc) · 986 Bytes
/
Main.java
File metadata and controls
31 lines (27 loc) · 986 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
import java.time.LocalDate;
import java.util.Scanner;
import java.io.IOException;
import javax.swing.JOptionPane;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
public class Main {
public static void main(String[] args) {
LocalDate myObj1 = LocalDate.now();
System.out.println("---------------------------------------------------");
System.out.println("EpikApp. MobizLTD v1.0 Rev 3. " + myObj1);
System.out.println("---------------------------------------------------");
ImageIcon image = new ImageIcon("halal.jpg");
JLabel label = new JLabel();
label.setText("Stay Halal Brother");
label.setIcon(image);
label.setHorizontalTextPosition(JLabel.CENTER);
label.setVerticalTextPosition(JLabel.TOP);
JFrame frame = new JFrame();
frame.setTitle("EpikApp");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(1000,600);
frame.setVisible(true);
frame.add(label);
}
}