Take a look at this image:
As you can see, I have a JSeparator between my "Auto Refreshing" JCheckBox and my "Show Column" menu, and my "Show Column" menu is wanting to be as far right as possible. Why is it not aligning itself to the left, like everything else before the JSeparator? And I can't seem to make it do so, here is my current code:
JCheckBox pulling = new JCheckBox("Auto Refreshing");
...
menuBar.add(pulling);
menuBar.add(new javax.swing.JSeparator(javax.swing.SwingConstants.VERTICAL));
JMenu showMenu = new JMenu("Show Column");
showMenu.setAlignmentX(Component.LEFT_ALIGNMENT);
menuBar.add(showMenu);