Help me in creatting MenuItem with sortcut using ctrl + O

How to use sortcut(ctrl + o) in awt menuitem.......

From the API:
(in java.awt.MenuItem)
void setShortcut(MenuShortcut s)
Set the MenuShortcut object associated with this menu item.
(In java.awt.MenuShortcut)
(ctor)
MenuShortcut(int key)
Constructs a new MenuShortcut for the specified virtual keycode.
(from java.awt.event.KeyEvent)
(field)
static int VK_O
Hopefully that should tell you everything you need to know - if not, check the API docs out, they will answer these kinds of questions a lot faster than posting to the forums will
Good Luck
Lee

Similar Messages

  • Help creating .dll with c using JNI

    Hi. I have created a JNI application that uses C to call Java. Now, I am trying to create the .dll for windows. I am using VS C++ compiler. My program compiles; however, it doesn't seem to start the JVM. I am not sure how to pass the arguments in VS C++ while builiding and running. Please let me know. Thanks.

    Hey,
    Thanks. I apologize for not being clear. I have created the dll file and an application that links to that dll and executes the code. It creates the .exe file and when I execute it, it goes through the sample() function that just prints "Hello", and then it goes through the startJVM() function where the JVM is intended to start; however, the status of JVM is returning -1. It's not able to start JVM. I have included the path for the jvm.dll and jvm.lib. But, still won't work. Please reply with suggestions/comments. Thanks again.

  • Creating PDF with IMAGE using CFDOCUMENT TAG

    Hi Guys,
    I m facing problem while creating the PDF using CFDOCUMENT
    tag.
    Actually my clients want the IMAGEs in PDF document.
    Problem is most of the images in JPG format and while I am
    going to attach images in PDF document it takes lots of time for
    creating PDF. In most of time it cause timeout.
    I have try to convert images JPG to PNG, yes I some what
    better performance than JPG format but still it is work for 20 - 25
    images. In my case I want to attach normally 50-100 images in PDF
    (sometimes it is more 200).
    PLZ, Help me.. F1...F1...F1
    thanks in advance
    Pritesh
    Coldfusion Programmer

    I am having a similar and more serious problem. It takes a
    long time to execute, but even attaching a small image balloons the
    pdf to 6MB plus. After a few images it gets up to 20MB. These are
    100k jpeg files being attached. The resulting PDF is too large to
    email or process effectively. Does anyone know how to reduce
    size/processing?

  • Create SR with Attachment using WSDL

    Anybody knows how to create a SR on CRMOD, with an Attachment consuming WSDL?

    Dear Dmitry Rassakhatsky
    Can you please elaborate what you are trying to achive using BAPI_DOCUMENT_CREATE02  and SAP XI.
    We would be in better position to suggest solution.
    Also most of us will not be able to understand Technical ABAP so request you to provide detail scenario.
    With Warm Regards
    Mangesh Pande

  • Creating PO with me21 using call transaction

    hi,
    I need some help regarding the application:
    i have to build a custom screen having fields for creating PO using me21 transaction using call transaction.
    would anybdy please guide me how to do it.
    i wd appreciate ur help

    Hi Harpreet
               For creating a custom screen you will ve to use a screen exit. For purchase order 'MM06E005' will be useful. Explore it in XN SMOD.
    Regards
    PRAFUL

  • Create Bom with alternative using CSAP_MAT_BOM_MAINTAIN

    Hi all,
    I am trying to create a new alternative BOM and thought I had to use the function CSAP_MAT_BOM_MAINTAIN. Creating new BOMs with CSAP_MAT_BOM_CREATE works as well as maintaining them with CSAP_MAT_BOM_MAINTAIN, but I fail in creating a new alternative BOM. In the function
    CS_DI_HEADER_OBJECT_CHECK (called within the maintain-function ) it says (close to the failure )
    "*Anlegen von Alternativen über CSAP nicht erlaubt"
    "creation of alternative using csap not allowed" ....
    Well, sounds like I am using the wrong function, but which should I use instead ???
    Thanx in advance,
    Karsten

    Hi,
    Use : CS_BI_BOM_CREATE_BATCH_INPUT1 To Create a new BOM or New Alt. BOM.
    Use : CS_BC_BOM_CHANGE_BATCH_INPUT to maintain the BOM.

  • Help needed to create desktop application background using javaFx.

    Hi,
    i need to create background for my desktop application in JavaFx. It have top side bottom menu bars to place icon buttons for my app. The whole scene need to resize. I had tried this using
    JavaFx composer. But my issue is like in java swing i can not able to create different panels and set different styles. Please help me on this issue.
    Thankyou.

    Hi mate take a rectangle and fill it to scene width !
    use fill gradient and bind it to your main scene.width
    for example :
    Rectangle {
    fill: color.Blue
    stroke: LinearGradient {
    startX: 125.0, startY: 0.0, endX: 225.0, endY: 0.0
    proportional: false
    stops: [
    Stop { offset: 0.0 color: Color.web("#1F6592") }
    Stop { offset: 1.0 color: Color.web("#80CAFA") }
    use appropriate start and offset then bind it to scene width and height.
    width : bind scene.width;
    height : bind scene.height ;

  • Can't create text with PHP using imagettftext [SOLVED]

    I think that after the upgrade of PHP to the modular one I can't create text using TTF fonts. Before I file a bug report could someone confirm if it works or not for them? I might just have screwed something in my box.
    This code should create a text image and display it in the browser (it assumes you have DejaVu fonts in the default directory):
    <?php
    // Set the content-type
    header("Content-type: image/png");
    // Create the image
    $im = imagecreatetruecolor(400, 30);
    // Create some colors
    $white = imagecolorallocate($im, 255, 255, 255);
    $grey = imagecolorallocate($im, 128, 128, 128);
    $black = imagecolorallocate($im, 0, 0, 0);
    imagefilledrectangle($im, 0, 0, 399, 29, $white);
    // The text to draw
    $text = 'Testing...';
    // Replace path by your own font path
    $font = '/usr/share/fonts/TTF/DejaVuSans.ttf';
    // Add some shadow to the text
    imagettftext($im, 20, 0, 11, 21, $grey, $font, $text);
    // Add the text
    imagettftext($im, 20, 0, 10, 20, $black, $font, $text);
    // Using imagepng() results in clearer text compared with imagejpeg()
    imagepng($im);
    imagedestroy($im);
    ?>
    Could someone with an up to date php with GD enabled tell me if it works or him/her?
    Thanks.
    EDIT: Ok, I solved it. The error reporting is turned off by default now, so I was not getting any error. After turning it on I found out it was related to the open_basedir directive being enabled now in php.ini. Turning it off allowed me to access the TTF for drawing text.
    Last edited by Bogart (2007-11-01 00:43:33)

    Aha!  I figured it out.  I used File...Open As to open it as a Camera RAW file.  In the ACR editor, it was showing as 16-bit depth.  Changed it to 8-bit and saved it.  Now the Text tool works!
    Ken

  • HELP:Problem in creating a temporary CLOB using JDBC connection pooling

    Hi All,
    i am inserting a large xml document in an xml type column by creating a temporary clob of this document
    tempClob = CLOB.createTemporary(conn, true, CLOB.DURATION_SESSION);
    I am not having any success getting the following statement working using a JDBC connection pool rather than a hard coded URL connection
    it works with:
    "jdbc:oracle:thin:@server:port:dbname" connection
    Does NOT work with:
    datasource.getConnection()
    Does any one know how to successfully get this to work?
    urgently plz........

    Hi Dharmi
    Here is a quote of Dafna's post in [another thread in this forum|Re: Copy VC controls]
    CE7.1.1 will be released at September 2008 for ramp-up customers.
    There are many improvements and new capabilities in the new release of Visual Composer for CE7.1.1. Among the new features you can find:
    The missing features from Visual Composer 7.0 (Html view, portal Eventing support (EPCM), JDBC, Undo/Redo, and more..)
    Many layout & modeling improvements
    Additional ALV table functionality - export to Excel, switch to chart, configure ALV behavior at design time
    Integration of Visual Composer in Eclipse - additional entry point to the Visual Composer models from the NWDS. This integration provides the option to add a WD component (in case of missing functionality in Visual Composer), as a black box component to the Visual Composer model. Right-clicking the component will open the Web Dynpro perspective for creating/modifying the component.
    Regards,
       Shai

  • Creating snapshops with API using Forms 5.0

    We're trying to create snapshots on an Olite database using the
    API. We've problems below are not yet solved:
    1. It's impossible to create complex snapshots. A complex
    snapshot uses a union or a join.
    2. It's impossible to create a snapshot for a view.
    3. It's impossible to create a snapshot that contains single
    quotes. For example: The snapshot "select 'A' from dual" can't
    be created.
    null

    We're trying to create snapshots on an Olite database using the
    API. We've problems below are not yet solved:
    1. It's impossible to create complex snapshots. A complex
    snapshot uses a union or a join.
    2. It's impossible to create a snapshot for a view.
    3. It's impossible to create a snapshot that contains single
    quotes. For example: The snapshot "select 'A' from dual" can't
    be created.
    null

  • Creating Schedule With CalendarDays Using WS-SDK Seems To Miss Days

    I've tried to create a couple of schedules in Business Objects using the WS-SDK, creating schedules that run on a monthly basis.
    The parameters all appear correctly in the InfoView application, but the next run time misses out the first possible instance. E.g.
    Creation Time:              5/26/2011 3:47 PM (Start time is 5/26/2011 11:02 PM)
    Next Run Time:      7/1/2011 11:02 PM (Should have been 6/3/2011 11:02 PM)
    Recurrence Type:      Object runs every month on the Friday of week 1.
    Creation Time:              5/26/2011 12:33 PM (Start time is 5/27/2011 9:32 AM)
    Next Run Time:      7/2/2011 9:32 AM (should have been 6/4/2011 9:32 AM)
    Recurrence Type:      Object runs every month on the Saturday of week 1.
    Any ideas why the first month in the range is missed out?

    I fixed this by not specified the start date and end date in the CalendarDays object I was passing in.

  • Create material with reference using BAPI

    Hi
    I need to create material using refrence to another material for all material Views. Can I use BAPI_MATERIAL_SAVEREPLICA.
    Which parameter I need to fill for reference materia
    Moderator message: please do your own research before asking.
    Edited by: Thomas Zloch on Jan 12, 2011 3:18 PM

    Hi Goutam,
    You can use the BAPI BAPI_MATERIAL_SAVEDATA, which will create/update the material. You can pass the reference material in the filed BAPI_MARA-PL_REF_MAT. And you can pass reference material for all view like this.

  • Create PO with attachement using BAPI_POEC_CREATE

    I'm using bapi BAPI_POEC_CREATE to create a PO in SRM but i also need to add an attachment.
    The bapi has parameter I_PO_ATTACH but i need an URL for the attachment, what do i need to do in order to upload the attachment and get the URL?
    Thank you in advance.
    Regards,
    Pedro.

    anyone?

  • Some one can help me to create activity with questionnaire?

    hi experts
    now in E-recruiting, I want to create an questionnaire activity, but in hrp5141, the column-- "QA_TPL_OBJID"--of that activtiy is blank, I do not know the reason? is there something I have to configure?
    thank you

    Hello sun,
    the column "QA_TPL_OBJID" contains the hrobjid of the questionaire hr object (otype VA) you maintain when you create an activity in the bsp. To be able to choose a questionaire from the search help you have to create and release one. Usually you will find the create question and create questionaire links on the administrator startpage.
    Best Regards
    Roman Weise

  • Im trying to make an apple id do u haw to use a credit card number or no because i dont want to can someone tell me how i ca create one with out using it

    Im trying to make an apple id but dont want to use my credit card is there a way to make obe without using a credit card can some obe tell me

    If you only want the free apps, take a look here:
    http://support.apple.com/kb/HT2534
    Read the steps carefully as the order in which you follow them is  critical. Note that you can do this only when creating a new Apple ID. You cannot use an existing ID. 
    You will of course not be able to get anything other than the free content without entering in some sort of payment method (credit card, prepaid iTunes card, gift certificate, etc.)
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

Maybe you are looking for

  • MSI motherbaords and Mushkin ram

    hi, i ahve an MSI 865-PE Neo-2 LS motherboard (Bios 1.9), and just reciently bought some Mushkin PC3500 LVL 2 512MB ram, but found it dose not run at the garunteed speeds. i contacyed mushkin about this, and they are willing to replace it with a Much

  • How do I keep folder/album structure on import?

    I have a large directory tree of images I'd like to import into iPhoto 6. Like this: Nature / California / Big Sur / <pictures> Nature / California / Lake Tahoe / Sunsets / <pictures> Nature / California / Lake Tahoe / Snowboarding / <pictures> Natur

  • Advanced table with many columns

    I have a advanced table with more or less 60 columns and the table is greater than the header image. How can I align the table with the advanced table? Thanks. Edited by: Vieira on 3-giu-2010 1.01

  • RoboHelp for Word - Breadcrumb Links in .CHM?

    From what I've read, 8.0 supports breadcrumbs in .CHM files but I can't find any reference to it in RoboHelp for Word.  If I create a new blank project in RoboHelp for HTML and go to generate the .CHM, I get the breadcrumb option and it works correct

  • Oracle waveset 8.1.1.5 find user issue

    Hi All, we recently applied the oracle waveset 8.1.1 patch5. everything went smooth. but in the findusers i am getting this error message. after this message i am getting the users. please help me on this. what i am missing here. Thanks in advance...