How can i custom the border of a JMenu ?

Hello everydoby,
i would like to custom the border of a JMenu.
i know that it's possible to custom the border of a JMenuItem.
but for JMenu, the thing seems to be more difficult.
can you help me please ?
thanks for all.
FMA.

I badly expressed myself, sorry.
With JMenu and JMenuItem there are in fact no problems.
What I wish it is to be able to for a given Jmenu (which has his own border - ok), all the associated JMenuitem are surrounded with one global border.
if i set the border for each JMenuitem, I do not obtain the expected result.
FMA.

Similar Messages

  • How can I see the border of a label

    I'm wondering how can I see the border of a label.
    I'm trying using the following command but is giving me an error that cannot resolve symbol setBorder. There is another way to do this?
    label_01.setBorder(BorderFactory.createLineBorder(Color.black));

    the awt Label class doesn't have a setBorder method, you need to use a JLabel
    asjf

  • How can i remove the border of TextField

    Hi,first i set the border of textfield in my program now i want to remove this border and want to set the default border.how can i do that.
    thanks

    try this,
    UIManager.put("TextField.border", new EmptyBorder());
    or maybe set the border part to null. I think it works.
    by the way put this line right at the start of your program so that all text fields will be shown without borders.
    Jim

  • How can i custom the xml soap response in my ws?

    Hello there,
    Im developing a ws in weblogic 10.2 and i need to return a complex type soap response with a custom xml created by me... can any one give me an advice on how can i do that? Im not used to soap ws
    And i need to return a lot of info some times and some of them are ArrayList of an object. Like the info of a Client and all the contracts of this client (and the info of that contract)... a lot of xml element with childs.
    Thanx in advance for any help
    PS. I tried to post an xml as example but i couldnt do it using '{' code '}' tag 
    Edited by: mgaldames on 08-dic-2010 8:50

    Hi Riyaz,
    Thanks for your immediate response.
    Here is my requirement.
    I have created a ZTABLE with Field AUART and this table is maintain table using SM30.
    When I Press F4, it will giving the list of all the order types available in T003O table and can select one and I can proceed succussfully.
    But when using SM30 I need to give '*' in the column for AUART which is not available in T003O table.
    I need to save my entires for AUART with * also( The value "*" is not available in Check table T003O ).
    Please let me know how can I do this.
    Thanks in advance.

  • How can I change the border size in Numbers?  The border when I print is Way big.

    Just updated numbers and now when I print it has a 2" border around my spreadsheet. Basically shrinking it on the page by 50% !!  Can't seem to find a way to change it so I can print on the whole piece of paper.  HELP?!

    Jeff,
    Printing has definitely gotten worse with Numbers 3.0.  Apple published a list of items they are addressing here:
    http://support.apple.com/kb/HT6049
    You can continue to use the previous version which is located in the folder "/Applications/iWork '09"
    The only way I know to "fix" this problem is to print to PDF directly to Preview, then crop (using the rectangular selection tool and the menu item "Tools > Crop") and print again.

  • How can i make the border of an ellipse invisible?

    Hi everybody,
    I have created an ellipse and i want to hide its black boundaries.
    Can someone please tell me how i can do this?
    Thanks in advance.

    Below is the code i am using to draw an ellipse.
    Now, I have to add an image to this button which is also oval in shape. The requirement is that only the image should be visisble, not the black lines of the actual ellipse.
    public class DiagonalEllipse extends JButton {
    Ellipse2D.Float ellipse = new Ellipse2D.Float(18, -13, 23, 56);
    public DiagonalEllipse() {   
    super();
    setContentAreaFilled(false);
    public void paintComponent(Graphics g) {
         super.paintComponent(g);
         Graphics2D g2d = (Graphics2D)g;          
         AffineTransform tf = AffineTransform.getRotateInstance(580,ellipse.getCenterX(),ellipse.getCenterY());     
         Shape diagEllipse = tf.createTransformedShape(ellipse);
         g2d.draw(diagEllipse);     
    //Created a new button and adding image to the button.
    JButton button = new DiagonalEllipse();
    button.setIcon(imgOne);
    Thanks,

  • How can i remove the menu item from a menu

    how can i remove the JMenuItem from a JMenu at run time.
    thanks in advance

    This is in JMenu from the api
    void remove(JMenuItem item)
    Removes the specified menu item from this menu.
    You must download the api! it helps a lot!
    You can do that or if you need to access it again just set it visible(false);

  • Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

    Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

    Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

  • I have tried to connect and purchase on my iTunes Store, but forgot security questions. Not even Customer service is able to help me. How can I spend the 20 bucks I have on my account now if even the phone assistants can't help me?

    I tried to Purchase on the i Tunes store, but forgot security questions. Not even Customer Service is able to help me. How can I spend the 20 bucks I have on my account now if even the phone assistants can't help me? I can't rememeber any answer to any of mu questions and I can't even register my product (iPod Classic) even though I purchased it 6 months ago. Customer Service held me on the line for 30+ minutes asking me all the time if I rememeber one anwer to my questions (to which I repeatedly said no) and there seems to be no way to circumvent that security system, not even with my second email, also registered on My Itunes. Isn't there any way for me to get those 20 dollars back I already have in your store or at least reset my security questions if I don't rememeber?
    Thank you very much.

    qwerqsr, Please contact 1-800-My-Apple, about this issue. The account security team should be able to assist you. Please have your password and the ability to log into your account via appleid.apple.com.
    Thanks,
                A2Q

  • How can you expect the customer to have a LOCAL/COUNTRY Based Credit Card every where we go??? Last week I was on holiday in HK,  and  from my Hotel I was able to use m VN Credit Card with my Apple ID and purchase online!  Why THIS WEEK, can't I use my HS

    Apple_ID_card_declined_for_this_country
    How can you expect the customer to have a LOCAL/COUNTRY Based Credit Card every where we go???
    Last week I was on holiday in HK,
    and
    from my Hotel I was able to use m VN Credit Card with my Apple ID and purchase online!
    Why THIS WEEK, can't I use my HSBC Platinum Credit Card from Vietnam,
    for my Singapore Apple ID account ,
    while working here in Vietnam???

    Unfortunately, this is a problem that is driven by the DRM Dictatorship.  Despite the proliferation of mobile devices and the fact that there are many of us who do a lot of international travel, content providers don't want you to have access to their products outside of your homeland.  The Balkanized mentality of the DRM Dictatorship is way out of touch with the modern world.
    At least Apple, to its credit, allows you to use your accounts outside of your homeland as long as you have the proper credentials for them.  Most other services use the more Draconian geolocation filtering which does require you to be physically present in your homeland.  For the most part, you are not allowed to leave home if you want access to your favorite entertainment!

  • How can I use a SCH-LC11 device in CHINA which bought from ebay. I am not Verizon customer but I prefer to using your 4G LTE Router . How can I get the unlock code? The device may have a bad ESN but I only use it in CHINA. Kindly looking forward your repl

    How can I use a SCH-LC11 device in CHINA which bought from ebay. I am not Verizon customer but I prefer to using your 4G LTE Router . How can I get the unlock code? The device may have a bad ESN but I only use it in CHINA. Kindly looking forward your reply. Thanks!

    It's good to read Antoniad's post.  It reassures me that I can use my new iPad as an international communication device which is the reason I purchased the thing.  However, I called Verizon today (my provider of cellular data) who told me that I can't just pop in a SIM card as you suggested.  He also said that he was from the "Pre-Pay" division of Verizon and he was certain that I couldn't do what I planned to do.  I was extremely disappointed as I had called Apple prior to buying the iPad and I read the algorhythm on the website for choosing an iPad before purchasing.  Those sources were quite specific and the information seemed clear.  I would be able to use my iPad to communicate through cellular connections while traveling on the road, literally, abroad.  I was told that I could pop in a data card wherever I was, just as you indicated in your message above, and voila I was good to go.  The Verizon rep definitively rained on that parade, but said that I might be able to do this if I have a "Post-Pay" account, a different area of Verizon.  I haven't had the chance to talk to this division yet, so I looked to Apple's Support for answers.  Maybe I will find out that I can use my iPad as an international communication device while traveling on the road afterall, however, it appears I may need a different type of account (Post-Pay), something I was never warned about. Can I switch to this kind of account?  I don't know.  I have to find out.  If you have any information about this issue, it would be good to share since I strongly suspect there are others who bought the iPad for the same purpose that I have.

  • How can I get the last updated email address of the customer ??

    Dear All,
    Please let me know, How can I get the last updated email address of the customer ??
    Also, I am trying to read CDHDR table where OBJECTCLAS is ADRESSE, however what value should be passed into OBJECTID field, looks like it is ADRNR with a Suffix BP.
    Please confirm me what value should be passed into OBJECTID field.
    Thank you.
    Anitha

    Hi Anitha,
      Check if this is something that helps you:
    Change documents in BAS
    CDHDR
    address type 1
    objectclass = ADRESSE             
    objectid = addrgroup + addrnumber     (ADRC-ADDR_GROUP + ADDRNNUMBER) !!
                     'BP  000xxxxxx'
    private address (address type 2)
    objectclass = ADRESSE2
    objectid =  'BP  000xxxxxx000yyyyyyy'   
                            persnumber+adrnr private
    address type 3
    objectclass = ADRESSE3
    objectid =  'BP  000xxxxxx000zzzzzzz'
                              persnumber +comp.address
    The above details is from the link: http://wiki.sdn.sap.com/wiki/display/ERPLO/LO-MD-BP
    Regards,
    Swarna Munukoti

  • How can we get the value of the key field in a custom data model using governance API?

    Dear Team,
    How can we get the value of the key field in a custom data model, to be used for manipulation of the change request fields using governance API?
    Any kind of help would be sincerely appreciated.
    Thanks & Regards,
    Tushar.

    Hi Michael,
    Thanks for direction. Let me give more context on this as I'm interested to get more details..One of the issue was to read cross entity field values on UI based on user action and set other entity field behaviour...It is similar to what is being posted here.
    For ex: Reading MTART from Basic Data UIBB in MM MDG UI and set the field properties in some other custom entities say ZZETEST. This cannot be done using UI BADI as it only supports single entity at a time and not cross entity. So alternatively we found a solution where we can enhance existing PLMB feederclass cl_mdg_bs_mat_feeder_form by reading the model and the entity as needed as it it proved that it supports cross entity UI field behaviours and so business requirements.
    This is a workaround for now.
    So the question is How do we achive it using governance API for cross entity field behiaviours.?or what is the right way doing this.
    Can we do that using governance API and its' methods?
    In the Governance API doc you provided below has referring to below external model as part of gevernance API.
    The active or inactive data (before or during the derivation or the check) can be read
    with the external data model interface IF_USMD_MODEL_EXT with the method READ_CHAR_VALUE and
    the corresponding READ_MODE parameter. To avoid unnecessary flushes (derivations), the NO_FLUSH
    parameter should b
    e set to ‘X’.
    Thanks
    Praveen

  • I have never used my mac for desktop publishing before and am having some problems.  This sounds really dumb, but I can't figure out how to put a border around a text box.  Also, how do you edit the border, i.e. border color, thickness, etc. Help!

    I have never used my mac for desktop publishing before and am running into some real problems.  How do you put a border around a text box?  Can you edit the border - color, thickness, etc.?  Help!

    I think the best solution is to read Pages documentation, go to Help and you have a long list of options. Pages is capable of quite sophisticated things, some features are above Nisus or Mellel, so it is not so simple to summarize things in a few lines.

  • How can I get the code of a Custom Module?

    Hi guys.
    I'm in a new client, and they have a problem in one of their interfaces. The PI version is 7.1.
    The interface uses the Mail Adapter, and there is a Custom Module there. The company that did this module is no longer in this client, and they did´nt leave any document about this module.
    So, how can I find the code of this Module?
    Regards,
    Eric Freitas

    Hello,
    Check Vadim's reply
    Checking code in custom adapter module
    Thanks
    Amit Srivastava

Maybe you are looking for