I am trying to create a equally spaced menu inside a JFrame. By unequally spaced menu, I mean that the width of the menu item varies with the text that we put into that menu.Right now, my menu looks like this :

I would like my menu to look something like this

Can I do that ? Do I need to use layout managers to do that ?
Set the preferred size on each menu item to be the same.