Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't see separators on Jmenu



I complained that I couldn't see the separators in my Jmenus.

On 12 Sep 2006, at 20:04 Sciss replied:


what separators are you using? i have no problems (using either
explicitly an instance of JSeparator or implicitly JMenu.addSeparator())

This is a snippet of my code:

		JMenuBar menuBar = new JMenuBar();

		fileMenu =new JMenu("File");
		menuBar.add(fileMenu);

openFile = new JMenuItem("Open File");
openFile.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, Event.META_MASK));
fileMenu.add(openFile);
openFile.setEnabled(false);
openFile.addActionListener(this);

fileMenu.addSeparator();


I didn't know that there was a JSeparator - not in my rather ancient edition of Geary. Perhaps I should try an explicit instance of that.

David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.