添加图标
This commit is contained in:
@@ -34,7 +34,7 @@ public class LoginFrm extends javax.swing.JFrame {
|
||||
|
||||
public LoginFrm() {
|
||||
loginMessangeExpection = new LoginMessangeExpection();
|
||||
|
||||
setIconImage(new ImageIcon("src/com/msksbr/images/mainicon.png").getImage());
|
||||
try {
|
||||
connector = new Connector();
|
||||
} catch (ClassNotFoundException | SQLException e) {
|
||||
|
||||
@@ -3,19 +3,11 @@ package com.msksbr.Main;
|
||||
import com.formdev.flatlaf.FlatDarculaLaf;
|
||||
|
||||
import com.msksbr.LoginFrm.LoginFrm;
|
||||
import com.msksbr.MainFrm.MainFrm;
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
|
||||
FlatDarculaLaf.install();
|
||||
//new LoginFrm();
|
||||
try {
|
||||
new MainFrm();
|
||||
} catch (SQLException | ClassNotFoundException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
new LoginFrm();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
public MainFrm() throws SQLException, ClassNotFoundException {
|
||||
setIconImage(new ImageIcon("src/com/msksbr/images/mainicon.png").getImage());
|
||||
connector = new Connector();
|
||||
setTitle("图书管理系统");
|
||||
setContentPane(panel1);
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<component id="e7465" class="javax.swing.JButton" binding="buttonOK">
|
||||
<constraints/>
|
||||
<properties>
|
||||
<text value="OK"/>
|
||||
<text value="确认"/>
|
||||
</properties>
|
||||
</component>
|
||||
</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