| | |
| | | import org.apache.logging.log4j.LogManager; |
| | | import org.apache.logging.log4j.Logger; |
| | | import org.jvnet.substance.SubstanceLookAndFeel; |
| | | import org.jvnet.substance.border.StandardBorderPainter; |
| | | import org.jvnet.substance.button.ClassicButtonShaper; |
| | | import org.jvnet.substance.painter.ClassicGradientPainter; |
| | | import org.jvnet.substance.skin.CremeSkin; |
| | | import org.jvnet.substance.skin.SubstanceBusinessBlackSteelLookAndFeel; |
| | | import org.jvnet.substance.theme.SubstanceLightAquaTheme; |
| | | import org.jvnet.substance.theme.SubstanceTerracottaTheme; |
| | | import org.jvnet.substance.title.Glass3DTitlePainter; |
| | | import org.jvnet.substance.watermark.SubstanceFabricWatermark; |
| | | import org.jvnet.substance.watermark.SubstanceMetalWallWatermark; |
| | | |
| | | public class main_window { |
| | | public static final int CommDevType_MON = 0; |
| | |
| | | public static int LANG_TYPE_EN = 1; |
| | | |
| | | //public String mTitle = "MSP&SAM&SWM&Curr_V1.523_220424G"; |
| | | public String mTitle = "汇集模块调试工具_V1.523_220424G"; |
| | | public String mTitle = "汇集模块调试工具_V2.301_XT"; |
| | | |
| | | public static int LANG_TYPE = LANG_TYPE_CN; |
| | | public static final boolean APP_FBS9600_MON_EN = true; |
| | |
| | | } |
| | | } |
| | | |
| | | try { |
| | | /*try { |
| | | SubstanceLookAndFeel.setSkin(new CremeSkin()); |
| | | UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); |
| | | } catch (ClassNotFoundException | InstantiationException | IllegalAccessException |
| | | | UnsupportedLookAndFeelException e1) { |
| | | e1.printStackTrace(); |
| | | }*/ |
| | | |
| | | |
| | | /************ 设置软件调试软件样式 ***********************/ |
| | | try { |
| | | UIManager.setLookAndFeel(new SubstanceBusinessBlackSteelLookAndFeel()); |
| | | SubstanceLookAndFeel.setCurrentTheme(new SubstanceTerracottaTheme()); |
| | | SubstanceLookAndFeel.setCurrentButtonShaper(new ClassicButtonShaper()); |
| | | SubstanceLookAndFeel.setCurrentWatermark(new SubstanceFabricWatermark()); |
| | | SubstanceLookAndFeel.setCurrentBorderPainter(new StandardBorderPainter()); |
| | | SubstanceLookAndFeel.setCurrentGradientPainter(new ClassicGradientPainter()); |
| | | SubstanceLookAndFeel.setCurrentTitlePainter(new Glass3DTitlePainter()); |
| | | } catch (UnsupportedLookAndFeelException e1) { |
| | | e1.printStackTrace(); |
| | | } |
| | | /************************************/ |
| | | |
| | | /**************************************************************************/ |
| | | mMainFormTimer = new Timer(200, new ActionListener() { |