What is the equivalent function of this...

the following codes are in awt form, what are the equivalent swt form of the following function? thank you for your help
ActionListener listener = new MenuItemActionListener(panel);
*MenuItemActionListener(panel); is the awt
Component parent; (Component is the awt)
and using Color.<what_color>
Again thank you!

if you're planning on coming here getting the forum to re-write all your awt code in swt bit by bit, forget it. as far as I know, there's only 2 or 3 people who post here that know swt, and nobody's in the business of rewriting code on other people's behalf anyway. the swt documentation that comes with eclipse, plus the javadocs for swt, are more than good enough for you to manage this

Similar Messages

  • What is the equivalent function of NIDAQYield in NI-DAQmx?

    I have to migrate from traditional NI-DAQ to NI-DAQmx for Window 7 64bits system.  I like to find the equivalent function of NIDAQYield in NI-DAQmx?

    As far as I can see here, NIDAQYield is simply a way to process system events, so I suppose calling ProcessSystemEvents () will be equivalent to calling it.I do not know of a native DAQmx function that does the same. It is to be said, though, that DAQmx way of handling acquisition process is different from Traditional DAQ one and direct translation is not always possible, so depending on how you migrate your code, calling those functions may be unnecessary.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • What is the equivalent function or combination of functions for the following ASYST code

    I'm translating a program from AYSYT (very old out-of-date language)to LABVIEW. Thanks to the help from you guys. I have done 99% of my work. But I still have a small question to ask for help. Dose any body know what function or combination of functions in LABVIEW is equivalent to the folowing ASYST code: 0.5 set cut off frequency MOB(array used in the program) smooth.
    After reading the ASYST MANUAL, I know "smooth" is to apply some kind window(e.g. BALCKMAN).but LABVIEW doesn't have the "smooth"function

    I got strange result after using balckman window.
    the xy-graphs of my data before and after using blackman
    window are posted here. the magnitude and the peaks all changed after using blackman window.the peaks magnitude decreased more than ten times. The original ASYST code gives only a little bit lower peak after smoothing(4.2e-6 is the highest peak before smoothing, while 3.6e-6 is the smoothed highest peak).
    Attachments:
    before_blackman_windowed.bmp ‏1747 KB
    blackman_windowed.bmp ‏1747 KB

  • What is the main functionality of FM 'ISU_S_PAYSCHEME_ROLLIN_ROLLOUT' ?

    Hi Folks,
      I need to use the function module 'ISU_S_PAYSCHEME_ROLLIN_ROLLOUT'. what is the main functionality of this function module? there is no documentation available for this FM.
    Thanks in advance

    Hi,
    Plz follow the link below for answer of your question.
    Link is: Re: how to call standard SAP method in the Custom Program ?
    Thanks & Regards,
    Sarita Singh Rathour

  • What is the equivalent selection in BI7? (Following BW 3.5 How to...Set up

    Hi,
    What is the equivalent selection in BI7? (Following BW 3.5 How to...Set up BW Statistics)
    I am trying to install BW statistics and all the good things that come with it for BI7. Following the instructions in a document that I was directed to on this site, in SBIW, I installed and replicated all the datasource in under “TCT” tree (Technical content)
    The instruction is for versions prior to BI7 and I had to make modifications as I go.
    Now, this instruction direct me to go to:
    rsa1, “Bi Content” (left) and then “InfoProviders by InfoAreas” and select all InfoProviders for the InfoAreas ”BW Statistics” and “BW Metadata” under the node “Technical Content”.
    1.
    In BI7, there is no ”BW Statistics” and “BW Metadata” infoareas under “Technical Content” if I follow the directions strictly.
    What is the equivalent of this in BI7?
    2.
    In the instructions, the author continues to collect these InfoAreas from under “Technical Content”:
    BW Data Slice
    BW Features characteristics
    BW Metadata
    BW Statistics
    In BI7, do we need exactly these? Or, now different? Should I just transfer all the infoareas under “Technical Content”? What is the disadvantage of collecting a ALL?
    Thanks

    Thanks for the link and i believe it will come in handing.
    Yet, it does not have the step by step installation information on page 46 of this link:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c8c4d794-0501-0010-a693-918a17e663cc
    Do you have the BI7 version of this link?
    Also, ssame stewise info is on page 4 of this:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5401ab90-0201-0010-b394-99ffdb15235b   
    If you have the BI7 version of this link also, it will answer my question.
    Thanks

  • What is the Equivalent tool of CHDBPASS in NetWeaver 7

    I want to change the password of SYSTEM  and SYS in NetWeaver 7. What is the Equivalent tool of CHDBPASS in NetWeaver 7
    Edited by: Sebastian Sebaraj on Apr 3, 2008 3:34 PM

    Hai,
    For the SAP BASIS >= Release 6.10:
    Use the oradbusr.sql script. This script is attached to the note 50088. The script is valid for Oracle and Unix. Use the following syntax
               sqlplus /NOLOG @oradbusr. sql SCHEMAOWNER UNIX SAP_SID x
    The SCHEMAOWNER is either SAPR3 or has to start with SAP followed by the three digit schema id (example: SAPPRD).
    On Unix x is a dummy parameter and may e. g. be set to  X.
    To change the password for the SAPR3 or SAP<SID> user you have to use the following command:
               brconnect -u system/<syst_pwd> -f chpass -o SAPR3 -p <new_sap_pwd>
    or
               brconnect -u system/<syst_pwd> -f chpass -o sap< sid> -p <new_sap_pwd>
    Thanks and Regards,

  • What are the different functions used in sap script?

    Hi,
    What are the different functions used in sap script? What are the parameters used in each Function?
    Regards,
    Mahesh

    he print program is used to print forms. The program retieves the necesary data from datbase tables, defines the order of in which text elements are printed, chooses a form for printing and selects an output device and print options.
    Function modules in a printprogram:
    When you print a form you must used the staments OPEN_FORM and CLOSE_FORM. To combine forms into a single spool request use START_FORM and END_FORM.
    To print textelements in a form use WRITE_FORM. The order in which the textelements are printed, is determined by the order of the WRITE_FORM statements. Note: for printing lines in the body, you can also use the WRITE_FORM_LINES function module.
    To transfer control command to a form use CONTROL_FORM.
    Structure of a print program
    Read data
    Tables: xxx.
    SELECT *
    FROM xxx.
    Open form printing - Must be called before working with any of the other form function modules.
    Must be ended with function module CLOSE FORM
    call function 'OPEN_FORM'.....
    To begin several indentical forms containing different data within a single spool request, begin each form using START_FORM, and end it using END_FORM
    call funtion 'START_FORM'.....
    Write text elements to a window of the form
    call function 'WRITE_FORM'.....
    Ends spool request started with START_FORM
    call funtion 'END_FORM'.....
    Closes form printing
    call function 'CLOSE_FORM'...
    OPEN_FORM function
    Syntax:
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
      APPLICATION                       = 'TX'
      ARCHIVE_INDEX                     =
      ARCHIVE_PARAMS                    =
      DEVICE                            = 'PRINTER'
      DIALOG                            = 'X'
      FORM                              = ' '
      LANGUAGE                          = SY-LANGU
      OPTIONS                           =
      MAIL_SENDER                       =
      MAIL_RECIPIENT                    =
      MAIL_APPL_OBJECT                  =
      RAW_DATA_INTERFACE                = '*'
    IMPORTING
      LANGUAGE                          =
      NEW_ARCHIVE_PARAMS                =
      RESULT                            =
    EXCEPTIONS
      CANCELED                          = 1
      DEVICE                            = 2
      FORM                              = 3
      OPTIONS                           = 4
      UNCLOSED                          = 5
      MAIL_OPTIONS                      = 6
      ARCHIVE_ERROR                     = 7
      INVALID_FAX_NUMBER                = 8
      MORE_PARAMS_NEEDED_IN_BATCH       = 9
      SPOOL_ERROR                       = 10
      OTHERS                            = 11
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Some important parameters:
    FORM      Name of the form
    DEVICE      
    PRINTER : Print output using spool
    TELEFAX: Fax output
    SCREEN: Output to screen
    OPTIONS      Used to control attrubutes for printing or faxing (Number of copies, immediate output....
    The input for the parameter is structure ITCPO.
    CLOSE_FORM function
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
      RESULT                         =
      RDI_RESULT                     =
    TABLES
      OTFDATA                        =
    EXCEPTIONS
      UNOPENED                       = 1
      BAD_PAGEFORMAT_FOR_PRINT       = 2
      SEND_ERROR                     = 3
      SPOOL_ERROR                    = 4
      OTHERS                         = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Paramerters:
    RESULT      Returns status information and print/fax parameters after the form has been printed. RESULT is of structure ITCPP.
    WRITE_FORM function
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
      ELEMENT                        = ' '
      FUNCTION                       = 'SET'
      TYPE                           = 'BODY'
      WINDOW                         = 'MAIN'
    IMPORTING
      PENDING_LINES                  =
    EXCEPTIONS
      ELEMENT                        = 1
      FUNCTION                       = 2
      TYPE                           = 3
      UNOPENED                       = 4
      UNSTARTED                      = 5
      WINDOW                         = 6
      BAD_PAGEFORMAT_FOR_PRINT       = 7
      SPOOL_ERROR                    = 8
      OTHERS                         = 9
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Some important parameters:
    ELEMENT      Specifies which textelement is printed
    WINDOW      Specifies which window is printed
    TYPE      Specifies the output area of the main window. This can be:
    TOP - Used for headers
    BODY
    BOTTOM - Used for footers
    FUNCTION      Specifies whether text is to be appended, replaced or added
    Example of how to use the WRITE_FORM function module together with a script.
    Form layout of the MAIN window
    /E INTRODUCTION
    Dear Customer
    /E ITEM_HEADER
    IH Carrier, Departure
    /E ITEM_LINE
    IL &SBOOK-CARRID&, &SPFLI-DEPTIME&
    /E CLOSING_REMARK
    The print program
    Writing INTRODUCTION
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
              ELEMENT                  = 'INTRODUCTION'
              FUNCTION                 = 'SET'
              TYPE                     = 'BODY'
              WINDOW                   = 'MAIN'
        EXCEPTIONS
             OTHERS                   = 8
    Writing ITEM_HEADER
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
              ELEMENT                  = 'ITEM_HEADER'
              FUNCTION                 = 'SET'
              TYPE                     = 'BODY'
              WINDOW                   = 'MAIN'
        EXCEPTIONS
             OTHERS                   = 8
    Set ITEM_HEADER into TOP area of main window for subsequent pages
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
              ELEMENT                  = 'ITEM_HEADER'
              FUNCTION                 = 'SET'
              TYPE                     = 'TOP'
              WINDOW                   = 'MAIN'
        EXCEPTIONS
             OTHERS                   = 8
    Write ITEM_LINE
    LOOP AT .....
       CALL FUNCTION 'WRITE_FORM'
            EXPORTING
                 ELEMENT               = 'ITEM_LINE'
                 FUNCTION              = 'SET'
                 TYPE                  = 'BODY'
                 WINDOW                = 'MAIN'
           EXCEPTIONS
                OTHERS                 = 8.
    ENDLOOP.
    Delete ITEM_HEADER from TOP area of main window
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
              ELEMENT                  = 'ITEM_HEADER'
              FUNCTION                 = 'DELETE'
              TYPE                     = 'TOP'
              WINDOW                   = 'MAIN'
        EXCEPTIONS
             OTHERS                    = 8
    Print CLOSING_REMARK
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
              ELEMENT                  = 'CLOSING_REMARK'
              FUNCTION                 = 'SET'
              TYPE                          = 'BODY'
              WINDOW                   = 'MAIN'
        EXCEPTIONS
             OTHERS                    = 8
    START_FORM function
    CALL FUNCTION 'START_FORM'
    EXPORTING
      ARCHIVE_INDEX          =
      FORM                   = ' '
      LANGUAGE               = ' '
      STARTPAGE              = ' '
      PROGRAM                = ' '
      MAIL_APPL_OBJECT       =
    IMPORTING
      LANGUAGE               =
    EXCEPTIONS
      FORM                   = 1
      FORMAT                 = 2
      UNENDED                = 3
      UNOPENED               = 4
      UNUSED                 = 5
      SPOOL_ERROR            = 6
      OTHERS                 = 7
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    END_FORM function
    CALL FUNCTION 'END_FORM'
    IMPORTING
      RESULT                         =
    EXCEPTIONS
      UNOPENED                       = 1
      BAD_PAGEFORMAT_FOR_PRINT       = 2
      SPOOL_ERROR                    = 3
      OTHERS                         = 4
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CONTROL_FORM function
    The CONTROL_FORM function module alows you to create SapScript control statements from within an APAB program.
    Syntax:
    CALL FUNCTION 'CONTROL_FORM'
      EXPORTING
        command         =
    EXCEPTIONS
      UNOPENED        = 1
      UNSTARTED       = 2
      OTHERS          = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Example:
    Protecting the text element ITEM_LINE
    CALL FUNCTION 'CONTROL_FORM'
      EXPORTING
        COMMAND = 'PROTECT'.
    CALL FUNCTION 'WRITE_FORM'
      EXPORTING
        TEXELEMENT = 'ITEM_LINE'.
    CALL FUNCTION 'CONTROL_FORM'
      EXPORTING
        COMMAND = 'ENDPROTECT'.

  • What is the inbuilt function for ctrl+f11 and f11?

    what is the inbuilt function for ctrl+f11 and f11?

    Forms version?
    If 11g then see the fmrpcweb.res file in %ORACLE_INSTANCE%config\FormsComponent\forms folder.
    If you ask questions with inadequate inputs like this one, you are bound to end up with
    >
    Handle:      shravan
    Status Level:      Newbie
    Registered:      Sep 20, 2011
    Total Posts:      16
    <b>Total Questions:      10 (10 unresolved) </b>
    >
    Cheers,

  • What is the equivalent Windows laptop?

    What's the best Windows laptop equivalent to the MBP 15.4"? My vote goes to the Thinkpad T60p.

    sigh
    He asked what's the equivalent. When people ask for the "equivalent", they mean comparable hardware at a similar price. Most techies (who are what Apple's trying to court right now) will want to see similar specs, maybe compare weights, size, etc. We don't really care about immeasurable things like "design" and relatively useless stuff like the "patent pending magnetic power connector" (I have never, ever tripped over my laptops' wires. Neither has my family. And over the course of the last 10 years I've owned 6 laptops).
    As for trying to compare, if you honestly don't know what you're talking about, please don't speak. Dual Athlons are not the equivalent of an Intel Core Duo. Dual Athlons are a lot faster and guzzle tremendous amounts of energy. If you want to make a valid comparison, look at the Inspiron 9300 with Core Duo and a similar video card.
    Please don't let the reality distortion field and marketingspeak affect what you say to others. This is a big year for Apple to court us geeks, and we really, REALLY don't like the reality distortion field and marketingspeak. Just give us specs and benchmarks. Thanks.

  • HT201250 I use Time Machine to back up my entire computer with my external hard drive. I am getting a brand new iMac this month and was wondering what is the process of using this back up to restore my new computer exactly how my old computer was?

    I use Time Machine to back up my entire computer with my external hard drive. I am getting a brand new iMac this month and was wondering what is the process of using this back up to restore my new computer exactly how my old computer was? I want to make sure I will still have various important files on my new computer, like my songs in iTunes, my photos in iPhoto, etc, etc. Thanks so much in advance!

    Welcome to the Apple Support Communities
    When you turn on the new iMac for the first time, Setup Assistant will ask you to restore a backup, so connect the external disk and follow steps to restore all your files to your new iMac. Your new Mac will have the same settings and programs as your old computer.
    In other cases, I would recommend to restore the whole backup without using Migration Assistant or Setup Assistant, but a Late 2012 iMac uses a special OS X build, so the OS X version that you're using on your old Mac won't work on the new one. For more information, see > http://pondini.org/OSX/Home.html

  • I have problems in the initiation of the Encore process when opening presents the following error message : "Encore CS6 Cannot Run in Non-Royalty Serialized".... What is the best solution for this problem ?

    Help Me.
    What is the best solution for this problem ?

    Encore is activated when you activate Premiere Pro... so, as Stan asked, how did you install P-Pro?
    Ask for serial number http://forums.adobe.com/thread/1234635 has a FAQ link
    -and a fix for Encore http://forums.adobe.com/thread/1421765?tstart=0 in reply #7
    -plus more Encore http://helpx.adobe.com/encore/kb/cant-write-image-fie-larger1.html

  • Can't log in message "what is the username associated with this smartphone​"

    When I attempt to login to app world, I enter my email address and pw, and the it gives me a popup for - "what is the username associated with this smartphone".  How do I find out what to enter here?  (I don't remember what I may have used in the past).  
    Also, how can I be sure that I am using the right email address to login?  I've tried my other emails and I get stopped before this screen since it doesn't recognize the email.
    THanks for your help

    How can you do a security wipe if you cannot get past the blue BlackBerry ID login page?

  • What is the exact problem with this file?

    Hi all,
    There is an old form , which was not in use from many days.
    Now when we tried to run the form, i got the error saying "FRM-40734:Internal Error:Pl/SQL error occured.", in the login form.
    When i tried to open the fmb file in Oracle Forms Builder 6i, i got the following error:
    FRM-10102: Cannot attach PL/SQL library d2kwutil. This library attachment will be lost if the module is saved., but the fmb file got open.
    The login button has the following code:
    DECLARE
      UNAME VARCHAR2(30);
      --USER_ID PARAMLIST;
      V_USER APUSERMA.USER_NAME%TYPE;
      V_PASSWED APUSERMA.USER_PASSWD%TYPE;
    BEGIN
    select user_CD INTO :GLOBAL.USER_ID from apuserma 
    where user_CD = :TI_USER_NAME AND user_PASSWD = :IT_USER_PASSWD
    AND SYSDATE BETWEEN USER_VALID_FRM AND USER_VALID_TO;
    :global.user_id  := substr(win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername'),1,10);
    :global.compname := :compname;
    compnm(:compname);
    --USER_ID := CREATE_PARAMETER_LIST('USER_id_NAME');
    call_form('Forms\MAIN_SCREEN',hide,DO_REPLACE);
    exception
      when no_data_found then
      MESSAGE('Incorrect Username or Password.  Please Re-Enter');
      message(' ');
      RAISE FORM_TRIGGER_FAILURE;
    END;
    EXIT_FORM;
    When i tried to compile, i got error saying ,
    Error 201 at line 10, column 28
    identifier 'WIN_API_ENVIRONMENT.READ_REGISTRY' must be declared.
    I am not getting to know What is the exact problem with this file?
    Help me with this please.
    Thank You.
    Oracle forms builder 6i.
    Oracle 9i.

    Vijetha wrote:
    I also want to know what is the use of  win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername') ??
    What does it do??
    If i comment the following line , will it be a problem??
    :global.user_id  := substr(win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername'),1,10);
    Because i commented the above line & compiled, so it is not giving any error now.
    So please tell me what win_api_environment.read_registry does??
    it's read windows registry value. So, no problem if you comment it.
    Thanks

  • I accidentally deleted my media files from iTunes and Trash when I was trying to move the files to an external hard drive. Is there a way to restore the media files from a Time Machine backup or from iTunes Match? What are the steps to do this?

    I accidentally deleted my media files from iTunes and Trash when I was trying to move the files to an external hard drive. Is there a way to restore the media files from a Time Machine backup or from iTunes Match? What are the steps to do this?

    If you have been backing up on Timemachine.
    All you need to do is enter time machine... Then the rest is obvious.
    Find the iTunes folder and hit 'Restor'.
    If not the only way to get all your iTunes music back is to enter iTunes Store.
    On the right hand side you should see 'Purchased'.
    Click 'purchased' and there you have it.

  • What is the equivalent for 'On Change of' Event in ABAP OBJECTS?

    What is the equivalent for 'On Change of' Event in ABAP OBJECTS?  and how to use it in LOOP control?

    hi,
    There is no such Equivalent in OO ABAP.
    You have to Raise your own Event within tha class checking the value of the field whose value is changing.
    Regards
    Sumit Agarwal

Maybe you are looking for

  • Mail going to wrong account

    Two of my mail servers that I manage are delivering mail to the wrong account for example some emails sent to say [email protected] are ending up in [email protected] If you look at the header sam is not a recipient nor is she a forward in aliases an

  • OIM 11Unknown entity type Account with ID while using linkEventToUser() API

    I would like to link an recon event (which is in status "No User Match Found" ) to an user.The recon event is generated through target recon using reconciliation API I am using the API linkEventToUser() but getting the following error. <Error> <oracl

  • Address list error -- 5.7.1 Relaying not allowed

    Hi, We have setup the Java Messaging Server to send/recieve mails from a gateway. The inbound mail flow works perfectly but, the outbound mail flow has issues. The outbound mails are not hitting the gateway. When checked the log for outbound mail, it

  • Help!! Still won't work.....

    I run windows 7. I have downloaded flash before with no problem. Following the advice recently posted to my first question I did everything I was told. Still nothing works. I will admit I have very little knowledge when it comes to computers but I ha

  • Debug IPC using NetWeaver Studio

    Hello, Does anybody know how can I debug my local IPC using NetWeaver studio?  I tried to launch dispatcher.bat or server.bat from NetWeaver but gives out the error. I would really appreciate any inputs. Thanks, JC