62,614
社区成员
发帖
与我相关
我的任务
分享
String msg = "asergre4545dgfdfg45";
String dateMonthMsg = "明细";
JOptionPane.showMessageDialog(null, msg, dateMonthMsg, JOptionPane.INFORMATION_MESSAGE);
// String msg = "asergre4545dgfdfg45";
String str1 = "<font color=\"blue\">asergre</font>",
str2 = "<font color=\"red\">4545</font>",
str3 = "<font color=\"blue\">dgfdfg可以吗?</font>", str4 = "<font color=\"red\">45</font>";
String msg = "<html>" + str1 + str2 + str3 + str4 + "</html>";
String dateMonthMsg = "明细";
JOptionPane.showMessageDialog(null, msg, dateMonthMsg,
JOptionPane.INFORMATION_MESSAGE);