// Path: src/lib/jxbrowser-5/demo/src/com/teamdev/jxbrowser/chromium/demo/resources/Resources.java
// public class Resources {
// 
//     public static ImageIcon getIcon(String fileName) {
//         return new ImageIcon(Resources.class.getResource(fileName));
//     }
// }


import com.teamdev.jxbrowser.chromium.demo.resources.Resources;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
        System.setProperty("com.apple.mrj.application.apple.menu.about.name", "JxBrowser Demo");
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        JPopupMenu.setDefaultLightWeightPopupEnabled(false);
    }

    public static void main(String[] args) throws Exception {
        initEnvironment();
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                initAndDisplayUI();
            }
        });
    }

    private static void initAndDisplayUI() {
        final TabbedPane tabbedPane = new TabbedPane();
        insertTab(tabbedPane, TabFactory.createFirstTab());
        insertNewTabButton(tabbedPane);

        JFrame frame = new JFrame("JxBrowser Demo");
        frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        frame.addWindowListener(new WindowAdapter() {
            @Override
            public void windowClosing(WindowEvent e) {
                tabbedPane.disposeAllTabs();
            }
        });
        frame.add(tabbedPane, BorderLayout.CENTER);
        frame.setSize(1024, 768);
        frame.setLocationRelativeTo(null);
// Path: src/lib/jxbrowser-5/demo/src/com/teamdev/jxbrowser/chromium/demo/resources/Resources.java
// public class Resources {
// 
//     public static ImageIcon getIcon(String fileName) {
//         return new ImageIcon(Resources.class.getResource(fileName));
//     }
// }


// Path: src/lib/jxbrowser-5/demo/src/com/teamdev/jxbrowser/chromium/demo/JxBrowserDemo.java
import com.teamdev.jxbrowser.chromium.demo.resources.Resources;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

        System.setProperty("com.apple.mrj.application.apple.menu.about.name", "JxBrowser Demo");
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        JPopupMenu.setDefaultLightWeightPopupEnabled(false);
    }

    public static void main(String[] args) throws Exception {
        initEnvironment();
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                initAndDisplayUI();
            }
        });
    }

    private static void initAndDisplayUI() {
        final TabbedPane tabbedPane = new TabbedPane();
        insertTab(tabbedPane, TabFactory.createFirstTab());
        insertNewTabButton(tabbedPane);

        JFrame frame = new JFrame("JxBrowser Demo");
        frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        frame.addWindowListener(new WindowAdapter() {
            @Override
            public void windowClosing(WindowEvent e) {
                tabbedPane.disposeAllTabs();
            }
        });
        frame.add(tabbedPane, BorderLayout.CENTER);
        frame.setSize(1024, 768);
        frame.setLocationRelativeTo(null);
        frame.setIconImage(Resources.getIcon("jxbrowser16x16.png").getImage());