|
|
@ -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); |
|
|
|