Custom text for JMenu and JMenuItem

hey guys
right now i can do a :
JMenu menu = new JMenu("File");but how can i customize the text on the Menu a.k.a "file" so may be it looks bigger or a different color ?
ive looked at the API i can see that JMenu takes "Action" object too which describes the look. I know Action is an interface and i havent been able to find a suitable class that implements this interface
so how should i go about changing the text look/feel ?
thank in advance

so may be it looks bigger or a different color ?Read the API. There are many different set??? methods which allow you to change the properties of the component including the font size and color of the text.
i can see that JMenu takes "Action" object too which describes the look.The Action has nothing to do with the look (other then providing the text to display). It has to do with the Action that happens when you select the menu item.

Similar Messages

  • Having custom text for 'Actual' and 'Target' in Funne chart

    Hi,
    We see 'Actual' and 'Target' label values in funnel chart when we hover the mouse on the chart.
    But i need to change the text to custom text for SINGLE graph. I dont want to chnage any xml or config files, I need this change in single report only.
    Appreciate all your posts which helps.
    Regards
    MuRam
    Edited by: MuRam on Dec 31, 2012 7:36 PM

    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • JMenu and JMenuItem - Images

    How to put an image in front of the JMenu text?
    JMenuItem has a constructor to insert the icon.
    Is their a reason why it not in the JMenu constructors?
    Sometimes I just want to put a 16 pixel gap in front of the JMenuItem or JMenu if it has no Image. Can one do that without inserting a blank
    Image?
    Thanks

    Have you tried just setting it via setIcon()? Since both JMenu and
    JMenuItem inherit from AbstractButton, this may work; I say may
    since more than likely it is up to the L&F UI to do the right thing.
    A quick browse shows that it ought to work for at least the basic
    L&Fs though.
    As far as the empty gap, looks like you might be out of luck by
    default, but this too is up to the L&F. For instance, some look and
    feels line up the text properly if an item doesn't have an icon.
    As a quick fix, though, you could probably just set the icon to
    something like
    menuItem.setIcon( new Icon() {
        public int getIconWidth() { return 16; }
        public int getIconHeight() { return 0; }
        public void paintIcon(Component c, Graphics g, int x, int y) {}
    });: jay

  • Custom text for tooltip in km resources

    Hi,
    Is there any way for creating custom text for tooltip in km resources...?
    regards
    Amit

    Amit,
    this requires java development.
    First you should look at the concept of creating a property renderer here:
    <a href="http://sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c739e546-0701-0010-53a9-a370e39a5a20">Knowledge Management Articles</a>
    <b>-> How to Implement Flexible UI Components -> Property Renderer</b>
    Here is also good info (the SDN forum is "full" of "custom property renderer" threads):
    <a href="https://www.sdn.sap.com/irj/sdn/thread?forumID=42&threadID=183716&messageID=2054302">https://www.sdn.sap.com/irj/sdn/thread?forumID=42&threadID=183716&messageID=2054302</a>
    Now I would suggest creating the project for your custom property renderer as described in second link, finding the PropertyRendererDisplayName.class, decompiling it and modifying the part I suggested in previous post.
    Regards,
    Romano

  • How to create custom infotype for training and event management

    hai freinds can any one tell me how to create custom infotype for training and event managment with following fields
    PS No – PA0000-> PERNR
    Name   - PA0001 -> ENAME
    IS PS.No. – PA0001-> PS no. of Immediate Superior
    IS name PA0001 -> ENAME
    thanx in advance
    afzal

    Hi,
    Your question is not clear for me. Since it is a TEM infotype, it could be a PD infotype.
    If you wish to create a PD infotype, use transaction PPCI to create the infotype.
    But before that you need to create a structure HRInnnn (where nnnn is the infotype number) with all the fields relevant for the infotype.
    If you wish to create a PA infotype, use transaction PM01 to create the infotype.
    But before that you may be required to create a strcuture PSnnnn  (where nnnn is the infotype number) with all the fields relevant for the infotype.
    Regards,
    Srini

  • How to create Standard text for terms and conditions of po print form

    Hi anybody,
      I want create Terms and condtions inside smartforms PO FORM , how do i create terms and conditons and how use font size? I don't want hard code inside smartforms , I will create seperate texts for terms and condition after i include inside smartform.
    How i will do ? anybody please tell me.
    Thanks
    S.Muthu.

    Hi Subramaniyan,
                             U an create an include text node in your smartform.And terms and conditions is the header level text,so i suppose you have to give the inputs as follows :
    Text Name         &**-EBELN&
    Text Object       EKKO
    Text ID              xxxx
    Language          &**-SPRAS&
    is the data at your end .To simplify more follow the following.
    1> go to your purchase order from me23n
    2> open any purchase order and click on the terms and conditions text.
    3> go to GOTO option of the text.and click on the HEADER.
    4> U will find the attributes of the text which you will have to pass to the Include text in your smartforms.
    The long texts arestored in STXH table.
    Reward Points if useful.
    Cheers,
    Deepthee Kasal

  • Where do I find the long text for Damage and Cause in Notifications (IW21)

    Hi ppl,
    Can anyone let me know where the long text for Damage and Cause is stored (can be seen in IW21)?
    Can I retrieve it through FM READ_TEXT? If yes, what are the values of the parameters to be passed?
    Thanks,
    David.

    Hi!
    It is easy to check whether some text is read by "READ_TEXT" or not.
    1) Create text in dialogue mode and save it.
    2) Place brake-point in READ_TEXT FM
    3) go to view this text in transaction again
    If the program is switched to debug mode, it means u can use this FM. Have u tried do this stuff?

  • I cant turn on the coockies when i go to the tools --- options--- privacy and choose use custom sitting for history and click OK. Then o go back nothing changed

    i cant turn on the coockies when i go to the tools --->options--->privacy and choose use custom sitting for history and click OK. Then o go back nothing changed

    Note that the "Use custom settings for history" selection allows to see the current history and cookie settings, but selecting this doesn't make any changes to history and cookie settings.<br />
    Firefox shows the "Use custom settings for history" selection as an indication that at least one of the history and cookie settings is not the default to make you aware that changes were made.<br />
    If all History settings are default then the custom settings are hidden and you see "Firefox will: (Never) Remember History" (Never remember history means that Private Browsing mode is active).
    "Use custom settings for history" stays selected if at least one of the History or Cookie settings is not the default to make you aware that changes from the defaults are made.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    If you do not keep changes after a restart then see:
    *http://kb.mozillazine.org/Preferences_not_saved

  • To build some Custom reports for Sales and Distribution

    I want to build some Custom reports for Sales and Distribution.
    I do not know how to do that.
    I reviewed lots of threads earlier, but couldnt understand how to do that.
    If any one can send me suitable step by step guide, I will really appreciate it.
    Or send me some link or some documents with couple of nice exampples of how to do that.
    Which setting to make in B  ex and everything.
    I am new to BI.
    Please advise.
    Points will be awarded

    Hi,
    Could you be more specific about your requirement. I could understand that you wanted to know what all are the Customer sales reports could be provided in SD.
    Generally irrespective of projects few reports are considered as baseline reports for any SAP implementations.
    For example: 1. Order intakes daily
                          2. Order intakes monthly
                          3. Order magin (daily,monthly)
                         4. Order analysis.
    Best regards.

  • Text for block and select option on the selection screen of Logical Databas

    Hi,
    I have copied a standard program (RFBELJ10) which is making use of LDB (BRF) and created a custom program. Now, the requirement is to add a selection screen option to the custom report and do some validation on the data extracted. I have added the select option and provided a text (lets say "Segment") to it using menu path Goto --> Text Elements --> Selection Texts and activated. But this text is not displayed on the screen when i execute the report. It is showing the string which i used while defining the select option.
    Also i need to provide a frame and title to it. but its not displayed.
    i have written the following code for that:
    SELECTION-SCREEN: BEGIN OF BLOCK seg WITH FRAME TITLE text-h01. " Segment
    SELECT-OPTIONS: s_segmnt FOR faglflexa-segment. " Segment
    SELECTION-SCREEN: END OF BLOCK seg.
    Could you please help me in getting the texts displayed for fram and the select option?
    Thanks,
    Phani

    Solved the problem. I have maintained the text in German. So, when I execute the report in english, it is not displaying the text. I have translated the texts to English and is working fine now.

  • Custom Report for slow and fast moving items

    Dear Xperts,
    My client wants to develop a new report for slow and fast moving items, I checked the std report MC46 however as per std SAP design this report does not consider the special stock like project stock (Q)...could you please help me to know how can develop this new report with following input and output fields?
    Input fields:
    Plant
    Material
    Material Group
    MRP Area
    Special Stock Indicator
    Special Stock (Type)
    Output Fields:
    Material
    Material type
    Material group
    MRP Controller
    MRP Area
    ABC indicator
    Material price
    Category field – Slow, Fast, Non-moving
    Current Stock
    Last Issue Date
    Thanks in Advance
    Regards
    Rahul

    Dear Rahul,
    If you required  project stock and consignment stock with valuated stock report in same place you need to generate new info structure as given below link. Or you can go with customized report with abaper.
    Info structure validation
    Regards
    Sanjeet Kumar

  • Creating a custom dictionary for Acrobat and Reader.

    I want to create a custom dictionary to be used by all of our users when they access a “forms document” through Adobe Reader/Acrobat.
    Here are some of the issues:
    The default dictionary name under Custom Dictionaries has a .clam extension.
    Is there a way to edit this?
    Does it contain the index settings for all the other added.txt and excluded.txt dictionary files?
    The Reader's default location is under a user’s LocalLow folder.
    C:\Users\PIN\ AppData\LocalLow\Adobe\Linguistics\Dictionaries\Adobe Custom Dictionary.
    The Acrobat default location is under the user's Roaming folder.
    C:\Users\PIN\ AppData\Roaming\Adobe\Linguistics\Dictionaries\Adobe Custom Dictionary\.
    This is buried under the users profile and we need to be able to update these files on all the user’s workstations prior to log on.
    This could be done by redirection of the new custom dictionary. What is the location of that setting in the registry?
    Is there is a way to append to the standard dictionary file so as not to replace any setting that a user may have made to the dictionary?
    Is this done to the .clam or .txt file outside of the Adobe Reader application?
    What is the “All” setting in the dictionary?
    Does that imply the program will look through all the dictionaries?
    Is there a way to create a new dictionary name that would appear under the preferences\spelling\dictionaries list. Is there an Index file that would point to a newly created Dictionary folder?

    Custom dictionaries must be created with a 3rd party program provided by Proximity (http://www.proximitytechnology.com/spell_correction.htm).
    The spelling support files are installed in this directory for all users (this is only the default)
    C:\Program Files\Adobe\<product>\Resource\Linguistics\Providers\Proximity
    File types include:
    ENV - eg: grmphon.env - the phonetic rule file for the spelling dictionary language. There is one of these “ENV” file for each language.
    CLX - eg: grm32.clx - a language related part of spelling dictionary. There is one of these “CLX” file for each language.
    LEX - eg: grm104.lex - an actual spelling dictionary. There may be several dictionaries for a given language, for example, grm104.lex, grm10401.lex.
    So the answer is:
    Create a custom dictionary with Proximity and use the Wizard or some other method to deploy the files in the correct location.
    Ben

  • How to access custom property for attribute and control in .vm file?

    Hi,
    I have created custom properties in OPM for attribute and apply also that properties to attribute.
    But if how to access that value in .vm file?
    I accessed using
    $attribute.getProperty("ScreenProp", "default value")
    but it's not working but same is worked for screen custom property

    $control.getProperties().get("PropertyName") works for custom properties on a control
    If you output $control and $control.getProperties() to the html you can lookup the API for the used classes.
    I can't give an example of the html because it's stripped in this forum
    Edited by: Peter van de Riet on 20-mei-2011 14:18

  • I have selected "Use custom settings for history" and pressed "OK" but it defaults back to "Remember history", how do I stop this?

    I have to enable cookies in order to have an online purchase credited to my mileage account. So, I opened Firefox Tool and selected Options then Privacy. There, I changed "Remember history" to "Use custom settings for history," as, this will achieve what I am trying to do. However, when I press "OK" the box jumps back to the Privacy box and I see that "Remember history" is still the setting. What steps do I take to prevent the Privacy box from defaulting to "Remember history" when I want to change that setting to something else?

    The "Use custom settings for history" selection allows to see the current history and cookie settings, but selecting this doesn't make any changes to history and cookie settings.
    Firefox shows "Use custom settings for history" as an indication that at least one of the history and cookie settings is not the default to make you aware that changes were made.
    If all History settings are default then the custom settings are hidden and you see "Firefox will: (Never) Remember History".
    "Never Remember History" means that Private Browsing is active and "Always use private browsing mode" gets a checkmark.
    Do you have a problem with the cookies?
    You can inspect and manage permissions for the domain in the currently selected tab via these steps:
    *Click the "[[Site Identity Button|Site Identity Button]]" (globe/padlock) on the location/address bar
    *Click "More Information" to open "Tools > Page Info" with the Security tab selected
    *Go to the Permissions tab (Tools > Page Info > Permissions) to check the permissions for the domain in the currently selected tab
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"

  • Can I create a custom location for Premiere and AME presets?

    Our institution has volatile user accounts meaning that all user specific preferences, presets and files are deleted on log off.
    However I would like to make some custom Premiere sequence presets and AME export presets available to all users by default.
    Can anyone suggest a way to store these presets in a non-user specific location and still have Premiere and AME locate them?
    Alternatively if anyone can suggest a way of packaging up these presets and copying them into the appropriate user locations on logon that would also be of interest!?
    Any suggestions appreciated (some further details and system spec below)...
    thanks,
    Darryl
    Typical location of presets as far as Im aware:
    Users/[USER]/Documents/Adobe/Premiere Pro/6.0/Settings/Custom/
    Users/[USER]/Library/Preferences/Adobe/Common/AME/6.0/Presets
    Premiere Pro CS6
    AME CS6
    iMacs with 10.8.4 (2.7 Core i5 8GB)
    (Also looking for Windows 7 solution for same issue)

    Our institution has volatile user accounts meaning that all user specific preferences, presets and files are deleted on log off.
    However I would like to make some custom Premiere sequence presets and AME export presets available to all users by default.
    Can anyone suggest a way to store these presets in a non-user specific location and still have Premiere and AME locate them?
    Alternatively if anyone can suggest a way of packaging up these presets and copying them into the appropriate user locations on logon that would also be of interest!?
    Any suggestions appreciated (some further details and system spec below)...
    thanks,
    Darryl
    Typical location of presets as far as Im aware:
    Users/[USER]/Documents/Adobe/Premiere Pro/6.0/Settings/Custom/
    Users/[USER]/Library/Preferences/Adobe/Common/AME/6.0/Presets
    Premiere Pro CS6
    AME CS6
    iMacs with 10.8.4 (2.7 Core i5 8GB)
    (Also looking for Windows 7 solution for same issue)

Maybe you are looking for

  • Mapping Error during BPM

    Hi Gurus,   Im configuring a scenario to perform idoc collections using BPM.   When im testing the scenario, the SXMB_MONI transaction is telling me that there is a mapping error. I went thru the messages in SXMB_MONI but im unable to find out where

  • I need SIP manual setting in PDF format to use fri...

    Do any one have SIP setting for nokia n73 so I can use fring

  • PL/SQL Packages and Types Reference

    I need information about the owa_ packages. It should be in PL/SQL Packages and Types Reference, but in the 9i Documentation there is nothing about these packages and i cant find this Documentation for 10g on OTN. Who can help me???

  • Mac OS X Server, File Sharing, Permission

    Hi All,           I'm trying to use Mac os X server Maverick in a small team within my           organization. I was able to successfully install and setup the server, which           resides in a local network. I did the following setup:      1 )  O

  • Mac os x mountain lion rounds photos on the corners...

    Mac os x mountain lion rounds almost every photo on the corners, how can I undo this weird process, affecting only raw files from my Sony RX100? Thanks