import javax.swing.*;
/**
*在swing组建中使用html标签
*@author Eastsun
*/
public class UnderLine extends JFrame{
public UnderLine(){
super(/"JLabel中显示下划线/");
JLabel label =new JLabel(/"<html><u>下划线</u>,看到没?</html>/");
add(label);
setSize(320,240);
}
public static void main(String[] args){
JFrame frame =new UnderLine();
frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
frame.setVisible(true);
}
}