msg.java
来自「这是个用java写的qq的多线程聊天的功能,有客户段和服务端,在eclipse里」· Java 代码 · 共 27 行
JAVA
27 行
package smoker.tools;
import javax.swing.*;
public class Msg {
public static void show(Object msg) {
JOptionPane.showMessageDialog(null, msg, "Smoker Team 提醒您",
JOptionPane.OK_OPTION);
}
public static void showOk(Object msg) {
ImageIcon image = new ImageIcon("image/ok.png");
Object[] obj = new Object[]{"确定"};
JOptionPane.showOptionDialog(null, msg, "Smoker Team 提醒您", JOptionPane.OK_OPTION, JOptionPane.WARNING_MESSAGE, image,obj,null);
}
public static int showSel(Object msg) {
int ret = JOptionPane.showConfirmDialog(null, msg, "确认", JOptionPane.YES_NO_OPTION);
return (ret == JOptionPane.YES_OPTION)? 0 : 1;
}
public static String showInput(Object msg) {
return JOptionPane.showInputDialog(null, msg, "Smoker Team 提醒您", JOptionPane.INFORMATION_MESSAGE);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?