添加图标
This commit is contained in:
@@ -34,7 +34,7 @@ public class LoginFrm extends javax.swing.JFrame {
|
|||||||
|
|
||||||
public LoginFrm() {
|
public LoginFrm() {
|
||||||
loginMessangeExpection = new LoginMessangeExpection();
|
loginMessangeExpection = new LoginMessangeExpection();
|
||||||
|
setIconImage(new ImageIcon("src/com/msksbr/images/mainicon.png").getImage());
|
||||||
try {
|
try {
|
||||||
connector = new Connector();
|
connector = new Connector();
|
||||||
} catch (ClassNotFoundException | SQLException e) {
|
} catch (ClassNotFoundException | SQLException e) {
|
||||||
|
|||||||
@@ -3,19 +3,11 @@ package com.msksbr.Main;
|
|||||||
import com.formdev.flatlaf.FlatDarculaLaf;
|
import com.formdev.flatlaf.FlatDarculaLaf;
|
||||||
|
|
||||||
import com.msksbr.LoginFrm.LoginFrm;
|
import com.msksbr.LoginFrm.LoginFrm;
|
||||||
import com.msksbr.MainFrm.MainFrm;
|
|
||||||
|
|
||||||
import java.sql.SQLException;
|
|
||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
FlatDarculaLaf.install();
|
FlatDarculaLaf.install();
|
||||||
//new LoginFrm();
|
new LoginFrm();
|
||||||
try {
|
|
||||||
new MainFrm();
|
|
||||||
} catch (SQLException | ClassNotFoundException e) {
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
package com.msksbr.Main;
|
|
||||||
|
|
||||||
import com.msksbr.MainFrm.MainFrm;
|
|
||||||
import com.msksbr.SQL.Connector;
|
|
||||||
|
|
||||||
import java.sql.ResultSet;
|
|
||||||
import java.sql.SQLException;
|
|
||||||
|
|
||||||
public class test {
|
|
||||||
public static void main(String[] args) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -20,6 +20,7 @@ public class MainFrm extends JFrame {
|
|||||||
private MenuBar menuBar;
|
private MenuBar menuBar;
|
||||||
|
|
||||||
public MainFrm() throws SQLException, ClassNotFoundException {
|
public MainFrm() throws SQLException, ClassNotFoundException {
|
||||||
|
setIconImage(new ImageIcon("src/com/msksbr/images/mainicon.png").getImage());
|
||||||
connector = new Connector();
|
connector = new Connector();
|
||||||
setTitle("图书管理系统");
|
setTitle("图书管理系统");
|
||||||
setContentPane(panel1);
|
setContentPane(panel1);
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
<component id="e7465" class="javax.swing.JButton" binding="buttonOK">
|
<component id="e7465" class="javax.swing.JButton" binding="buttonOK">
|
||||||
<constraints/>
|
<constraints/>
|
||||||
<properties>
|
<properties>
|
||||||
<text value="OK"/>
|
<text value="确认"/>
|
||||||
</properties>
|
</properties>
|
||||||
</component>
|
</component>
|
||||||
</children>
|
</children>
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 8.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 111 KiB |
Reference in New Issue
Block a user