forked from fanruan/finekit
Kalven
5 years ago
2 changed files with 0 additions and 50 deletions
@ -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); |
||||
} |
||||
} |
@ -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…
Reference in new issue