import java.awt.Color; 
import java.awt.Cursor; 
import java.awt.Font; 
import java.awt.font.TextAttribute; 
import java.util.Map; 

import javax.swing.JButton; 
import javax.swing.JDialog; 
import javax.swing.JFrame; 
import javax.swing.JLabel; 
import javax.swing.JLayeredPane; 
import javax.swing.JPanel; 
import javax.swing.JTabbedPane; 
import javax.swing.SwingUtilities; 
import javax.swing.UIManager; 
import javax.swing.UnsupportedLookAndFeelException; 

import com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel; 
import com.sun.java.swing.plaf.windows.WindowsLookAndFeel; 
import java.awt.BorderLayout;

public class JLabelWithoutUnderline extends JDialog { 
    public JLabelWithoutUnderline () { 
        begin(); 
    } 

    private void begin() { 

        try { 

            //UIManager.setLookAndFeel(new WindowsClassicLookAndFeel()); 
             UIManager.setLookAndFeel(new WindowsLookAndFeel()); 

        } catch (UnsupportedLookAndFeelException e) { 
            e.printStackTrace(); 
        } 
         
        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); 
        setLayout(new BorderLayout()); 
         
        JLabel text = new JLabel("<html><u>Some text</u>"); 
        text.setBounds(0, 0, 100, 30); 
        add(text, BorderLayout.CENTER); 

        pack(); 
        setBounds(0, 0, 500, 400); 
        setLocationRelativeTo(null); 
        setVisible(true); 
    } 
    public static void main(String[] args) { 
        SwingUtilities.invokeLater(new Runnable() { 

            @Override 
            public void run() { 
                JLabelWithoutUnderline frame = new JLabelWithoutUnderline (); 

            } 

        }); 
    } 
} 