Browse Source

javaswing系统工具增加测试按钮样式

master
lixl1 3 years ago
parent
commit
c2e7d96128
  1. BIN
      pictureIcon/Rectanglex 2@2x.png
  2. BIN
      pictureIcon/shujukubeifen@2x.png
  3. BIN
      pictureIcon/syq-unselect@2x.png
  4. BIN
      pictureIcon/youhua2@2x.png
  5. 14
      src/main/java/com/insigma/ui/SwingFrame.java

BIN
pictureIcon/Rectanglex 2@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
pictureIcon/shujukubeifen@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
pictureIcon/syq-unselect@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
pictureIcon/youhua2@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

14
src/main/java/com/insigma/ui/SwingFrame.java

@ -92,7 +92,7 @@ public class SwingFrame extends JFrame implements ActionListener, ChangeListener
// frame.setSize(1600,400);//设置显示窗口大小
// frame.getContentPane().setBackground(Color.blue);//设置显示窗体颜色
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //设置窗口是否可以关闭
frame.setBounds(100, 100, 930, 580);
frame.setBounds(100, 100, 1000, 580);
frame.setVisible(true);
frame.setIconImage(Toolkit.getDefaultToolkit().getImage("D:\\JavaSwing\\src\\main\\java\\com\\insigma\\ui\\favicon.jpg"));
});
@ -119,7 +119,7 @@ public class SwingFrame extends JFrame implements ActionListener, ChangeListener
contentPane.setLayout(null);
tabbedPane = new JTabbedPane(JTabbedPane.LEFT);
tabbedPane.setBounds(5, 5, 930, 566);
tabbedPane.setBounds(5, 5, 1000, 566);
tabbedPane.setBackground(Color.WHITE);
tabbedPane.setFont(new Font("微软雅黑", Font.PLAIN, 15));
contentPane.add(tabbedPane);
@ -127,9 +127,9 @@ public class SwingFrame extends JFrame implements ActionListener, ChangeListener
repairPanel = new JPanel();//系统优化面板
repairPanel.setForeground(Color.WHITE);
repairPanel.setBackground(Color.WHITE);
tabbedPane.addTab("系统优化", new ImageIcon("pictureIcon/youhua2.png"), repairPanel, "repairPanel");
tabbedPane.addTab("系统优化", new ImageIcon("pictureIcon/youhua2@2x.png"), repairPanel, "repairPanel");
tabbedPane.setEnabledAt(0, true);
tabbedPane.setFont(new Font("微软雅黑", Font.PLAIN, 22));
tabbedPane.setFont(new Font("微软雅黑", Font.PLAIN, 25));
tabbedPane.setForegroundAt(0, new Color(30, 144, 255));
tabbedPane.addChangeListener(this);
repairPanel.setLayout(null);
@ -219,7 +219,7 @@ public class SwingFrame extends JFrame implements ActionListener, ChangeListener
memoryPanel.setAlignmentX(Component.LEFT_ALIGNMENT);
memoryPanel.setForeground(Color.WHITE);
memoryPanel.setBackground(Color.WHITE);
tabbedPane.addTab("调整内存", new ImageIcon("pictureIcon/Rectanglex 2.png"), memoryPanel, "memoryPanel");
tabbedPane.addTab("调整内存", new ImageIcon("pictureIcon/Rectanglex 2@2x.png"), memoryPanel, "memoryPanel");
tabbedPane.setEnabledAt(0, true);
tabbedPane.setFont(new Font("微软雅黑", Font.PLAIN, 22));
tabbedPane.addChangeListener(this);
@ -319,7 +319,7 @@ public class SwingFrame extends JFrame implements ActionListener, ChangeListener
backupsPanel = new JPanel();//数据库备份、还原面板
backupsPanel.setBackground(Color.WHITE);
tabbedPane.addTab("数据份", new ImageIcon("pictureIcon/shujukubeifen.png"), backupsPanel, "backupsPanel");
tabbedPane.addTab("数据份", new ImageIcon("pictureIcon/shujukubeifen@2x.png"), backupsPanel, "backupsPanel");
tabbedPane.setEnabledAt(0, true);
tabbedPane.setFont(new Font("微软雅黑", Font.PLAIN, 22));
tabbedPane.addChangeListener(this);
@ -414,7 +414,7 @@ public class SwingFrame extends JFrame implements ActionListener, ChangeListener
Panel upgradePanel = new Panel();//系统升级面板
upgradePanel.setBackground(Color.WHITE);
tabbedPane.addTab("系统升级", new ImageIcon("pictureIcon/syq-unselect.png"), upgradePanel, "upgradePanel");
tabbedPane.addTab("系统升级", new ImageIcon("pictureIcon/syq-unselect@2x.png"), upgradePanel, "upgradePanel");
tabbedPane.setEnabledAt(0, true);
tabbedPane.setFont(new Font("微软雅黑", Font.PLAIN, 22));
tabbedPane.addChangeListener(this);

Loading…
Cancel
Save