File tree Expand file tree Collapse file tree
src/main/java/com/xwintop/xJavaFxTool Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com .xwintop .xJavaFxTool ;
22
3+ import cn .hutool .system .SystemUtil ;
34import com .xwintop .xJavaFxTool .controller .IndexController ;
45import com .xwintop .xJavaFxTool .utils .Config ;
56import com .xwintop .xJavaFxTool .utils .Config .Keys ;
@@ -41,8 +42,10 @@ public void start(Stage primaryStage) throws Exception {
4142 FxApp .init (primaryStage , LOGO_PATH );
4243 FxApp .styleSheets .add (XJavaFxToolApplication .class .getResource ("/css/jfoenix-main.css" ).toExternalForm ());
4344
44- //设置dock栏图标
45- Taskbar .getTaskbar ().setIconImage (ImageIO .read (XJavaFxToolApplication .class .getResourceAsStream (LOGO_PATH )));
45+ if (SystemUtil .getOsInfo ().isMac ()) {
46+ //Mac下设置dock栏图标
47+ Taskbar .getTaskbar ().setIconImage (ImageIO .read (XJavaFxToolApplication .class .getResourceAsStream (LOGO_PATH )));
48+ }
4649
4750 primaryStage .setResizable (true );
4851 primaryStage .setTitle (RESOURCE_BUNDLE .getString ("Title" ) + Config .xJavaFxToolVersions );
Original file line number Diff line number Diff line change 11package com .xwintop .xJavaFxTool .utils ;
22
3- import cn .hutool .http .HttpRequest ;
43import cn .hutool .http .HttpUtil ;
54import com .alibaba .fastjson .JSON ;
65import com .alibaba .fastjson .JSONObject ;
You can’t perform that action at this time.
0 commit comments