|
-
Feb 26th, 2004, 12:12 PM
#1
Thread Starter
Addicted Member
Java Action
Hello
I started to play with and use the Java Action, which is supposeldy a nice way of sharing attributes between Buttons and Menus and the like, they take there text and images from the action, and the neat thing is you disable the action, and it disables the component that the action is sat in.
Marvellous i thought.....
except, and i might be missing something.. I add my action to a JMenuItem and a JButton
the JButton is on a toolbar the menu ina menu, how do i supress the Text on the Jbutton and or toggle between no text showing and the action provided text showing? seems like a sebsible request i think?!
Any ideas?
Cheers in advance
Andy
-
Feb 26th, 2004, 06:05 PM
#2
This is strange. I have an XML-based UI system which generates the actions, menu items and buttons for me. The buttons don't show the text, they just show the image.
I use JToolBar.add(Action) though.
Last edited by CornedBee; Feb 26th, 2004 at 06:26 PM.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Feb 27th, 2004, 03:43 AM
#3
Thread Starter
Addicted Member
ah hah!
in thats case its my fault!, i thought you had to make buttons and then add them to the toolbar, i never even considered adding the action to the toolbar instead!
D'OH!!!!
marvellous, thanks you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|