-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
22 lines (18 loc) · 739 Bytes
/
Main.java
File metadata and controls
22 lines (18 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import javax.swing.*;
import java.awt.*;
public class Main {
public static void main(String[] args) {
SwingUtilities.invokeLater(() -> {
JFrame frame = new JFrame("Smart Study Planner with Pomodoro Timer");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(700, 550);
frame.setLocationRelativeTo(null);
frame.setLayout(new BorderLayout(10, 10));
TimerPanel timerPanel = new TimerPanel();
TaskManager taskManager = new TaskManager();
frame.add(timerPanel, BorderLayout.NORTH);
frame.add(taskManager, BorderLayout.CENTER);
frame.setVisible(true);
});
}
}