Plz help!!! GUI samples

I am looking for sample codes or hints to let a java card applet communicate with an applet at the level of the host. I've tested successfully my card applet using the sun's simulator (jcwde). I thaught about using system call from my host applet to run the jcwde and then read the outputed file but it doesn't work, in addition my host applet is using j2sdk1.4 and as far as I know this version is not supported by sun's simulator ( which works with jdk1.3).
please save my life!!
Truly,
JCbeginner

I don't know about saving your life. I haven't seen the specifications >for that yet. What's the APDU for it ? I am sorry if the words I used were not appropriate but it is really important for me to finish off this work in the following couple of days. My english is not good since it is not my mother-tongue language.
I posted this request because I found that there were some posted messages where a developper called "DNeelesh" was providing some simple gui code.
Why would you want to simulate to the JCWDE ? It doesn't enforce JC >because it runs the Java VM not a Java Card VM. unfortunately, I didn't understand what you mean :(
my aim is to run my applet at the client side and be able to run the simulation from it and parse the output of the simulation ( jcwde.out) before displaying it in the gui interface.
I also didn't understand how the offcard communication can help me, all my concern is about running my simulation from within the host applet,
thanks in advance for any clarification

Similar Messages

  • Plz help with me gui problem(arraylist)

    my program
    stocksymbol ------------------ stockname ------------------ enter
    (label) (textfield) (label) (textfield) (button)
    create a gui application using jframe and jpanel so that user can enter stock details(symbol,name) when user press "enter(button)" the text entered in the textfield should be add to an arraylist.
    when we close the window ,we have to print the items present in the arraylist....
    i have created all the components but iam getting difficult in display the arraylist when i close the window
    i have created these classes
    public class Stock {?}
    public class StockEntryFrame extends JFrame {
    // code to allow the frame to handle a window closing event ? when the window is closed,
    // the stock list should be printed. ?
    public class StockEntryPanel extends JPanel {
    public StockEntryPanel(ArrayList<Stock> stockList) {
    can u plz help me how to diplay the contents in arraylist

    MY PROGRAM IS LIKE THIS:::::::::
    STOCKNAME-----------
    STOCKSYMBOL---------
    STOCK PRICE--------
    ENTER(BUTTON)
    WHEN USER ENTERS HIS INPUT IN THE TEXT BOX AND PRESS ENTER, THEN THE TEXT PRESENT IN THE TEXTBOX SHOULD BE ENTERED INTO AN ARRAYLIST.
    THIS IS A GUI PROGRAM......
    WHEN WE CLOSE THE FRAME ,WE HAVE TO DISPLAY THE CONTENTS PRESENT IN THE ARRAYLIST
    I HAVE CREATED THE PROGRAM LIKE THIS
    CLASS STOCKENTRYPANEL EXTENDS JPANEL
    //ADDING ALL THE COMPONETNS TO THE PANEL
    CLASS STOCKENTRY FRAME EXTENDS JFRAME
    //ADDING PANEL TO THE FRAME
    //I NEED THE CODE HERE
    WHEN WE CLOSE THE WINDOW THE ARRAYLIST DETAILS SHOULD BE PRINTED
    }

  • I have problem with daq..when it is connected with laptop it asks for all the options like sampling rate etc..It displays building VI and it stops..it is not processing further..cau u plz help to solve this problem

    i hav problem with daq initialisation...plz help to solve the above mentioned issue

    Hi muthu,
    we also have a problem: to less information…
    - What is connected to your laptop?
    - What is "it" in "it displays building VI"? Do you use the DAQ Assistent ExpressVI?
    - What means "plz"?
    And could you please put less text in the title of your message and more text (with relevant information) into the message body?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Error while trying to synchronize Audio and MIDI. plz help i cant hear anything

    plz help me i cant hear nothing and its says: Error while trying to synchronize Audio and MIDI.
    Sample Rate 38536 recognized.
    Check conflict between Logic Pro X and external device. ????????   PLZ HELP

    It means you are overtaxing the CPU, likely with just one (3rd party-)software instrument plugin. Ignore the word "external", in this context it often means "3rd party plugin".
    So what synth is it? Since you're Dutch, it's probably one of the trancy dancy synths, such as Albino, Diva, Sylenth or Massive... I could be wrong though...
    The best way to avoid this message is to Freeze the track with the guilty synner - however, a frozen track cannot be edited, so if that is a problem, you will have to make the synth itself run lighter, which can be achieved by turning of internal effects that are ON the synth itself, especially reverb.
    http://help.apple.com/logicpro/mac/10/#lgcpf1cbfd51

  • Hi im having huge problems trying to install flash for my mac 10.5 imac, iv gone through the internet and tried all of the solutions, everytime i try to install flash it says cant read the download file, or it just wont install, anybody plz help!

    hi im having huge problems trying to install flash for my mac 10.5 imac, iv gone through the internet and tried all of the solutions, everytime i try to install flash it says cant read the download file, or it just wont install, anybody plz help!
    iv unistalled flash, iv checked plug ins it just wont work,

    It would have been a great help to know precisely what Mac you have, so some of the following may not apply:
    You can check here:  http://www.adobe.com/products/flash/about/  to see which version you should install for your Mac and OS. Note that version 10,1,102,64 is the last version available to PPC Mac users*. The latest version,10.3.183.23 or later, is for Intel Macs only running Tiger or Leopard, as Adobe no longer support the PPC platform. Version 11.4.402.265 or later is for Snow Leopard onwards.
    (If you are running Mavericks: After years of fighting malware and exploits facilitated through Adobe's Flash Player, the company is taking advantage of Apple's new App Sandbox feature to restrict malicious code from running outside of Safari in OS X Mavericks.)
    * Unhelpfully, if you want the last version for PPC (G4 or G5) Macs, you need to go here:  http://kb2.adobe.com/cps/142/tn_14266.html  and scroll down to 'Archived Versions/Older Archives'. Flash Player 10.1.102.64 is the one you download. More information here:  http://kb2.adobe.com/cps/838/cpsid_83808.html
    You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb2.adobe.com/cps/909/cpsid_90906.html
    and also that you follow the instructions closely, such as closing ALL applications (including Safari) first before installing. You must also carry out a permission repair after installing anything from Adobe.
    After installing, reboot your Mac and relaunch Safari, then in Safari Preferences/Security enable ‘Allow Plugins’. If you are running 10.6.8 or later:
    When you have installed the latest version of Flash, relaunch Safari and test.
    If you're getting a "blocked plug-in" error, then in System Preferences… ▹ Flash Player ▹ Advanced
    click Check Now. Quit and relaunch your browser.
    You can also try these illustrated instructions from C F McBlob to perform a full "clean install", which will resolve the "Blocked Plug-in" message when trying to update via the GUI updater from Adobe.
    Use the FULL installer for 12.0.0.44:  Flash Player 12 (Mac OS X)
    And the instructons are here: Snow Leopard Clean Install.pdf
    (If you are running a PPC Mac with Flash Player 10.1.102.64 and are having problems with watching videos on FaceBook or other sites, try the following solution which fools the site into thinking that you are running the version 11.5.502.55:)
    Download this http://scriptogr.am/nordkril/post/adobe-flash-11.5-for-powerpc to your desktop, unzip it, and replace the current Flash Player plug-in which is in your main/Library/Internet Plug-Ins folder, (not the user Library). Save the old one just in case this one doesn't work.

  • PLZ help in interfacing my VI with NI 5640

    I am interfacing Ni 5640 PCI with the example VI of the modulation toolkit "QAM transceiver" using the instrument driver of PCI 5640 not the labview FPGA driver
    My final constellation is with lot of errors.
    I am finding problems in setting the parameters of the PCI 5640. I am using the single tone generation VI at transmiter side and Spectrum measurement example Vi at RX side.
    parameters I am setting are
    at TX: 
    sampling rate of the complex cluster I am giving to ni 5640 R write waveform is 1600k S/s
    IQ rate giving to ni 5640 R configure generation is 1600k S/s
    Symbol rate is 100k Hz
    pulse shaping root raised cosine using 16 samples per symbol
    AT RX:
    what should be the span if i see in the example spectrum measurement or the IQ rate at the ni 5640 R configure acquisition
    how much samples to acquire?
    if my transmitted bits are 1044 and applying 4 QAM on them
    how should I resample my received array of IQ data????
    PLZ help or give me any example of a transceiver system interfaced with NI 5640r using instrument driver.

    good...yaar am too from AU
    so which dept r u from???and name..am from telecom A
    we r also doing 16 qam on dsp 6713, using labview...do meet me so dat we can resolve each others issues....
    regards
    wajahat Hassan

  • PlZ help me these question

    Hi all,
    i attended a interview, these are the qes..plz help me with ans..
    1. is it possible without using function modules in
    bdc(open, insert,close) data transferring? how ...
    2. which one is better session/call transection? why?
    3. in LSMW what r the methods u r using?
    4. in LSMW otherthan recording any method is there? what are they?
    5. in LSMW where are u doing field validation? in which step, can u explain?
    6. is it possible to run smartform without using
    " ssf_function_module_name", how ?
    7. how will display secondary list in ALV.
    8. how will u call back to secondary lists to base list?
    9. how u r printing secondary list in interactive reports?
    10. what are the events used in u r ALV reports?
    11. how will u access data in secondary list?
    12. what is diff b/w bapi created fm and standered bapi fm?
    13. in ALE in which programm worked either standalone or any other?
    here what is standalone?i know change pointer..

    Hi
    10. what are the events used in u r ALV reports?
    Events in alv and their FM    The main events in alv and their FM and why we use these: 
    1. SLIS_PRINT_ALV. 
    2. SLIS_T_LISTHEADER. 
    3. SLIS_T_EVENT. 
    4. SLIS_T_SORTINFO_ALV. 
    5. SLIS_T_LAYOUT_ALV. 
    6. SLIS_T_FIELDCAT_ALV. 
    and in classic reports what is the sequence of events:   === Events are 
    At selection-screen output. 
    Initialization. 
    At selection-screen on field 
    At selection-screen on end of field 
    At selection-screen on Radiobutton Group R1. (If you have any radio buttons) 
    At selection-screen on block b1. (If you have any blocks) 
    Start-of-selection. 
    Get node. (if the data is retreived from a logical database) 
    Get node late. (if the data is retreived from a logical database) 
    Top-of-page. (if the write statement is in the end-of-selection event or we can say that before the first write statement) 
    end-of-selection. 
    and fuction modules are 
    LISTHEADER - Is used to print the header information in the ALV List. Name, Date, Time, ALV Name and other details are called as Header information.   EVENT - Basically this is the FM to handle Event's. When the user needs to do some event operation like when double clicking the a particular field we need to perform some operation.   These events are captured by this FM.   LAYOUT - This FM is used to define the layout of the List. There are many options available in this FM to define the Layout style.   FIELDCAT - These are used to populate the List header. We can change them according to our req. 
    User-defined Text Output Event
        Application
          print_end_of_list
        Define output text to be printed at the end of the entire list
          print_top_of_list
        Define output text to be printed at the beginning of the entire list
          print_end_of_page
        Define output text to be printed at the end of each page
          print_top_of_page
        Define output text to be printed at the beginning of each page
          subtotal_text
        Define self-defined subtotals texts
    Mouse-controlled Actions in the Grid Control Event
        Application
          button_click
        Query a click on a pushbutton in the ALV Grid Control
          double_click
        Query a double-click on a cell of the ALV Grid control 
          hotspot_click
        Query a hotspot click on columns defined for this purpose in advance
          onDrag
        Collect information when elements of the ALV Grid Control are dragged 
          onDrop
        Process information when elements of the ALV Grid Control are dropped 
          onDropComplete
        Perform final actions after successful Drag&Drop 
          onDropGetFlavor
        Distinguish between options for Drag&Drop behavior
    Processing of Self-defined and Standard Functions Event
        Application
          before_user_command
        Query self-defined and standard function codes
          user_command
        Query self-defined function codes
          after_user_command
        Query self-defined and standard function codes
    Definition of Self-defined Functions Event
        Application
          toolbar
        Change, delete or add GUI elements in the toolbar
          menu_button
        Define menus for menu buttons in the toolbar
          context_menu_request
        Change context menu
          onf1
        Define self-defined F1 help
    All of these can be found under type group SLIS.
    Events
    SLIS_EV_ITEM_DATA_EXPAND        TYPE SLIS_FORMNAME VALUE 'ITEM_DATA_EXPAND',
    SLIS_EV_REPREP_SEL_MODIFY       TYPE SLIS_FORMNAME VALUE 'REPREP_SEL_MODIFY', SLIS_EV_CALLER_EXIT_AT_START TYPE SLIS_FORMNAME VALUE 'CALLER_EXIT',
    SLIS_EV_USER_COMMAND              TYPE SLIS_FORMNAME VALUE 'USER_COMMAND',
    SLIS_EV_TOP_OF_PAGE                     TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE',
    SLIS_EV_DATA_CHANGED                TYPE SLIS_FORMNAME VALUE 'DATA_CHANGED',
    SLIS_EV_TOP_OF_COVERPAGE       TYPE SLIS_FORMNAME VALUE 'TOP_OF_COVERPAGE',
    SLIS_EV_END_OF_COVERPAGE       TYPE SLIS_FORMNAME VALUE 'END_OF_COVERPAGE',
    SLIS_EV_FOREIGN_TOP_OF_PAGE TYPE SLIS_FORMNAME
    VALUE 'FOREIGN_TOP_OF_PAGE', SLIS_EV_FOREIGN_END_OF_PAGE TYPE SLIS_FORMNAME
    VALUE 'FOREIGN_END_OF_PAGE',
    SLIS_EV_PF_STATUS_SET                  TYPE SLIS_FORMNAME VALUE 'PF_STATUS_SET',
    SLIS_EV_LIST_MODIFY                      TYPE SLIS_FORMNAME VALUE 'LIST_MODIFY',
    SLIS_EV_TOP_OF_LIST                       TYPE SLIS_FORMNAME VALUE 'TOP_OF_LIST',
    SLIS_EV_END_OF_PAGE                    TYPE SLIS_FORMNAME VALUE 'END_OF_PAGE',
    SLIS_EV_END_OF_LIST                      TYPE SLIS_FORMNAME VALUE 'END_OF_LIST',
    SLIS_EV_AFTER_LINE_OUTPUT       TYPE SLIS_FORMNAME VALUE 'AFTER_LINE_OUTPUT', SLIS_EV_BEFORE_LINE_OUTPUT     TYPE SLIS_FORMNAME VALUE 'BEFORE_LINE_OUTPUT',
    SLIS_EV_SUBTOTAL_TEXT                TYPE SLIS_FORMNAME VALUE 'SUBTOTAL_TEXT'

  • Plz help me out with for all entries

    hi to all experts,
                              This is my sample code plz tell me how to output the data.plz help me out.im very much beginner in ABAP and i dont want to use loop and endloop is there any way
                                  REPORT  Z_FORALLENTERIES                        .
    types : begin  of ty_lfa1,
              lifnr type lfa1-lifnr,
              name1 type lfa1-name1,
              land1 type lfa1-land1,
            end of ty_lfa1.
    types : begin of ty_lfb1 ,
              lifnr type lfb1-lifnr,
              bukrs type lfb1-bukrs,
              pernr type lfb1-pernr,
            end of ty_lfb1.
    types : begin of ty_lfc1 ,
              lifnr type lfc1-lifnr,
              gjahr type lfc1-gjahr,
              usnam type lfc1-usnam,
             end of ty_lfc1.
    types :  begin of ty_lfbk ,
              lifnr type lfbk-lifnr,
              banks type lfbk-banks,
              bankl type lfbk-bankl,
              bankn type lfbk-bankn,
            end of ty_lfbk.
    types : begin of ty_final,
              lifnr type lfa1-lifnr,
              name1 type lfa1-name1,
              land1 type lfa1-land1,
              bukrs type lfb1-bukrs,
              pernr type lfb1-pernr,
              gjahr type lfc1-gjahr,
              usnam type lfc1-usnam,
              banks type lfbk-banks,
              bankl type lfbk-bankl,
              bankn type lfbk-bankn,
            end of ty_final.
    data : it_lfa1 type standard table of ty_lfa1 initial size 0 with header line.
    data : it_lfb1 type standard table of ty_lfb1 initial size 0 with header line.
    data : it_lfc1 type standard table of ty_lfc1 initial size 0 with header line.
    *--internal for outputting data--
    data : it_lfbk type standard table of ty_lfbk initial size 0 with header line.
    data : it_final type  standard table of ty_final initial size 0,
           wa_final like line of it_final.
    select lifnr name1 land1
           into table it_lfa1[]
           from lfa1 up to 10 rows.
    if it_lfa1[]  is not initial.
    select lifnr bukrs pernr
           into table it_lfb1[]
           from lfb1
           for all entries in it_lfa1[]
           where lifnr eq it_lfa1-lifnr.
    endif.
    if it_lfb1[] is not initial.
    select lifnr gjahr usnam
           into table it_lfc1[]
           from lfc1
           for all entries in it_lfb1[]
           where lifnr eq it_lfb1-lifnr.
    endif.
    if it_lfc1[] is not initial.
    select lifnr banks bankl bankn
           into table it_lfbk[]
           from lfbk
           for all entries in it_lfc1[]
           where lifnr eq it_lfc1-lifnr.
    endif.

    Hi
    see this program  almost same req
    **************DATA TYPES DECLARATION **********************
    TABLES: HRP1001, HRP1026, HRP1000,PCHDY.
    TYPE-POOLS SLIS.
    TYPES :BEGIN OF ST_OUTPUT,
            COUNT TYPE STRING,
            OBJID TYPE HRP1001-OBJID,
            STEXT TYPE HRP1000-STEXT,
            BEGDA TYPE HRP1000-BEGDA,
            ENDDA TYPE HRP1000-ENDDA,
            CANCRT TYPE T77CRT-CANCRT,
            AEDTM TYPE HRP1026-AEDTM,
            UNAME TYPE HRP1026-UNAME,
            LSTEXT TYPE HRP1000-STEXT,
           RINVT TYPE T777V-RINVT,
           END OF ST_OUTPUT.
    TYPES: BEGIN OF ST_HRP1000,
            OBJID TYPE HRP1001-OBJID,
            STEXT TYPE HRP1000-STEXT,
           END OF ST_HRP1000.
    TYPES : BEGIN OF ST_HRP1001,
             OTYPE TYPE HRP1001-OTYPE,
             OBJID TYPE HRP1001-OBJID,
             RELAT type hrp1001-RELAT,
             BEGDA TYPE HRP1001-BEGDA,
             ENDDA TYPE HRP1001-ENDDA,
             SCLAS TYPE HRP1001-SCLAS,
             SOBID TYPE HRP1001-SOBID,
            END OF ST_HRP1001.
    TYPES : BEGIN OF ST_HRP1026,
             OTYPE TYPE HRP1026-OTYPE,
             OBJID TYPE HRP1001-OBJID,
             AEDTM TYPE HRP1026-AEDTM,
             UNAME TYPE HRP1026-UNAME,
             DELET TYPE HRP1026-DELET,
             CANCR TYPE HRP1026-CANCR,
            END OF ST_HRP1026.
    TYPES : BEGIN OF ST_REASON,
             CANCR TYPE HRP1026-CANCR,
             CANCRT TYPE T77CRT-CANCRT,
            END OF ST_REASON.
    TYPES : BEGIN OF ST_SOBID,
             OTYPE TYPE HRP1001-OTYPE,
             OBJID TYPE HRP1001-OBJID,
             RELAT type hrp1001-OBJID,
             BEGDA TYPE HRP1001-BEGDA,
             ENDDA TYPE HRP1001-ENDDA,
             SCLAS TYPE HRP1001-SCLAS,
             SOBID TYPE HRP1001-OBJID,
            END OF ST_SOBID.
    TYPES : BEGIN OF ST_OBJID,
             OBJID TYPE HRP1001-OBJID,
            END OF ST_OBJID.
    TYPES : BEGIN OF ST_LOCATION,
             OTYPE TYPE HRP1001-OTYPE,
             OBJID TYPE HRP1001-OBJID,
             RSIGN TYPE HRP1001-RSIGN,
             RELAT TYPE HRP1001-RELAT,
             SCLAS TYPE HRP1001-SCLAS,
             SOBID TYPE HRP1001-SOBID,
            END OF ST_LOCATION.
    TYPES : BEGIN OF ST_LOCATION1,
             OTYPE TYPE HRP1001-OTYPE,
             OBJID TYPE HRP1001-OBJID,
             RSIGN TYPE HRP1001-RSIGN,
             RELAT TYPE HRP1001-RELAT,
             SCLAS TYPE HRP1001-SCLAS,
             SOBID TYPE HRP1001-OBJID,
            END OF ST_LOCATION1.
    TYPES : BEGIN OF ST_LSTEXT,
             OTYPE TYPE HRP1000-OTYPE,
             OBJID TYPE HRP1000-OBJID,
             LSTEXT TYPE HRP1000-STEXT,
            END OF ST_LSTEXT.
    TYPES : BEGIN OF ST_OBJID_SH,
             OTYPE TYPE HRP1000-OTYPE,
             OBJID TYPE HRP1000-OBJID,
            END OF ST_OBJID_SH.
    DATA : IT_OBJID_SH TYPE STANDARD TABLE OF ST_OBJID_SH.
    DATA : WA_OBJID_SH TYPE ST_OBJID_SH.
    DATA : IT_LSTEXT TYPE STANDARD TABLE OF ST_LSTEXT.              "TOS STORE THE TEXT OF COURCE LOCATION
    DATA : WA_LSTEXT TYPE ST_LSTEXT.
    DATA : IT_LOCATION TYPE STANDARD TABLE OF ST_LOCATION.          " TO STORE THE LOCATION OF COURCE
    DATA : WA_LOCATION TYPE ST_LOCATION.
    DATA : IT_LOCATION1 TYPE STANDARD TABLE OF ST_LOCATION1.        " TO CONVERT SOBID INTO OBJID FOR COURCE LOCATION
    DATA : WA_LOCATION1 TYPE ST_LOCATION1.
    DATA : IT_SOBID TYPE STANDARD TABLE OF ST_SOBID.                " TO CHANGE THE SOBID OF HRP1001 TO OBJID OF HRP1026
    DATA : WA_SOBID TYPE ST_SOBID.                                   " BY USING FOR ALL ENTRIES
    DATA : IT_REASON TYPE STANDARD TABLE OF ST_REASON.              "TO STORE T HE REASON FOR CANCELL TEXT
    DATA : WA_REASON TYPE ST_REASON.
    DATA : IT_OUTPUT TYPE STANDARD TABLE OF ST_OUTPUT.               "OUTPUT FEILDS OF REPORT.
    DATA : WA_OUTPUT TYPE ST_OUTPUT.
    DATA : IT_OUTPUT_1 TYPE STANDARD TABLE OF ST_OUTPUT.               " TEMP OUTPUT FEILDS OF REPORT.
    DATA : WA_OUTPUT_1 TYPE ST_OUTPUT.
    DATA : IT_HRP1000 TYPE STANDARD TABLE OF ST_HRP1000.             "DATA FROM HRP1000 TABLE
    DATA : WA_HRP1000 TYPE ST_HRP1000.
    DATA : IT_HRP1001 TYPE STANDARD TABLE OF ST_HRP1001.             "DATA FROM HRP1001 TABLE
    DATA : WA_HRP1001 TYPE ST_HRP1001.
    DATA : IT_HRP1026 TYPE STANDARD TABLE OF ST_HRP1026.              "DATA FROM HRP1026 TABLE
    DATA : WA_HRP1026 TYPE ST_HRP1026.
    DATA : IT_OBJID TYPE STANDARD TABLE OF ST_OBJID.                  " TO STORE THE OBJID OF HRP1001
    DATA : WA_OBJID TYPE ST_OBJID.
    DATA: WS_FCAT    TYPE SLIS_FIELDCAT_ALV .                         " FEILDCATALOG FOR ALV REPORT
    DATA: IN_FCAT    TYPE SLIS_T_FIELDCAT_ALV.
    DATA: W_LAYOUT   TYPE SLIS_LAYOUT_ALV.
    DATA : LV_COUNT TYPE I.                                           "FEILD FOR SERIAL NUMBER
    ***************************END OF DATA DECLARATION******************************************
    ***********SELECTION SCREEN DESIGN***********************
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    *SELECT-OPTIONS : S_OTYPE FOR HRP1001-OTYPE NO INTERVALS .
    SELECT-OPTIONS : S_OBJID FOR HRP1001-OBJID NO INTERVALS .
    SELECT-OPTIONS : DATE FOR SY-DATUM NO-EXTENSION OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK B1.
    **********END OF SELECTION SCREEN DESIGN*****************
    *****INITIALIZATION VENT TO ASIGN DEFAULT VALUES TO OTYPE
    *INITIALIZATION.
    S_OTYPE-LOW = 'D'.
    S_OTYPE-SIGN = 'I'.
    S_OTYPE-OPTION = 'EQ'.
    APPEND S_OTYPE.
    CLEAR S_OTYPE.
    *************END OF EVENT INITIALIZATION*****************
    *********VALIDATION FOR SCREEN FIELDS********************
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_OBJID-LOW.
    IF S_OBJID IS NOT INITIAL.
        SELECT OTYPE OBJID FROM HRP1000
                     INTO TABLE IT_OBJID_SH
                     WHERE OTYPE = 'D'.
    IF SY-SUBRC EQ 0.
    SEARCH HELP FOR QUALIFICATION.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
                 DDIC_STRUCTURE         = ' '
            RETFIELD               =  'OBJID'
                 PVALKEY                = ' '
           DYNPPROG               = SY-REPID
           DYNPNR                 = SY-DYNNR
           DYNPROFIELD            = 'S_OBJID'
                 STEPL                  = 0
                 WINDOW_TITLE           =
                 VALUE                  = ' '
           VALUE_ORG              = 'S'
                 MULTIPLE_CHOICE        = ' '
                 DISPLAY                = ' '
                 CALLBACK_PROGRAM       = ' '
                 CALLBACK_FORM          = ' '
                 MARK_TAB               =
               IMPORTING
                 USER_RESET             =
          TABLES
            VALUE_TAB              =  IT_OBJID_SH
                 FIELD_TAB              =
                 RETURN_TAB             = RETURN_TAB
                 DYNPFLD_MAPPING        =
               EXCEPTIONS
                 PARAMETER_ERROR        = 1
                 NO_VALUES_FOUND        = 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.
      ENDIF.
       IF SY-SUBRC NE 0.
         MESSAGE 'NO RECORD FOUND FOR THE GIVEN SELECTION CRITERIA.' TYPE 'E'.
       ENDIF.
    ENDIF.
    REFRESH IT_OBJID.
    ***************VALIDATION OF SCREEN FIELDS ENDS***********
    *****************START OF SELECTION ************************
    START-OF-SELECTION.
      SELECT OTYPE
             OBJID
             RELAT
             BEGDA
             ENDDA
             SCLAS
             SOBID FROM HRP1001 INTO TABLE IT_HRP1001
                        WHERE OTYPE = 'D'
                            AND OBJID IN S_OBJID
                            AND BEGDA GE DATE-LOW
                            AND ENDDA LE DATE-HIGH
                            AND ( SCLAS = 'E' OR SCLAS = 'ET' ).
      IF SY-SUBRC NE 0.
        MESSAGE 'NO RECORD FOUND FOR THE GIVEN SELECTION CRITERIA ' TYPE 'E'.
      ENDIF.
      LOOP AT IT_HRP1001 INTO WA_HRP1001.
        WA_SOBID-OTYPE = WA_HRP1001-OTYPE.
        WA_SOBID-OBJID = WA_HRP1001-OBJID.
        WA_SOBID-RELAT = WA_HRP1001-RELAT.
        WA_SOBID-BEGDA = WA_HRP1001-BEGDA.
        WA_SOBID-ENDDA = WA_HRP1001-ENDDA.
        WA_SOBID-SCLAS = WA_HRP1001-SCLAS.
        WA_SOBID-SOBID = WA_HRP1001-SOBID.
        APPEND WA_SOBID TO IT_SOBID.
      ENDLOOP.
      SELECT OTYPE
             OBJID
             AEDTM
             UNAME
             DELET
             CANCR
            NCONT
              FROM HRP1026
              INTO TABLE IT_HRP1026
              FOR ALL ENTRIES IN IT_SOBID
                 WHERE OBJID = IT_SOBID-SOBID
                 AND ( OTYPE = 'E' OR OTYPE = 'ET' )
                     AND DELET = 'X' AND
                     BEGDA GE DATE-LOW  AND
                     ENDDA LE DATE-HIGH.
      IF SY-SUBRC EQ 0.
        SELECT OBJID
               STEXT
               FROM HRP1000
               INTO TABLE IT_HRP1000
               FOR ALL ENTRIES IN IT_SOBID
                  WHERE OBJID = IT_SOBID-SOBID AND
                        BEGDA GE DATE-LOW  AND
                        ENDDA LE DATE-HIGH.
        SELECT CANCR
               CANCRT
               FROM T77CRT
               INTO TABLE IT_REASON
               FOR ALL ENTRIES IN IT_HRP1026
               WHERE CANCR = IT_HRP1026-CANCR
                 AND LANGU = 'E' .
    ********PERFORM FOR GETTING T HE LOCATION OF THE COURCE**
      PERFORM GET_LOCATION.
    **************END OF LOCATION OF COURCE ******************
      ELSE.
        MESSAGE 'NO RECORD FOUND FOR THE GIVEN SELECTION CRITERIA ' TYPE 'E'.
      ENDIF.
    *****PERFORM FOR GETTING DATA INTO THE FINAL INTERNAL TABLE IT_OUTPUT**
      PERFORM GET_DATA.
    *********************************END OF PERFORM ET DATA ***************
    ***********LOGIC FOR PRONTING NUMBER OF RECORDS ***********************
      LV_COUNT = 0.
      LOOP  AT IT_OUTPUT INTO WA_OUTPUT.
        LV_COUNT = LV_COUNT + 1.
        WA_OUTPUT-COUNT = LV_COUNT.
        APPEND WA_OUTPUT TO IT_OUTPUT_1.
      ENDLOOP.
      REFRESH IT_OUTPUT.
      IT_OUTPUT = IT_OUTPUT_1.
    ********************END OF LOGIC FOR NUMBER OF RECORDS ***************
    ****************DISPLAYING OUTPUT BY USEING GRID DISPLAY**********
      PERFORM ALV_DISPLAY.
    ****************************END OF PERFORM FOR DISPLAYING **********
    *&      Form  PERFORM_ALV
    DISPLAY THE RECORDS IN ALV GRID FORMAT.
    FORM ALV_DISPLAY.
      PERFORM FIELD_CATALOG USING 'COUNT' 'Sr. No.'.
      PERFORM FIELD_CATALOG USING 'OBJID' 'COURCE ID.'.
      PERFORM FIELD_CATALOG USING 'STEXT' 'COURCE NAME'.
        PERFORM FIELD_CATALOG USING 'LSTEXT' 'COURCE LOATION'.
      PERFORM FIELD_CATALOG USING 'BEGDA' 'BEGIN DATE '.
      PERFORM FIELD_CATALOG USING 'ENDDA' 'END DATE '.
      PERFORM FIELD_CATALOG USING 'CANCRT' 'REASON'.
      PERFORM FIELD_CATALOG USING 'AEDTM' 'DATE Of CANCEL'.
    PERFORM FIELD_CATALOG USING 'NCONT' 'NUMBER OF BOOKINGS'.
    PERFORM FIELD_CATALOG USING 'LOCTX' 'COURCE LOCATION'.
      PERFORM FIELD_CATALOG USING 'UNAME' 'WHO CANCELLED'.
    PERFORM FIELD_CATALOG USING 'LSTEXT' 'COURCE LOATION'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_STRUCTURE_NAME = 'IT_OUTPUT'
          I_GRID_TITLE     = ' Cancelled courses with reason '
          IT_FIELDCAT      = IN_FCAT
        TABLES
          T_OUTTAB         = IT_OUTPUT.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "PERFORM_ALV
    *&      Form  FIELD_CATALOG
          text
         -->FIELD_NAME text
         -->DIS_TEXT   text
    FORM FIELD_CATALOG USING FIELD_NAME DIS_TEXT.
      CLEAR WS_FCAT.
      WS_FCAT-TABNAME = 'IT_OUTPUT'.
      WS_FCAT-FIELDNAME = FIELD_NAME.
      WS_FCAT-SELTEXT_M = DIS_TEXT.
      APPEND WS_FCAT TO IN_FCAT .
    ENDFORM.                    "FIELD_CATALOG
    *&      Form  GET_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM GET_DATA .
    *sort it_sobid by objid.
      LOOP AT IT_SOBID INTO WA_SOBID." where otype eq s_otype and objid eq s_objid.
        READ TABLE IT_HRP1026 WITH KEY OBJID = WA_SOBID-SOBID OTYPE = WA_SOBID-SCLAS INTO WA_HRP1026.
        IF SY-SUBRC EQ 0.
          READ TABLE IT_HRP1000 WITH KEY OBJID = WA_SOBID-SOBID INTO WA_HRP1000.
       READ TABLE IT_REASON WITH KEY CANCR = WA_HRP1026-CANCR INTO WA_REASON.
          WA_OUTPUT-OBJID = WA_HRP1026-OBJID.
          WA_OUTPUT-BEGDA = WA_SOBID-BEGDA.
          WA_OUTPUT-ENDDA = WA_SOBID-ENDDA.
          WA_OUTPUT-AEDTM = WA_HRP1026-AEDTM.
          WA_OUTPUT-UNAME = WA_HRP1026-UNAME.
       WA_OUTPUT-NCONT = WA_HRP1026-NCONT.
       READ TABLE IT_HRP1000 WITH KEY OBJID = WA_SOBID-SOBID INTO WA_HRP1000.
          WA_OUTPUT-STEXT = WA_HRP1000-STEXT.
          READ TABLE IT_REASON WITH KEY CANCR = WA_HRP1026-CANCR INTO WA_REASON.
          WA_OUTPUT-CANCRT = WA_REASON-CANCRT.
          CLEAR WA_REASON-CANCRT.
          READ TABLE IT_LOCATION1 WITH KEY OBJID = WA_HRP1026-OBJID INTO WA_LOCATION1..
          READ TABLE IT_LSTEXT WITH KEY OBJID = WA_LOCATION1-SOBID OTYPE = 'F' INTO WA_LSTEXT.
                 WA_OUTPUT-LSTEXT = WA_LSTEXT-LSTEXT.
                 CLEAR WA_LSTEXT-LSTEXT.
          APPEND WA_OUTPUT TO IT_OUTPUT.
          CLEAR WA_OUTPUT.
          CLEAR WA_OUTPUT-CANCRT.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " GET_DATA
    *&      Form  GET_LOCATION
          text
    -->  p1        text
    <--  p2        text
    FORM GET_LOCATION .
    SELECT OTYPE
           OBJID
           RSIGN
           RELAT
           SCLAS
          SOBID
          FROM HRP1001
          INTO TABLE IT_LOCATION
          FOR ALL ENTRIES IN IT_HRP1026
          WHERE OTYPE = 'E' AND OBJID = IT_HRP1026-OBJID
           AND RSIGN = 'A' AND RELAT = '024' AND SCLAS = 'F'
                    AND BEGDA GE DATE-LOW AND ENDDA LE DATE-HIGH.
    IF SY-SUBRC NE 0.
        MESSAGE 'NO RECORD FOUND FOR THE GIVEN SELECTION CRITERIA ' TYPE 'E'.
      ENDIF.
      LOOP AT IT_LOCATION INTO WA_LOCATION.
        WA_LOCATION1-OTYPE = WA_LOCATION-OTYPE.
        WA_LOCATION1-OBJID = WA_LOCATION-OBJID.
            WA_LOCATION1-RSIGN = WA_LOCATION-RSIGN.
        WA_LOCATION1-RELAT = WA_LOCATION-RELAT.
        WA_LOCATION1-SCLAS = WA_LOCATION-SCLAS.
        WA_LOCATION1-SOBID = WA_LOCATION-SOBID.
        APPEND WA_LOCATION1 TO IT_LOCATION1.
       CLEAR WA_LOCATION1.
      ENDLOOP.
    SELECT OTYPE
           OBJID
           STEXT
           FROM HRP1000
           INTO TABLE IT_LSTEXT
           FOR ALL ENTRIES IN IT_LOCATION1
           WHERE OBJID = IT_LOCATION1-SOBID
              AND OTYPE = 'F'.
             AND BEGDA GE DATE-LOW
             AND ENDDA LE DATE-HIGH.
    ENDFORM.                    " GET_LOCATION
    <b>Reward if usefull</b>

  • Plz help me out here frez...urgent

    i really a need a program code that can read a length of string in a text file adn write the oupt in another file. for example, the program should be able to identify 14 bytesin the text file using string length and insert a semicolon at the end of the 14th bytes ( to be considered as 15th byte ) and finally write it out at a text file..Im really facing difficulties as im a beginner...plz help me...

    How quick it is will depend on how much you remember and how quickly you pick things up I guess, but one or more of the following should be good:
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java. This one has been getting a lot of very positive comments lately.

  • Ip to location ......plz help urgent

    Hi all,
    i need a code which finds out/tracks IP address of a machine and based on that it helps to find out which country it is.i mean based on specific IP ,i get to know country and on that basis Locale can be set.Ultimately when the page renders it shows that county language.
    Plz help me out to solve out this issue and its urgent.
    Any materials(tutorials,sample code) would be quite helpful for me.
    Thanks in advance.

    Hi Frank
    Thanks for ur reply.
    Yes its a web application but as i had described above i need to set locale/multilingual on the basis of users ip.ip will tell the location and after that locale can be set.
    Plz tell me desired sol.
    Thnks

  • I have just added sound fonts in my library bank, but everytime i try to load a sound tru DLS my logic crashes... Plz help.

    I have just added sound fonts in my library bank, but everytime i try to load a sound tru DLS my logic crashes... Plz help.
    cassykeys

    Have you tried importing them into the EXS 24 ? Assuming the process is the same if you're on Logic X, its just a matter of putting the soundfont files into the ~/Library/Application Support/Logic/Sampler Instruments folder and the EXS converts them when you try to load them - its explained properly in the Software Instruments manual (EXS24 section), but its very quick and  easy. It might provide a decent alternative.

  • PLZ HELP US IN IMPROVING PERFORMANCE

    Hi ,
    We recently installed solaris 10 (5.10) on sun sparc 64 bit machine and created oracle DB with 10.2.0.1 release .
    After solaris 10 installation, our application performance has come down drastically.
    The same application is running fine on solaris 9 ( 5.9 )
    Old configuration
    sun sparc 64 bit
    solaris 9 (no patches applied )     
    oarcle 10.2.0.1 (no patches applied )     
    jboss      3.2.7               
    jdk 1.4     
    New configuration
    sun sparc 64 bit
    solaris 10 (no patches applied )
    oarcle 10.2.0.1 (latest patches applied )
    jboss 4.2.0
    jdk 1.5_12
    we would like to know about any known Solaris , Oracle DB patches to address this performance issue.
    and also we would like to know about any incomapatability between the jboss and jdk we have used.
    Any solution to bring back performance, would be of great help to us.
    thanks a lot in advance.

    user645751 wrote:
    Hi ,
    We recently installed solaris 10 (5.10) on sun sparc 64 bit machine and created oracle DB with 10.2.0.1 release .
    After solaris 10 installation, our application performance has come down drastically.
    The same application is running fine on solaris 9 ( 5.9 )
    Old configuration
    sun sparc 64 bit
    solaris 9 (no patches applied )     
    oarcle 10.2.0.1 (no patches applied )     
    jboss      3.2.7               
    jdk 1.4     
    New configuration
    sun sparc 64 bit
    solaris 10 (no patches applied )
    oarcle 10.2.0.1 (latest patches applied )
    jboss 4.2.0
    jdk 1.5_12
    we would like to know about any known Solaris , Oracle DB patches to address this performance issue.
    and also we would like to know about any incomapatability between the jboss and jdk we have used.
    Any solution to bring back performance, would be of great help to us.You seem to have this issue now for quite a while? See here:
    PLZ HELP ME:::Degradation in performance of ORA-10G in solaris sparc
    Check your AWR reports on the new database if you can spot any notable issues there, if you have the license or install/check STATSPACK reports if you can't use AWR.
    You need to find out where the root cause of your problem is, and it might not be the database.
    In your old thread you had posted the same configuration for both systems, except for the O/S version. Now you seem to have upgraded a lot of the components like JBOSS version or the JDK version.
    oarcle 10.2.0.1 (latest patches applied )Does this mean 10.2.0.4, or what does "latest patches applied" but 10.2.0.1 as version mean?
    Open an SR with Oracle and ask them if they are aware of any generic Solaris 10 issues.
    In your last post you talked about "new stored procedures" so it wasn't clear if you really only changed the O/S or applied any changes to the application/database as well.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Problm with tiledlayer object not showing on screen!! plz help

    im making a small chess game my chess board is made of Tiledlayer and my chess elements are also Tiledlayer wheneever a move is made i have to make changes to my chess elements cells. but i make changes and they appear on my tiledlayer object but dont show on screen...
    when during game when i press FIRE_KEY first time my code goes to a thread and starts a rectangle which blinks and when i press fire again the tiled_layer is updated such that my chess element is moved from selected position to desired position.... but i dont c the change on screen....
    here is the complete code of chess board class...
    * @(#)ChessCanvas.java
    * @author Aaqib
    * @version 1.00 1007/9/19
    import javax.microedition.lcdui.*;
    import javax.microedition.lcdui.game.*;
    public class ChessCanvas extends GameCanvas implements Runnable{
         private  final int SCREEN_X = getWidth();
         private  final int SCREEN_Y = getHeight();
         private int boardSize = 128;
         // starting point of our chess game
         private int startX = (SCREEN_X - boardSize)/2;
         private int startY = (SCREEN_Y - boardSize)/2;
         // create bounding rectangle to know the end of chess board;
         private int endX = startX + boardSize;
         private int endY = startY + boardSize;
         private static final byte BOARD_COLUMN = 8;
         private static final byte BOARD_ROWS = 8;
         private static final byte TILE_DIMENSION = 16;
         // current X, Y position of cursor
         private byte currentCursorRow;
         private byte currentCursorColumn;
         // the row column which r selected
         private byte selectedRow;
         private byte selectedColumn;
         // the current pixel lcoations
         private int currentPixelX;
         private int currentPixelY;     
         // check if selected. convert curser to red
         private boolean selected = false;
         // background color
         private int white = 0xFCFCFC;
         // the chess board tiled Layer
         private TiledLayer tiledLayer;
         // the chess elements
         private TiledLayer chessElements;
         // layer Manager to add tiles and sprites;
         private LayerManager layerManager;
         // the cursor which selects and moves the objects
         private Sprite cursor;
         // matrix representing the chess board;
         private final byte chkBoard[][] ={
                                       {2,1,2,1,2,1,2,1},
                                       {1,2,1,2,1,2,1,2},
                                       {2,1,2,1,2,1,2,1},
                                       {1,2,1,2,1,2,1,2},
                                       {2,1,2,1,2,1,2,1},
                                       {1,2,1,2,1,2,1,2},
                                       {2,1,2,1,2,1,2,1},
                                       {1,2,1,2,1,2,1,2},
         private final byte elements[][] = {
                                              {6,2,5,4,3,5,2,6},
                                              {1,1,1,1,1,1,1,1},
                                              {0,0,0,0,0,0,0,0},
                                              {0,0,0,0,0,0,0,0},     
                                              {0,0,0,0,0,0,0,0},
                                              {0,0,0,0,0,0,0,0},
                                              {7,7,7,7,7,7,7,7},
                                              {12,8,11,10,9,11,8,12}          
         private Graphics g;
         // main constructor
        public ChessCanvas() {
             super(true);
                  setFullScreenMode(true);
                  init();
         * Initialize all GUI components
        public void init(){
          try{
                 Image spriteImg = Image.createImage("/cursor.png");
                 cursor = new Sprite(spriteImg,15,15);
                 cursor.setRefPixelPosition(startX - TILE_DIMENSION, startY - TILE_DIMENSION);
                Image img = Image.createImage("/board.png");
                Image elmt = Image.createImage("/chess.png");
                tiledLayer = new TiledLayer(BOARD_COLUMN, BOARD_ROWS, img, TILE_DIMENSION, TILE_DIMENSION);
                chessElements = new TiledLayer(BOARD_COLUMN, BOARD_ROWS, elmt,16,16);
                layerManager = new LayerManager();           
                currentCursorRow = 5;
                currentCursorColumn = 6;
                for (int y = 0; y < BOARD_COLUMN; y++){
                     for (int x = 0; x < BOARD_ROWS; x++){
                          int grid = chkBoard[y][x];
                          int data = elements[y][x];
                          tiledLayer.setCell(x,y, grid);
                          chessElements.setCell(x,y,data);
                g = getGraphics();
                // sets the position of chess board in center
                tiledLayer.move(startX, startY);
                chessElements.move(startX,startY);
                layerManager.append(cursor);
                layerManager.append(chessElements);
                layerManager.append(tiledLayer);
                moveCursor(currentCursorColumn * TILE_DIMENSION, currentCursorRow * TILE_DIMENSION );
          catch(Exception exception ){
                 System.out.println("exception in init method  --  "+exception.toString() );
        public void start(){
             Thread thread = new Thread(this);
             thread.start();         
        public void run(){
             while (true){
                  // check game state;
                  //checkState();
                  // check the userinput
                  checkUserInput();              
                  updateScreen(g);
                  flushGraphics();
                  try{
                       Thread.currentThread().sleep(300);
                  }catch(Exception exception){}
        private void checkUserInput(){
             int keyState = getKeyStates();
             switch(keyState){
                  case FIRE_PRESSED:
                       if (selected){
                            selected = false;
                            // make the move
                            logging ("selected >>  row  "+selectedRow+"  column   >>  "+selectedColumn +"\n");
                            logging ("current >>  row   "+currentCursorRow+"  column   >>  "+currentCursorColumn +"\n");
                             int selectedItem = chessElements.getCell(selectedRow,selectedColumn);
                             logging("selected item  >>  "+selectedItem+"\n");
                             chessElements.setCell(currentCursorRow,currentCursorColumn,selectedItem);
                             chessElements.setCell(selectedRow,selectedColumn,0);
                             chessElements.setCell(6,6,7);
                             logging ("selected >>  row  "+selectedRow+"  column   >>  "+selectedColumn +"\n");
                            moveCursor(0,0);
                       }else{
                            selected = true;
                            selectedRow = currentCursorRow;
                            selectedColumn = currentCursorColumn;
                            chessElements.setCell(6,6,7);
                       animateSelectedItem();
                  break;
                  case UP_PRESSED:
                       if (!cursor.isVisible())
                            cursor.setVisible(true);          
                       if (currentCursorRow == 1){
                            if (currentCursorColumn == 8){
                                 currentCursorColumn =1;
                                 currentCursorRow = 8;
                                 currentPixelX = -112;
                                 currentPixelY = 112;
                                 //moveCursor(-112,112);
                            }else{
                                 currentCursorColumn++;
                                 currentCursorRow = 8;
                                 currentPixelX = TILE_DIMENSION;
                                 currentPixelY = 112;
                                 //moveCursor(TILE_DIMENSION,112);
                       else{
                            currentCursorRow--;
                            currentPixelX = 0;
                            currentPixelY = -TILE_DIMENSION;
                            //moveCursor(0,-TILE_DIMENSION);
                       moveCursor(currentPixelX,currentPixelY);
                  break;
                  case DOWN_PRESSED:
                       if (!cursor.isVisible())
                            cursor.setVisible(true);
                       if (currentCursorRow == 8){
                            if (currentCursorColumn == 8){
                                 currentCursorColumn =1;
                                 currentCursorRow = 1;
                                 currentPixelX = -112;
                                 currentPixelY = -112;
                                 //moveCursor(-112,-112);
                            }else{
                                 currentCursorColumn++;
                                 currentCursorRow = 1;
                                 currentPixelX = TILE_DIMENSION;
                                 currentPixelY = -112;
                                 //moveCursor(TILE_DIMENSION,-112);
                       else{
                            currentCursorRow++;
                            currentPixelX = 0;
                            currentPixelY = TILE_DIMENSION;
                            //moveCursor(0,TILE_DIMENSION);
                       moveCursor(currentPixelX, currentPixelY);
                  break;
                  case LEFT_PRESSED:
                       if (!cursor.isVisible())
                           cursor.setVisible(true);
                       if (currentCursorColumn == 1){
                            if (currentCursorRow == 1){
                                 currentCursorColumn =8;
                                 currentCursorRow = 8;
                                 currentPixelX = 112;
                                 currentPixelY = 112;
                                 //moveCursor(112,112);
                            }else{
                                 currentCursorColumn = 8;
                                 currentCursorRow--;
                                 currentPixelX = 112;
                                 currentPixelY = -TILE_DIMENSION;                       
                                 //moveCursor(112,-TILE_DIMENSION);
                       else{
                            currentCursorColumn--;
                            currentPixelX = -TILE_DIMENSION;
                            currentPixelY = 0;
                            //moveCursor(-TILE_DIMENSION,0);
                            moveCursor(currentPixelX, currentPixelY);
                  break;
                  case RIGHT_PRESSED:
                       if (!cursor.isVisible())
                           cursor.setVisible(true);
                       if (currentCursorColumn == 8){
                            if (currentCursorRow == 8){
                                 currentCursorColumn =1;
                                 currentCursorRow = 1;
                                 currentPixelX = -112;
                                 currentPixelY = -112;
                                 //moveCursor(-112,-112);
                            }else{
                                 currentCursorColumn = 1;
                                 currentCursorRow++;
                                 currentPixelX = -112;
                                 currentPixelY = TILE_DIMENSION;
                                 //moveCursor(-112,TILE_DIMENSION);
                       else{
                            currentCursorColumn++;
                            currentPixelX = TILE_DIMENSION;
                            currentPixelY = 0;
                            //moveCursor(TILE_DIMENSION,0);
                       moveCursor(currentPixelX,currentPixelY);
                  break;
        public void updateScreen(Graphics g){
             g = getGraphics();
             // set the background color
             g.setColor(white);
             g.fillRect(0, 0, getWidth(), getHeight());
              // draw the board         
             tiledLayer.paint(g);
             // paint the cursor
             cursor.paint(g);
             // chess elements
             chessElements.paint(g);
        private void moveCursor(int x , int y){
             //logging(" cursor  >>   "+cursor.getFrame());
             // red cursor selected
             if (selected){
                  //logging("red");
                  cursor.setFrame(1);
             }else{
                  // normal green cursor moving
                  //logging("green");
                  cursor.setFrame(0);
             cursor.move(x,y);
         * Animate the selected Item. runs a saperate thread;
        private void animateSelectedItem(){
             cursor.setVisible(false);
             new Thread(new Runnable() {
                  Graphics g = getGraphics();
                  public void run(){
                           while(selected){
                            try{
                                 Thread.currentThread().sleep(600);
                            }catch(Exception exception){
                                 System.out.println("exception in animating sprite");
                             g.setColor(0xF71302);
                             g.drawRect((startX+ (selectedColumn * TILE_DIMENSION))-16,
                                            (startY+ (selectedRow * TILE_DIMENSION))-16, 14, 14 );
                            flushGraphics();
             }).start();
        private void logging (String str){
             System.out.print(str);
    }plz help me....
    thanks :(

    {color:#000080}I don't know whether that's the only thing wrong here, but I see 3 calls to getGraphics(). The documentation for javax.microedition.lcdui.game.GameCanvas.getGraphics() says:{color}
    A new Graphics object is created and returned each time this method is called; therefore, the needed Graphics object(s) should be obtained before the game starts then re-used while the game is running.
    {color:#000080}-- Your call to getGraphics() in updateScreen(Graphics g) will return the reference to the local variable represented by the parameter g, which will be out of scope as soon as the method returns.
    -- Your call to getGraphics() in animateSelectedItem() assigns the reference to a newly declared local variable, which too will be out of scope when the method returns. (But this method includes flushGraphics() so just possibly this g is flushed to the display.)
    db{color}

  • Hi,plz help me how to prepare ssrs maaterial

    i want to learn ssrs. so, plz help me for good meterial

    Hi Pavithra1234,
    If you want to learn SQL Server Reporting Services, then Microsoft® SQL Server™ 2008 Reporting Services: Step by Step is a good choice to you. With STEP BY STEP, you work at your own pace through hands-on, learn-by-doing exercises. A companion CD includes
    data sets and sample code. You can download it from this link
    http://my.safaribooksonline.com/9780735626041 Click the Extras, you can get the samples and database from Supplemental Content.
    And there are vast of valuable articles and SQL Server Reporting Services Books Online in MSDN ,you can click these link to begin your learning journey, SQL Server Reporting Services 2008 Books Online:
    http://msdn.microsoft.com/en-us/library/ms159106(v=SQL.100).aspx 
    Regards,
    Charlie Liao
    TechNet Community Support

  • How do i merge these two VI's--PLZ HELP

    HI,
         I am fairly new to Labview.I created two separate VI's.How can i merge them?In my Arc_Project vi i have a tank 3 where sample is collected.After 5 mins the loop will stop and the sample collected from tank 3 will be drained out to Interim Storage.
    In the second Vi-Spatial Logic.vi all the five tanks drain the sample to Interim Storage too.How do i add the volume drained from VI 1 and V1 2.
    Plz help.Thank you for your time..
    Attachments:
    Arc_Project_20070915_2_Final.vi ‏140 KB
    Spatial Logic_2_Final.vi ‏223 KB

    Ahh, you guys are all blessed with gigantic monitors! Look at that front panel!!!
    To answer your question, SubVIs is the way to go.
    While you're at it, you should clear up some misconceptions you seem to have about "local variables". A local variable just points to the same front panel object, so reading an indicator via a local variable and then immediately writing that value back to the same indicator is useless. Nothing will change! What you labeled "Main loop" servers no purpose. Keep the terminals of the indicators and delete the rest! Same with the chart loop!
    You do way too many duplicate operations. For example you multiply five different wires with 0.1, using 5 diagram constants of 0.1. One would be enough! If you would multiply the headwater-tailwater difference with 0.1, you would do all in one operation and could eliminate all these other 0.1 multiplications. same result!
    See here for details:
    http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=4201#M4201
    LabVIEW Champion . Do more with less code and in less time .

  • Plz help me work out in jsp

    hai to all
    I am new to Jsp,plz help me how to define and declare the Function in Jsp, if i declare and define the function and how i call the function within a jsp.
    i worked the Jsp in the Tomcat 5.5 Environment it shows me some error.
    The sample coding which i have worked out is
    <html>
    <title> Sample code for calling a jsp </title>
    <head> </head>
    <body>
    <%!
    public void function()
    out.println("hai");
    %>
    <h1> hello Good Morning </h1>
    <%
    function();
    %>
    The Error which are shown in the Tomcat Environment is
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 15 in the jsp file: /call.jsp
    Generated servlet error:
    out cannot be resolved
    Regards
    udhaya.c

    The implicit objects are avbl only inside scriptlets <%........%> and not inside your own custom methods (which you shouldnt anyways be having, in first place. However its ok since you have just about begun with jsps).
    To use the implicit 'out' object within custom methods, you will have to pass them as parameters when you call the methods from within your scriptlets.
    Try this
       <% @ page import="java.io.*"%>
      <html>
    <title> Sample code for calling a jsp </title>
    <head> </head>
    <body>
    <%!
    public void function(PrintWriter out) throws IOException
    out.println("hai");
    %>
    <h1> hello Good Morning </h1>
    <%
    function(out);
    %>cheers,
    ram.

Maybe you are looking for

  • Document Signature - Validation Issue

    This is the recent help i've been trying to get on this subject over at acrobatusers.com. You can read through the issue i'm having through here, answer that was given and my response. Summary: Basically there are multiple text fields that are set to

  • How do I delay sending an email in Mac OS X Lion Mountain?

    I am VERY new to using a Mac and want to do what I can do in Outlook. However I cannot find an option to delay the sending of an email. Can anyone help? I have spent about 30 mins googling this and I read alot about scripts? Am I meant to write a pro

  • Interactive report coding

    hi can i know the coding for interactive report

  • Service PR and Item category D

    Hi, While creating PR,if I select document type as Service PR,then is it  possible to make default  as 'D' in the item category of line item.If possible how to do that? please advise me.Thank you. With Regards, Jaheer....

  • Web Cache with apache

    Hi Guys My apache server saying that i want to run on windows "PORT MUST BE IN NUMERIC" OCP DBA [email protected]