@Override
protected WebBrowserDecorator createWebBrowserDecorator(Component renderingComponent) {
return createCustomWebBrowserDecorator(this, renderingComponent);
}
};
webBrowser.navigate("http://www.google.com");
webBrowserPanel.add(webBrowser, BorderLayout.CENTER);
contentPane.add(webBrowserPanel, BorderLayout.CENTER);
JPanel southPanel = new JPanel();
southPanel.setBorder(BorderFactory.createTitledBorder("Global change of decorator to customize a whole application"));
JButton setCustomButton = new JButton("Set custom decorator for all instances");