by JIDE Support » Thu Jul 24, 2008 1:37 pm
Wll, no one said JMenu only can be used in JMenuBar or JPopupMenu. JideSplitButton has features similar to what JMenu has so why not leverage that.
It is pretty complex thing when you deal with different parents. JideSplitPane and JideMenu, not only can be used on JMenuBar, JPopupMenu, but also can be used JToolBar, CommandBar or any JPanel. For example, JMenu will have a drop down arrow if it is not on JMenuBar. To be frank, that's still not completely done.
The paint arrow shouldn't be part of the paint background. It should be in its own method. Actually I would love to see a better way to paint the arrow and the divider line. It doesn't work very good.
Thanks,
JIDE Software Technical Support Team