package com.seaglasslookandfeel.demo;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JPanel;
import javax.swing.JToggleButton;
import javax.swing.JToolBar;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;

public class TestToolBar {

    public static void main(String[] args) {
        if (true) {
            try {
                // System.setProperty("SeaGlass.Override.os.name", "Windows");
                UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel");
            } catch (Exception e) {
                e.printStackTrace();
            }
        }

        SwingUtilities.invokeLater(new Runnable() {
            public void run() {

                JMenuBar mb = new JMenuBar();
                JMenu m1 = new JMenu("File");
                JMenu m2 = new JMenu("Edit");
                JMenu m3 = new JMenu("Help");
                mb.add(m1);
                mb.add(m2);
                mb.add(m3);

                JToolBar toolbar1 = makeToolBar("Toolbar1", JToolBar.HORIZONTAL);
                JToolBar toolbar2 = makeToolBar("Toolbar2", JToolBar.HORIZONTAL);
                JToolBar toolbar3 = makeToolBar("Toolbar3", JToolBar.VERTICAL);
                JToolBar toolbar4 = makeToolBar("Toolbar4", JToolBar.VERTICAL);

                JFrame frame = new JFrame("TestToolBar");
//                frame.setJMenuBar(mb);
                frame.getRootPane().putClientProperty("apple.awt.brushMetalLook", Boolean.TRUE);

                JPanel panel = new JPanel();
                panel.setBackground(Color.white);
                panel.add(new JLabel("Hi there!"));
                JButton open = new JButton("Open");
                panel.add(open);
                open.addActionListener(new ActionListener() {
                    JFrame newFrame;
                    public void actionPerformed(ActionEvent e) {
                        newFrame = new JFrame("New Window");
                        JPanel panel = new JPanel();
                        panel.setBackground(Color.white);
                        panel.add(new JLabel("Boo!"));
                        JButton close = new JButton("Close");
                        close.addActionListener(new ActionListener() {
                           public void actionPerformed(ActionEvent e) {
                               newFrame.dispose();
                           }
                        });
                        panel.add(close);
                        newFrame.add(panel, BorderLayout.CENTER);
                        newFrame.setSize(300, 200);
                        newFrame.setLocationRelativeTo(null);
                        newFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
                        newFrame.setVisible(true);
                    }
                });

                frame.getContentPane().add(toolbar1, BorderLayout.NORTH);
                frame.getContentPane().add(toolbar2, BorderLayout.SOUTH);
                frame.getContentPane().add(toolbar3, BorderLayout.WEST);
                frame.getContentPane().add(toolbar4, BorderLayout.EAST);
                frame.add(panel, BorderLayout.CENTER);
                frame.setSize(600, 600);
                frame.setLocationRelativeTo(null);
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                frame.setVisible(true);
            }

            /**
             * @return
             */
            private JToolBar makeToolBar(String name, int orientation) {
                JButton button1 = new JButton("Test 1");
                JToggleButton button2 = new JToggleButton("Test 2");
                JButton button3 = new JButton("Test 3");

                JToolBar toolbar = new JToolBar(name, orientation);

                JPanel foo = new JPanel();
                foo.add(button3);
                toolbar.add(button1);
                toolbar.addSeparator();
                toolbar.add(button2);
                toolbar.addSeparator();
                toolbar.add(foo);
                return toolbar;
            }
        });
    }

}

@@ -1566,18 +1566,16 @@
 lBar%22);%0A
-//
         
@@ -1752,58 +1752,8 @@
 ();%0A
-                panel.setBackground(Color.white);%0A
     

Add a menu bar.