Adobe-like submenus for buttons in a toolbar
Hi all,
I'm creating a drawing tool which has a set of tools in a toolbar -- i.e. free-hand, rectangle, circle etc. These are all implemented as JToggleButtons.
I'd now like to extend these so that clicking on them for a period of time, e.g. 0.5 secs, pulls up a sub-menu of versions of that tool, e.g. filled-in rectangle vs. empty rectangle. Regular clicking would give you the currently selected version of that tool. This would be very much like the toolbars in Adobe Photoshop, The Gimp or similar applications.
Are there existing Swing classes for doing stuff like this? I could probably hand-code most of it myself, but this seems like a common functionality, so at least some of it must have been done before.
How would you recommend I go about implementing this?
Thanks!
Sam
Are there existing Swing classes for doing stuff like this?Nope. It's just possible that there may be something open-source available, but I reckon you must have searched the net before posting here. Or if you didn't, then you should have.
How would you recommend I go about implementing this?With patience and dedication.
db
Similar Messages
-
How to find function code for buttons on toolbar in oops alv
Hi experts,
I want to remove some buttons from toolbar in oops alv, i know the procedure like get function code and pass the value in a table and pass that table to IT_TOOLBAR_EXCLUDING of
method set_table_for_first_display but I WANT TO KNOW HOW TO FIND FUNCTION CODE FOR BUTTONS ON TOOLBAR IN OOPS ALVHi Prakash,
-->First you have to set the pf status in your alv program by,
{FORM pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'FIRST'.
ENDFORM. "PF_STATUS}
-->Pass this Subroutine name in the Function module, Reuse_alv_grid_display's parameters i.e,
i_callback_pf_status_set = 'PF_STATUS'}
*-->Then doble click on that pf status,
From the menu bar, select Extras->Adjust Template->List Viewer,
This will give you the existing statndard gui status of the program*
->Then catch that function codes in the User command Parameter of the Function module Reuse.. i.e,
i_callback_user_command = 'COMM'
And make a subroutine of the name 'COMM'i.e,
FORM comm USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
DATA: okcode TYPE sy-ucomm.
okcode = ucomm.
CASE okcode.
WHEN 'REF'.
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = 'MANSI'
txt1 = 'CREATED BY'
txt2 = SY-UNAME
TXT3 = ' '
TXT4 = ' '
endcase.
Hope it helps you
Regrds
Mansi -
Reminder: Adobe needs users for Flash video & button task studies - get an Amazon gift card
Adobe is looking for participants for a brief (~1 hour) online work observation and interview. Compensation will be a $100 Amazon gift card.
There are two sets of criteria, each applying to a different study. Read the criteria *carefully* before responding. Also, it is important to indicate in the subject line of your response which one of the two studies you meet the criteria for and wish to participate in.
There will be 2 studies of Flash workflows. One is about deploying video content in Flash. The other is about creating a button to perform some control of the Timeline. The studies will be conducted over the telephone and Adobe Connect (software for screen sharing).
For the video study, participants must meet the following criteria:
- some experience with Flash CS4
- some experience viewing video on the Web
- no experience using video in Flash
- have any version of Creative Suite 4 or Flash Professional CS4 installed (with most recent updates) on a computer that can be connected to the Internet
- ability and willingness to install and use Acrobat Connect on the same computer as the above software
- a 90-minute block of free time between 9am and 5pm Pacific Time on a weekday.
If you meet these requirements and would like to participate in this study, please contact me at jarmstrong [at] adobe [dot] com, with the subject line "Flash video study".
For the button study, participants must meet the following criteria:
- some experience with Flash CS4
- no experience creating buttons in Flash
- have any version of Creative Suite 4 or Flash Professional CS4 installed (with most recent updates) on a computer that can be connected to the Internet
- ability and willingness to install and use Acrobat Connect on the same computer as the above software
- a 90-minute block of free time between 9am and 5pm Pacific Time on a weekday
If you meet these requirements and would like to participate in this study, please contact me at jarmstrong [at] adobe [dot] com, with the subject line "Flash button study".
Participants in these studies will be thanked profusely in addition to receiving the Amazon gift card.
Jay Armstrong
Flash Professional documentation lead
Adobe Systems@Karl, Thanks. If you are interested in participating, please send me an email as instructed in the original post. - Jay
-
Adobe needs users for video and button workflow studies - get an Amazon gift card
Adobe is looking for participants for a brief (~1 hour) online work observation and interview. Compensation will be a $100 Amazon gift card.
The studies involve users who are in the beginning/novice stages of learning Flash Professional, or more experienced users who have not yet done the workflows being studied.
There are two sets of criteria, each applying to a different study. Please read the criteria carefully before responding. Also, it is important to indicate in the subject line of your response which one of the two studies you meet the criteria for and wish to participate in.
There will be 2 studies of Flash workflows. One is about deploying video content in Flash. The other is about creating a button to perform some control of the Timeline. The studies will be conducted over the telephone and Adobe Connect (software for screen sharing).
For the video study, participants must meet the following criteria:
- some experience with Flash CS4
- some experience viewing video on the Web
- no experience using video in Flash
- have any version of Creative Suite 4 or Flash Professional CS4 installed (with most recent updates) on a computer that can be connected to the Internet
- ability and willingness to install and use Acrobat Connect on the same computer as the above software
- a 90-minute block of free time between 10:00 and 16:00 Pacific Time (GMT-8) on a weekday during the first two weeks of August (3August-14August).
If you meet these requirements and would like to participate in this study, please contact me at jarmstrong [at] adobe [dot] com, with the subject line "Flash video study".
For the button study, participants must meet the following criteria:
- some experience with Flash CS4
- no experience creating buttons in Flash
- have any version of Creative Suite 4 or Flash Professional CS4 installed (with most recent updates) on a computer that can be connected to the Internet
- ability and willingness to install and use Acrobat Connect on the same computer as the above software
- a 90-minute block of free time between 10:00 and 16:00 Pacific Time (GMT-8) on a weekday during the first two weeks of August (3August-14August).
If you meet these requirements and would like to participate in this study, please contact me at jarmstrong [at] adobe [dot] com, with the subject line "Flash button study".
Participants in these studies will be thanked profusely in addition to receiving the Amazon gift card.@Karl, Thanks. If you are interested in participating, please send me an email as instructed in the original post. - Jay
-
Just updated to iCloud, but I can't find the 'purchased' list on the iTunes store on my iPhone. There's no button for it on the toolbar or under the 'more' option. Want to play/download my puchased music via iCloud on my iPhone.... Help someone please?!
Hi again Limons,
just got your last reply per mail, re: 'presently only available in the USA.'
Unfortunately, you're right. Just found this article: http://www.digitalmusicnews.com/stories/061011icloud
seem like it's going to be a while before this gets sorted out . . .
Frustrating outcome to my question, but thanks a lot for helping me sort out what the problem was :-)
All the best to you. -
How to Add button in Application Toolbar for Fb01(screen) Transaction
Hi All,
I need to Add a customized Button at Application toolbar for FB01 Tcode for standard screen.
I am unaware of this,please take it as an urgent issue and help me with your inputs.
Points will be given.
Thanks,
RameshOn which screen (in which standard status ?) to do what ?
You could try to bypass sscr key requirement using some BAdI like FI_HEADER_SUB_1300 to add a button to screen or identifying an implicit enhancement option in one PBO module/form to change PF-STATUS, then look for such an option in PAI module/forms.
Regards,
Raymond -
I buy adobe creative suite for teachers and students about one year ago but now i'm not longer a student. Can I still use this programs legally for commercial purposes or do I have to buy some upgrades or something like this? Please help
The license did not have use restrictions Licenses and terms of use | Adobe
BUT... when your one year Education account ends, I do not think you will be able to renew at the Education rate -
How to add a custom button on Application Toolbar for ME21N, ME22N & ME23N
Hi Experts,
I am new to this forum. I hope someone will help me.
My Requirement is as :
I want to add a new custom button on Application Toolbar for ME21N, ME22N & ME23N.
There are already standard buttons in this toolbar which is Document Overview On, Hold, Personal Settings etc.
So after the 'personal settings' button i want add a new button and want to write a code which will open one custom screen.
I am not able to find any exit for this....
Please help...
Thanks....Hey Buddies
Try below BADI : ME_PROCESS_PO_CUST
and check with required methods.
1)PROCESS_ITEM
2)CHECK
3)POST
Regards,
Pranav -
I am confused as to how to connect my external start botton. I would like it to function like a start button on a front panel of a VI. I would like to use the +5V on pin 14 but I really don't know where to go from here. Any guidence for a novice would be most appreciated.
phod,
This is the LabVIEW Real-Time forum, so I suggest that in the future that you post this type of question to the Multifunction DAQ forum.
For the simplest solution you will have to connect your button to a digital line of your board, consult the sc-2345 user manual for a diagram of where these lines are exposed. You will have to connect your start button in series with a line that is high, such as your 5V pin or another digital line. Then connect this to a digital line that will be your start trigger.
Your program can poll the digital line that is connected to your button in a while loop and when it goes high, it lets the rest of the program execute. For the programming, I suggest you take a look at the shipping examples that come with LabVIEW. If yo
u have LabVIEW 7.0 go to Help>>Find Examples. Open Hardware Input Output>>Traditional DAQ>>Digital Input and Output>>E Series for some examples of digital I/O programming with E-series boards.
Hope that gets you started.
Gerardo -
I installed Adobe Web and Design Preium CS6 on windows 8.1, but when I open the program the size of the menus and tools are so tiny. It is not like that for Acrobat, but all the other programs. Is there a fix for this?
Thanks for the help. I installed CC and it fixed everything but Photoshop. I guess I will have to use my old laptop for images until Adobe fixes the problem. Do you know of a place where we can send issues like these to Adobe?
-
I have bought adobe elements 11 for my laptop although my laptop has died and I have recently bought a desktop computer. I would now like to download it onto my desktop computer although I can't find the disc. I have found my serial number through my account. Is there any way of downloading it without the disc?
You can download the software from https://helpx.adobe.com/download-install.html (near the bottom).
-
I went to the website and it said it downloaded, but when I click on the button in my Toolbar, nothing happens. I seen on a search engine that they make "Print Friendly" for Firefox now. Can you tell me where to find it, how to put the button in my Toolbar? I must be doing something or not doing something for it not to be working for me. I am not real computer friendly but I'm not a beginner either. So if you dont mind Please explain to me how to fix this issue in relatively easy step by step instructions. Thank you for your time, Sheybiker
Is this what you are looking for? <br />
http://www.printfriendly.com/browser_tool
'''Click and Drag''' the Print Friendly button to your Bookmarks Toolbar. -
i would like to update adobe flash but not install the google toolbar, no option to do so, I had to abort the update. thank you.
When I do the update, I get a request about google and decline. I am not sure why you do not get such a selection. To get better information, try the Flash forum.
-
I would like to create a form that gives the user opportunities to provide information on as many as 50 projects. Does Adobe FormsCentral allow for this "expandable" type of form, such that if someone only has 10 projects, they can complete the form as easily as someone with 50 projects. In other words, is there a way to make the form "expandable?"
Hi Ms Buckner,
Yes, you can do this with the Show/Hide "Skip" logic rules.
1. Suppose, for example, you have your first ten projects showing by default.
2. At the end of those fields, you would have a Yes/No question asking if the person wanted to add more projects.
3. If they answer "No", they move on to the next section/area/question/etc.
4. If they answer "Yes" you have the form display ten more project fields that you had already included, but you had hidden up to this point.
5. Repeat steps two, three, and four as often as needed. (It helps that you can copy and paste fields, including groups of questions, so you don't have to manually re-create them each time.)
It means you must anticipate the maximum number of times you want to provide project fields, but you've already done that, and you have to build the form with that maximum number, but only display smaller portions at a time until they have filled in all they need.
I hope that helps,
Brian -
It looks like the new Adobe Color is for iPad / iPhone only. Why isn't it available for desktop use like Kuler?
Kuler server seems to have been turned off. Why? Kuler and colour themes were very useful.Adobe Color CC
Maybe you are looking for
-
How can I get all the stuff from my old iPad 2 to my new iPad 2? I have an apple id and have synced and backed up my old iPad 2 regularly.
-
Oracle Query failing for multiple rows:
Hey Guys, I have been given a task to produce an ad-hoc report based on the following conditions (I will give you the structure of the table and details in the table below the requirements) Requirements: Adhoc Report for Audit on CIT Income Allocatio
-
Charging switches on and off repeatedly
Hi, I have the following problem: Sometimes when I connect my iphone4S, ipad2 or ipadair with a USB to my MacBook Pro (Jan 2014, OSX Mavericks), it does not charge properly. What happens it that the charging signal seems to appear and immediatly to v
-
Help! Need to save data from field point in excel sheet!!!
Hey colleagues, I need help. I am writing on my diploma thesis.Main topic is to develop a visualization of a process of a process plant which is used for an internship in uni. My meain problem is that I need a vi where I can save my fieldpoint data o
-
Downgrade from Dreamweaver CS4 to Cs3?
Is there any way to downgrade from Dreamweaver CS4 to CS3? I've looked all over and can't find anything on this subject. (I tried to find a new copy of CS3, but encountered a host of problems of one description or another, and I don't want to pirate