Hello, configuring the toolbar with action-classes (also needed for
menu, popupmenu) I assumed that the Action.Name is not shown at the
toolbar buttons right from the icons. They are shown as assumed right
from the icons at the menuitems. I can see that also in an example of
an ActionDemo by Mark Davidson ("Using Swing Action Architecture").
But instead of what I assumed and can see in the demo I get the the
Action.Name also(?) shown right from the icon in my toolbar button,
where they should of course not appear (the icon itself is enough). But
I cant figured out why it is shown in my example(tried button and
togglebutton) and not in the ActionDemo example. Both setting
Action.Name and then configure menu and toolbar simple via this action
classes. And I cant set Action.Name to empty because it is needed in
the menu. What is the trick?!
Does anyone know about that or has a solution ?
tdev@freenet.de - 04 Jan 2005 17:33 GMT
I could it answer myself, but I wonder still a little about this
behaviour:
Mark adds the action class directly to the toolbar instead of
configuring a menutitem via the action class and then adding the
menuitem to the toolbar.
Maybe someone has a comment about?!