Little help for the beginer

when I try to compile this program
import java.applet.Applet;
import java.awt.*;
public class OnnurTilraun extends Applet
     TextField t1, t2;
     Button b1;
     Label a1;
     public void init()
          t1 = new TextField(20);
          t2 = new TextField(20);
          b1 = new Button("Heilsa");
          a1 = new Label("Nafn:");
          this.add(a1);
          this.add(t1);
          this.add(b1);
          this.add(t2);
     public boolean action(Event e, Object o)
          if (e.target == b1)
               t2.setText("Good day" + t1.getText());
               return true;
          return false;
I get this message(Note: "Filename".java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
Tool completed successfully)
but when I try to run the applet the appletviewer can�t start the applet so I recompile with -deprecation I get this message("filename".java:26: warning: action(java.awt.Event,java.lang.Object) in java.awt.Component has been deprecated
     public boolean action(Event e, Object o)
^
1 warning
Tool completed successfully)
What to do, I don�t know so I asking you

The warning message you get about deprecation is a warning and not a fatal error, and you may ignore it. It means that you use code that is considered "outdated", and that may (or may not) be discontinued in some future JVM. It is probably not the reason you can't run the applet. The reason appletviewer won't start the applet is hard to know without knowing what error message you get, but a wild guess is that there is some minor error in html file you use to start the applet
If you don't want to ignore the deprecation warning, do the rewrite virum suggested. As for the problem with "cannot resolve symbol", you need to import the ActionEvent class. Add
import java.awt.event.*;together with your other import statements.

Similar Messages

  • Little Help For the New Bee

    Hello,
    though I work a lot with FCP and all the other pro applications, I have never been in a professional enough environment to have to use Compressor. I have a file that is an MPEG 4 Movie. Dimensions: 720X304. I just need to be able to put it into Final Cut Pro and edit with the best quality. How do I go about converting? I messed around with it for a while, but with no success. It seems very straight foward, but I think I am missing something. Please help if you can.
    thanks,
    Toolius

    Hey Toolius
    if i am reading this information correctly, this file's codec is a mpeg, but with AAC audio. are you SURE that you didnt leave out the 4 in mpeg4???
    what is the extension of the file, *.mov, *.mp4?
    if you want to edit in FCP, then all you have to do is a simple transcode to the file.
    seems like you have a widescreen 16:9 (maybe 1.85 or 2.35) file.
    you can do this transcode in one of two ways, via QT Pro itself, or Mpegstreamclip.
    would you want to keep your video as 16:9 or 4:3?
    if you want it 16:9 you have 2 options, 720x480 anamorphic or 960x540 (this is for 16:9, 1.78 FF, so yo will still have mattes).
    if you want it 4:3 then you can use 720x480.
    the only thing with all this is that your footage is compressed, so try to keep it as lossless as possible throughtout the whole process, like that, you minimize cascade compression (basically compressing the already compressed footage).
    make sure that you also keep in mind your codec sequence, like that, you will NOT have to render this footage!~
    Mikey M.

  • F4 HELP  for the field

    HI all,
    in the report selection screen i have one field for which F4 HELP  doesnt exits, even in the table for that field F4 HELP is not there but the user requests me to get the F4 HELP for that field in the selection screen .
    please help how to get F4 HELP  for the field
    thanks in advance.

    The following are the options for F4 help
    Code:
    PARAMETERS: p_ccgrp LIKE rkpln-ksgru. "Cost Center Group
    *Input help for Cost Center Group
    AT SELECTION-SCREEN ON VALUE-REQUEST   FOR p_ccgrp.
    TYPES: BEGIN OF ty_ccenter_group,
    setname TYPE setnamenew,
    descript TYPE settext,
    END OF ty_ccenter_group.
    DATA: it_ccenter_group TYPE TABLE OF ty_ccenter_group.
    CLEAR it_ccenter_group.
    SELECT a~setname
    b~descript
    INTO TABLE it_ccenter_group
    FROM setheader AS a INNER JOIN
    setheadert AS b ON
    asubclass EQ bsubclass AND
    asetname EQ bsetname
    WHERE a~setclass EQ '0101' AND
    b~langu EQ sy-langu.
    CALL FUNCTION 
    'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    ret field        =  'SETNAME'
    dynpprog     =  v_repid
    dynpnr         =    SY-DYNR
    dynprofield = 'P_CCGRP'
    value_org    = 'S'
    TABLES
    value_tab   = it_ccenter_group.
    F4IF_FIELD_VALUE_REQUEST:
    This FM is used to display value help or input from ABAP dictionary. We have to pass the name of the structure or table (TABNAME) along with the field name (FIELDNAME). The selection can be returned to the specified screen field if three
    parameters DYNPNR, DYNPPROG, DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    TABNAME = table/structure
    FIELDNAME = 'field name'
    DYNPPROG = SY-CPROG
    DYNPNR = SY-DYNR
    DYNPROFIELD = 'screen field'
    IMPORTING
    RETURN_TAB = table of type DYNPREAD
    Getting F4 help based on other  field  .
    Suppose  if there  are  2 fields on selection screen  user name and Purchasing Document  and  the case is getting values of  Purchasing Document Number  based on  user name
    Code:
    TYPES:   BEGIN OF ty_match_nast,
                    objky TYPE na_objkey,
                    END OF ty_match_nast.
    Data: it_match_nast   TYPE STANDARD TABLE OF ty_match_nast.
    Data: it_dypr_val   TYPE STANDARD TABLE OF dynpread.
    DATA: wa_dypr_val  TYPE dynpread.
    DATA: it_return TYPE STANDARD TABLE OF ddshretval.
    Case when only username value is entered.
           SELECT objky
            FROM   nast
            INTO  TABLE it_match_nast
             WHERE kappl  = c_ef
             AND   kschl = c_neu
             AND   usnam = wa_dypr_val-fieldvalue.
          ENDIF.
    *Read User name  on  selection screen field value
      CLEAR wa_dypr_val.
      REFRESH it_dypr_val.
      wa_dypr_val-fieldname = 'P_UNAME'.      "User name
      APPEND wa_dypr_val TO it_dypr_val.
    *FM to get the value
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname             = sy-repid
          dynumb             = sy-dynnr
          translate_to_upper = 'X'
        TABLES
          dynpfields         = it_dypr_val_h.
    *Pass the values to f4 table
       CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield     = u2018OBJKY'
            dynpprog    = sy-repid
            dynpnr      = sy-dynnr
            dynprofield = 'P_EBELN'
            value_org   = 'P'
         TABLES
            value_tab   = it_match_nast
            return_tab  = it_return.

  • F4 help for the batch field in VL02N transaction

    We have upgraded our system from 4.6 to ecc 6.0 .In 4.6 the f4 help for the batch had " Batch selection via plant/Material/Storage location/Batch " which is not there in ECC 6.0.
    Please tell us the procedure to add in the existing  search help H_MCHA in ECC 6.0
    Thanks
    Aruna

    Hi Aruna.
      Create ur own search help using se11 tcode for required fields.
      Thanks & Regards,
    Kiran.
    Plz give rewards if and only if it is helpfull.

  • F4 help for the field requisitioner in ME51n

    hi friends,
    i got a requirement to give F4 help for the filed  requisitioner in Me51N which will be in item level .
    can any one give me the exit, badi, enhancement-point for this.
    thanks and regards,
    venkat.

    not answered

  • How to display Help for the message in our program

    Hi Experts,
    Do any one know how to display the HELP for the Message in our ABAP program? Just like the user click the Long Text button in SE91.Do we have any function modules or Class method to do that? Thanks in advance.
    Joe

    Hi Joe,
    While creating a message class in se93, theres a button (documentation) on the application tool bar. Click on that and you will be lead to a text editor where you can fill in the necessary documentation for the message you have created.

  • Need help for the $200 promo rebate for trade-in of I Phone 4

    Need help for the $200 promo rebate for trade-in of I Phone 4.  Unable to preregister when I ordered the new 6  in September.  Now can not contact VZW recycle program regarding.

    When I ordered my phone on Sept. 13th in a Verizon store, I had to ask the salesman how I went about getting the $200 rebate. He said shipping materials would come with the new phones. When I received the confirmation e-mail of my order, it contained a link for the rebate. Fortunately I clicked on the link, filled out the form online, and received the packing materials to send my phone in shortly after. My phones came in on Oct. 14th and I sent 3 of them back. So far I have received a gift card for $200 for 2 of the phones; the other is showing not received. I don't know what your situation is, but I think the promotion ended Oct. 15th. If I had listened to the salesman I think I would be out of luck as well. I hope I am wrong for your sake.

  • Issue with F4 help for the variables for the 0CALWEEK and 0CALMONTH

    We have custom IOs which refers to 0CALWEEK and 0CALMONTH.In the report we have variables on the custom IOs.For these variables F4 help does not giving any values .I tested with  0CALWEEK also. For the 0CALWEEK also F4 help does not working..Please help me on this issue.The variable I haveused d to test with 0CALWEEK is 0S_CWEEK.
    Edited by: Sudhakar Are on Jul 6, 2010 4:17 PM

    Hi Pramod,
    I don't know how it is done in infoset. But if you have a context node and attribute for the field which is displayed in the view, create a custom dictionary search help for the field you want. Design the search help as per your requirements (what fields to be displayed etc..).
    In the context attribute of that field property, select 'Dictionary search help' in the Input help mode. Enter the name of your custom search help here.
    Thanks & Regards,
    Satheesh.

  • F4 help for the screen fields in module pool program

    Hi All,
      I have a requirement that, i want to provide F4 help for the 2 fields in module pool program. the fields are document number and fiscal year from rbkp table.
    i could provide search help for two fields.
    but how to select matching fiscal year for that document number.
    problem: i am getting fiscal year as first four digits of document number.
    please help me to solve this problem.
    Thanks & Regards,
    Namratha.V

    Hi,
       If your requirement is after selecting the document no from f4 help then the corresponding year should be updated in the document year field then use FM --> DYNP_VALUES_UPDATE
    In  this function module pass the screen no program & field for which u want to update value

  • Providing F4 help for the same field on selection screen

    Hello Experts,
    My requirement is :
    There are 2 radio buttons and a parameter "p_file" on my selection scree.
    1. rb_appl
    2. rb_pres
    If the radio button rb_appl = 'X', I need to place the logic of F4 help of application server for the field p_file. Else if the rb_pres = 'X', then I need to place the logic of F4 help of presentation server for the same field p_file.
    I have written the code in the below manner
    PARAMETERS: rb_appl RADIOBUTTON GROUP rad DEFAULT 'X',
                             rb_pres RADIOBUTTON GROUP rad ,
                             p_file   TYPE ibipparms-path.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      IF rb_appl = 'X'.
          PERFORM f_applictn_server_filenm.
      ELSEIF rb_pres = 'X'.
        PERFORM f_presentation_filenm.
      ENDIF.
    But I am getting the F4 help for only the radio button for which i have placed the default value in the parameters.
    So please let me know how to define the F4 help for the same field based on the radio buttons.

    Hi,
    You can acheive the same by the addition of [USER-COMMAND fcode].
    RADIOBUTTON GROUP group [USER-COMMAND fcode] - The addition USER-COMMAND can be used to assign a function code fcode to the first parameter in a radio button group. The function code fcode must be specified directly, and have a maximum length of 20 characters. When the user selects any radio button of the radio button group on the selection screen, the runtime environment triggers the event AT SELECTION-SCREEN and transfers the function code fcode to the component ucomm of the interface work area sscrfields.
    So you code should be altered as
    PARAMETERS: rb_appl  RADIOBUTTON GROUP rad
                         USER-COMMAND radclick    "Addition which you have to make.
                         DEFAULT 'X',
                rb_pres  RADIOBUTTON GROUP rad ,
                p_file   TYPE ibipparms-path.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      IF rb_appl = 'X'.
        PERFORM f_applictn_server_filenm.
      ELSEIF rb_pres = 'X'.
        PERFORM f_presentation_filenm.
      ENDIF.
    Thanks & Regards,
    Harish

  • How to find the search help for the parameters stmt in a report

    hi
    how to find the search help for the parameters stmt in a report , that is using which addition to the parameters statement

    I am not sure if I understood the question,but if you meant how to attach a search help to parameter for which a default search help is not available,you can do that by using addition  "Matchcode Object"
    Parameter: a type i matchcode object 'Search Help Name'
    Search Help name should be in single quotes.
    Regards,
    Anubhav.
    P.S: Award Points if useful.

  • Audio cable help for the new AppleTV.

    Audio cable help for the new AppleTV.
    Currently I have an original AppleTV with audio RCA plugs to mini plug into my BOSE speakers.
    The 2nd Gen AppleTv has a Toslink input. I've looked at cables of Toslink to optical mini. Will this cable work? The optical mini part I'm not sure of what it is.
    Thanks so much. The monitor I use doesn't have speakers.
    This is the cable I see at Amazon
    http://www.amazon.com/gp/product/B0002JFN1K/ref=ordcartshr?ie=UTF8&m=ATVPDKIKX0DER
    Message was edited by: musicmaker

    If I understand your question correctly, you want to connect your Apple TV2 to your Bose system using a mini plug.
    You will need an optical to digital coax RCA converter (find it on Ebay about $15), then you can connect your mini cable. Here is a link to one I recently bought on Ebay: http://fwd4.me/nrQ

  • How to create Search help for the field /SAPSLL/PRGEN-ATTR20V

    Hi ,
    I need to add a search help for the field /SAPSLL/PRGEN-ATTR20V and their is a chk table used for this field is /SAPSLL/TCOATV20.
    In this table /SAPSLL/TCOATV20-ATTRV20V is a Primary key field.
    How can I add search help for this field?
    Any suggestions will be appreciated!
    Regards,
    Kittu

    HI,
    Fixed on my own..
    I am closing this thread!
    Thank you!
    Kittu

  • Search help for the "Week Select option"

    Hi Experts,
    My selection screen is like this:
    Article:  .............. to ..............
    Week  .............    to ...............
    I am taking article EKPO-MATNR field.and week S012-SPWOC field
    Now there is there search help for the S012-SPWOC field. How can I create the seach help for this fields.
    Regards
    Krishan

    hi,
    try this way.
    tables: ekpo, s012.
    select-options:article for EKPO-MATNR,
                    week for S012-SPWOC.
    Regards,
    Shankar.

  • Oracle Help for the Web 2.0 Production

    Oracle Help for the Web 2.0 is now available on OTN Downloads.
    Oracle Help for the Web (OHW) 2.0 is a major update to the previous releases OHW 1.1x and OHW 1.0.x, and is designed and recommended to replace both.
    Some of the new features in 2.0 include the following:
    Support for Bookmarking Navigator Pages
    OHW 2.0 no longer uses frames to store navigational state on the webpage. Each navigator stores its complete state on the URL, allowing each page to be bookmarked. This includes TOC locations, keyword locations, and search runs. In the view topic page, the frame information is also saved, allowing a user to forward the link via email, etc to the displayed topic. In addition, if you navigate to a named anchor within a topic page, this page position is also saved and is bookmarkable.
    Multiple Locale Support in a Single Instance
    OHW 2.0 can now support multiple locales in the same servlet instance. After you register the helpsets in the OHW configuration file, the OHW servlet will automatically determine the best locale to use for a user request (based on browser settings and what locales are available), and display the localized helpset (along with a localized OHW chrome) to the user. This feature also means that if you navigate to a topic in English, and then send the link via email to a user whose browser supports Japanese, if the Japanese helpset is registered, the topic link will appear in Japanese to the second user.
    Search Engine Support
    OHW has been specially designed so that search engine crawlers can reach all hosted content (including table of contents, and index pages) and easily traverse within and between the available navigators. Page titles have also been redesigned to make pages easier to locate from within a search engine result set.
    Ability to Share Resources Across Localized Helpsets
    OHW can be configured so that helpsets can share resources such as images and CSS stylesheets. Since each localized helpset no longer needs its own resources, this can dramatically reduce the size of the deployed file.
    Relative Content Locations
    Content locations can now be specified relative to the OHW configuration file.
    True Popup Support
    OHW now properly supports Oracle Help popup links. Following this link will bring up a dynamic draggable DHTML window (or a normal popup window if the browser does not support it) with the requested topic page.
    All Level Merging in the Table of Contents
    Using the default TOC engines, each level of the TOC will merge like elements together. This change reflects modifications made to core Oracle Help classes and mimics the feature added to Oracle Help for Java (OHJ).
    New Tree-based Table of Contents Navigator
    The Tree-based TOC navigator shows the data in a heirarchical fashion and allows the user to see the full TOC (and not just a limited part of the TOC, as with previous versions of OHW). The tree-based TOC navigator is a standard navigator and can be added by including it in the helpset configuration file.

    Yes, I am now able to access this page and download OHW.
    Thanks very much,
    Lucie

Maybe you are looking for

  • A new Encore user's experience.

    Being as this is a louge this might be a place to share. First, I am not a pro, but I have been using Premiere since 4.2 to produce simple teaching videos and over time have gotten to where I have done more fun stuff and even a couple of events, for

  • Ssd access freeze windows 7/8

    i had corsair force 128GB on my macbook pro. i installed mac os and windows 7 as bootcamp. i had no problem except disk space. i bought neutron 256gb. i have problems on windows 7. it is like it freeze on disk access. so windows 7 is so slow. i wait

  • IOS 7.1.2 to 6.1.3

    I'm using iPhone 4 with iOS latest version (7.1.2) Itz factory unlocked genuine ..  I wana go back to iOS 6 .. Any method u

  • How can I get LiveCycle Designer 7.1?

    I'd like to know how I can get LiveCycle Designer 7.1. I have Adobe Acrobat 7.0 Professional and LiveCycle Designer 7.0. How to update? Please tell me about infomation.

  • How to search apps in ITunes on the desktop

    I can find the page in iTunes that shows what Apple wants you to buy but I can't find a way to search for Apps. In the search button at the top if I enter something it simply times out and says it can't reach the store. Perry Let me edit this a bit t