package org.lanseg.demos;

import java.awt.GridLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JTabbedPane;

public class StyledComponentsDemo extends JFrame {

    public StyledComponentsDemo() {
        setSize(800, 600);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setLayout(new GridLayout(2, 2));
        add(new JButton("<html><center><b><u>B</u>utton</b><br><font color=#FF00FF>Second line</font>"));
        add(new JRadioButton("<html><b>RadioHtmlButton</b></html>"));
        JTabbedPane tabs = new JTabbedPane();
        tabs.addTab("<html><b>T</b>ab", new JPanel());
        add(tabs);
        add(new JComboBox(new String[]{"<html>Html String<b>!!!</b></html>"}));
        
    }
    
    public static void main(String[] args) {
        new StyledComponentsDemo().setVisible(true);
    }
    
}
