From 4223f6f0bbfdad77dc0f4975072e04da49db7afa Mon Sep 17 00:00:00 2001 From: Kalven Date: Tue, 27 Aug 2019 10:00:58 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-1117=20=E5=88=A0=E9=99=A4BaseKit?= =?UTF-8?q?=E5=92=8CGUICoreKit=EF=BC=8CBaseKit=E5=86=85=E5=AE=B9=E5=9C=A8I?= =?UTF-8?q?OKit=E4=B8=AD=E5=AE=9E=E7=8E=B0=EF=BC=8CGUICoreKit=E6=8D=A2?= =?UTF-8?q?=E4=BA=86=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fanruan/api/util/BaseKit.java | 26 ------------------- .../java/com/fanruan/api/util/GUICoreKit.java | 24 ----------------- 2 files changed, 50 deletions(-) delete mode 100644 src/main/java/com/fanruan/api/util/BaseKit.java delete mode 100644 src/main/java/com/fanruan/api/util/GUICoreKit.java diff --git a/src/main/java/com/fanruan/api/util/BaseKit.java b/src/main/java/com/fanruan/api/util/BaseKit.java deleted file mode 100644 index 7206d1f..0000000 --- a/src/main/java/com/fanruan/api/util/BaseKit.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.fanruan.api.util; - -import com.fr.base.BaseUtils; - -import javax.swing.*; -import java.io.InputStream; - -public class BaseKit { - /** - * 从file中读数据,以流的形式读出数据 - * @param file - * @return 返回file文件,文件数据流 - */ - public static InputStream readResource(String file) { - return BaseUtils.readResource(file); - } - - /** - * 从file中读取数据,根据数据返回Icon图片 - * @param file - * @return 返回Icon图片 - */ - public static Icon readIcon(String file) { - return BaseUtils.readIcon(file); - } -} diff --git a/src/main/java/com/fanruan/api/util/GUICoreKit.java b/src/main/java/com/fanruan/api/util/GUICoreKit.java deleted file mode 100644 index 4914cfc..0000000 --- a/src/main/java/com/fanruan/api/util/GUICoreKit.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.fanruan.api.util; - -import com.fr.design.utils.gui.GUICoreUtils; - -import javax.swing.*; -import java.awt.*; - -public class GUICoreKit { - - public static JPanel createFlowPane(Object... var0) { - return GUICoreUtils.createFlowPane(var0); - } - - /** - * 弹出菜单,在坐标为x,y处弹出内容为component的菜单 - * @param menu - * @param component - * @param x - * @param y - */ - public static void showPopupMenu(JPopupMenu menu, Component component, int x, int y) { - GUICoreUtils.showPopupMenu(menu, component, x, y); - } -}