| | |
| | | public static final boolean APP_IEC61850_EN = true; //IEC61850 |
| | | public static final boolean APP_UKEY_EN = true; //UKEY |
| | | |
| | | public int CommDevType = 7; //默认显示tab选项卡 |
| | | public int CommDevType = 8; //默认显示tab选项卡 |
| | | |
| | | public static final int DebugMode_TYPE_Debug = 0; //调试模拟 |
| | | public static final int DebugMode_TYPE_Package = 1; //电脑打包模式 |
| | |
| | | frmSerialport.setFont(new Font("宋体", Font.PLAIN, 12)); |
| | | //frmSerialport.setResizable(false); |
| | | |
| | | frmSerialport.setIconImage(Toolkit.getDefaultToolkit().getImage(main_window_computer.class.getResource("/main/12164006.png"))); |
| | | frmSerialport.setIconImage(Toolkit.getDefaultToolkit().getImage(main_window_computer.class.getResource("/main/fuguang.png"))); |
| | | frmSerialport.setBounds(100, 100, 1180, 640); |
| | | frmSerialport.setMinimumSize(new Dimension(1160, 640)); |
| | | //frmSerialport.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); |
| | |
| | | } |
| | | } |
| | | |
| | | //设置首页按钮样式 |
| | | public void setButtonType(JButton button) { |
| | | button.setBorder(null); |
| | | //设置文本在图片下方 |
| | | button.setHorizontalTextPosition(SwingConstants.CENTER); |
| | | button.setVerticalTextPosition(SwingConstants.BOTTOM); |
| | | |
| | | button.setFont(new Font("宋体", Font.PLAIN, 18)); |
| | | } |
| | | |
| | | public void setJTableSelectIndex(int jt_index) { |
| | | if(jt_index < main_TabbedPane.getTabCount() && jt_index >= 0) { |
| | | main_TabbedPane.setSelectedIndex(jt_index); |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | } |