A fix is available for this:
 jMenuBar.add(Box.createHorizontalGlue()); 
Add this line before adding the menu to the menu, and your menu will appear on the right side of the menu. Something like:
 ..... jMenu1.setText("About"); jMenuBar1.add(Box.createHorizontalGlue()); <-- horizontal glue jMenuBar1.add(jMenu1); ..... 
Harry joy 
source share