Hey all,
I am having trouble getting a JSeparator to show up inside of a JToolBar. My toolbar is created as follows :
public class ToolBar extends JToolBar {
super();
FlowLayout layout = new FlowLayout(FlowLayout.LEFT, 10, 5);
setLayout(layout);
add(new JButton("Button 1"));
addSeparator();
add(new JButton("Button 2"));
add(new JButton("Button 3"));
addSeparator();
// Show
setVisible(true);
setFloatable(false);
}
Any thoughts would be really appreciated, I have been trying to get this to work for way too long now >(