posted 12 years ago
JMenu chartOptions = new JMenu("<html><font face=Georgia, Arial color=black><b>"
+ "Chart Options</b></font></html>");
chartOptions.setMargin(new Insets(0,50,0,50));
bar.add(chartOptions);
You can add the insets to the bar itself, but then it makes the menu bar larger. Insets are same as GridBag Layout. First Integer is number of pixels from the top, the second is from the left, the third is from the bottom, and the fourth from the right.
Hope this helps.