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

posted on 2011-05-14 18:07  星^_^風  阅读(306)  评论(0编辑  收藏  举报