Optimize project structure, add log4j2.

This commit is contained in:
2022-06-03 14:22:23 +08:00
parent c0d30b0a30
commit 53fd9ddf7a
45 changed files with 438 additions and 40 deletions

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="com.cfive.classroom.student.MainWindow">
<grid id="27dc6" binding="rootPanel" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<xy x="20" y="20" width="500" height="400"/>
</constraints>
<properties/>
<border type="none"/>
<children/>
</grid>
</form>

View File

@@ -0,0 +1,21 @@
package com.cfive.classroom.student;
import com.cfive.classroom.library.database.Test;
import javax.swing.*;
public class MainWindow {
private JPanel rootPanel;
public static void main(String[] args) {
JFrame frame = new JFrame("MainWindow");
frame.setContentPane(new MainWindow().rootPanel);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
com.cfive.classroom.library.net.Test.run();
Test.run();
}
}