import java.awt.BorderLayout; 
import java.net.URL; 

import javax.swing.JFrame; 
import javax.swing.JLabel; 
import javax.swing.plaf.basic.BasicHTML; 

public class SwingApp { 
    private JFrame frame; 

    public static void main(String[] args) { 
        try { 
        	SwingApp window = new SwingApp(); 
            window.frame.setVisible(true); 
        } catch (Exception e) { 
            e.printStackTrace(); 
        } 
    } 

    public SwingApp() { 
        initialize(); 
    } 

    private void initialize() { 
        frame = new JFrame(); 
        frame.setBounds(100, 100, 450, 300); 
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
         
        // This Label cause an exception 
        try { 
JLabel broken = new JLabel(); 
broken.putClientProperty(BasicHTML.documentBaseKey, new URL("https://www.google.com/")); 
broken.setText("<html><img src=''/></html>"); 
frame.add(broken, BorderLayout.EAST); 
        } catch (Exception ex) { 
        	ex.printStackTrace(); 
        } 
        frame.add(new JLabel("Test"), BorderLayout.CENTER); 
        frame.add(new JLabel("<html><img src=''/></html>"), BorderLayout.WEST); 
    } 
} 