Browse Source

KERNEL-1117 删除BaseKit和GUICoreKit,BaseKit内容在IOKit中实现,GUICoreKit换了位置

master
Kalven 5 years ago
parent
commit
4223f6f0bb
  1. 26
      src/main/java/com/fanruan/api/util/BaseKit.java
  2. 24
      src/main/java/com/fanruan/api/util/GUICoreKit.java

26
src/main/java/com/fanruan/api/util/BaseKit.java

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

24
src/main/java/com/fanruan/api/util/GUICoreKit.java

@ -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);
}
}
Loading…
Cancel
Save