dcsimg

How do I add a separator to a JToolBar?

John Zukowski

Just call the addSeparator() method to create one of the default size, or provide a Dimension as an optional size argument. The separator will be added to the end of the toolbar.