REUSE_ALV_GRID_DISPLAY---Double click user command

Hi,
I am developing an ALV Report using REUSE_ALV_GRID_DISPLAY function call. I have the requirement to incorporate dirll down functionality using FB03 transaction for each of my line item in the ALV display.
I have defined a subrouting user_command where i handle this event. However, i am unable to implement the logic. Any help is appreciated.

hI Supriya,
this is a sample code for calling a FORM user_command once you double-click on your key field..
  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
   EXPORTING
  I_INTERFACE_CHECK              = ' '
  I_BYPASSING_BUFFER             =
  I_BUFFER_ACTIVE                = ' '
     I_CALLBACK_PROGRAM             = SY-REPID
  I_CALLBACK_PF_STATUS_SET       = ' '
    I_CALLBACK_USER_COMMAND        = 'USER_COMMAND'
  I_STRUCTURE_NAME               =
     IS_LAYOUT                      = GS_LAYOUT
     IT_FIELDCAT                    = CT_FIELDCAT
  IT_EXCLUDING                   =
  IT_SPECIAL_GROUPS              =
     IT_SORT                        = IT_SORT[]
  IT_FILTER                      =
  IS_SEL_HIDE                    =
  I_DEFAULT                      = 'X'
     I_SAVE                         = 'A'
  IS_VARIANT                     =
  IT_EVENTS                      =
  IT_EVENT_EXIT                  =
  IS_PRINT                       =
  IS_REPREP_ID                   =
  I_SCREEN_START_COLUMN          = 0
  I_SCREEN_START_LINE         0   = 0
  I_SCREEN_END_COLUMN            = 0
  I_SCREEN_END_LINE              = 0
  IR_SALV_LIST_ADAPTER           =
  IT_EXCEPT_QINFO                =
  I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
IMPORTING
  E_EXIT_CAUSED_BY_CALLER        =
  ES_EXIT_CAUSED_BY_USER         =
    TABLES
      T_OUTTAB                       = ITAB_BKPF_BSEG
EXCEPTIONS
  PROGRAM_ERROR                  = 1
  OTHERS                         = 2
  IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
*i_calLback_user_command = 'USER_COMMAND'.
FORM USER_COMMAND
  USING UCOMM LIKE SY-UCOMM
  SELFIELD TYPE SLIS_SELFIELD.
  DATA wa LIKE LINE OF ITAB_BKPF_BSEG.
READ TABLE ITAB_BKPF_BSEG index SELFIELD-TABINDEX INTO wa.
WRITE : / 'TRIAL EVENT' , WA-BUKRS.
ENDFORM.                    "user_command
ps:reward points if helpful

Similar Messages

  • Yosemite problems with double click dock commands and keyboard shorcuts

    I have a mid 2012 macbook pro 17", i recently installed Yosemite although it fixed my internet problem (connection dropping randomly) now i am having issues with opening apps and files. Double clicking on a file launches the corresponding app but does't open the file i just get and message stating the app is not open anymore if click the file again. Finder keyboard shorcuts such as command+Q don't work. Can't access some menu items such as "about this mac". Dragging a file into the dock icon launches the app but doesn't open the file either.
    I have no idea what's causing this. anybody got a clue or having similar problems
    Thank you

    Same problem here. (Yosemite 10.0.1)
    the mouse is a 'team scorpion g-reaver' http://teamscorpion.net/ts2014/g-reaver_1.html
    It's work perfectly on the pc of my brother (he uses windows).
    It's a clean install...
    And has a funny fact... The Left Button was with this problem... So what I did? I changed the primary mouse button to the Right... Worked ok for almost 1~2 days... After that, the two buttons showed the double-click problem....
    But, I repeat, the mouse works perfectly in the windows of my brother '-'

  • How to separate double click action and single click action

    in my mouse action listerner for JTable.
    i do two actions, when user doule click column header, sort the column,
    when single clicked, select all cells in this column.
    but when user double clicked, the action attached with single click also triggered.(column sorted but also selected)
    how to separate them.

    Ok, so despite my earlier suggestion being basically the only solution offered anyway on the web it appears that Lokust is correct and that the single click operation would be performed as well as the double click one. to get round this u have to implement a Timer, i'm not going to post my whole code here because most of it is irrelevent, just add this code in the correct places and it should work fine. apologies to all format junkies for not using code tags!
    import java.util.Timer;
    import java.util.TimeTask;
    public class WhateverClassName implements MouseListener {
    private Timer t;
    private boolean doubleclick;
    myTable.addMouseListener(this);
    public void mouseClicked(MouseEvent e) {
         t = new Timer();
         if (e.getClickCount() == 2){
              doubleclick = true;
         else if(e.getClickCount()==1){
              t.schedule(new MyTimerTask(),500);
    /*You need all these methods as well */
    /* (non-Javadoc)
    * @see java.awt.event.MouseListener#mouseEntered(java.awt.event.MouseEvent)
    public void mouseEntered(MouseEvent arg0) {
    /* (non-Javadoc)
    * @see java.awt.event.MouseListener#mouseExited(java.awt.event.MouseEvent)
    public void mouseExited(MouseEvent arg0) {
    /* (non-Javadoc)
    * @see java.awt.event.MouseListener#mousePressed(java.awt.event.MouseEvent)
    public void mousePressed(MouseEvent arg0) {
    /* (non-Javadoc)
    * @see java.awt.event.MouseListener#mouseReleased(java.awt.event.MouseEvent)
    public void mouseReleased(MouseEvent arg0) {
    class MyTimerTask extends TimerTask{
    /* (non-Javadoc)
    * @see java.util.TimerTask#run()
         public void run() {
              if(doubleclick){
                   System.out.print("double click");
              else{
                   System.out.println("single click");
              t.cancel();
    This assumes that for it to be considered a double click user has to click twice within .5 seconds.
    Let me know if that works or not, sorry its a bit messy!

  • Double click using FM: REUSE_ALV_GRID_DISPLAY

    Hi
    I use FM: REUSE_ALV_GRID_DISPLAY to display ALV. Now I need use double-click action. After double click on e.g material I run mm03 with proper parameters (from presented list).
    Could you give me advice how to do this (I know that using cl_gui_alv_grid it would be easier)
    Thanks in advance

    Hi,
    Please find the code below which uses the 
    FM: REUSE_ALV_GRID_DISPLAY for double click.
    *& Report  YH1058_ALVDEMO1
    REPORT  YH1058_ALVDEMO1.
    *type pools for alv declarations
    TYPE-POOLS: slis.
    *structure declaration for tstc table
    TYPES : BEGIN OF ty_tstc,
            tcode TYPE tcode,
            pgmna TYPE program_id,
            dypno TYPE dynpronr,
            END OF ty_tstc.
    Internal table and workarea declarations for tstc
    DATA: it_tstc TYPE STANDARD TABLE OF ty_tstc,
          wa_tstc TYPE ty_tstc.
    *data declarations for ALV
    DATA: it_layout TYPE slis_layout_alv,
          wa_fieldcat TYPE slis_fieldcat_alv,
          it_fieldcat TYPE slis_t_fieldcat_alv,
          it_eventexit TYPE slis_t_event_exit,
          wa_eventexit TYPE slis_event_exit.
    *initialisation event
    INITIALIZATION.
    *start of selection event
    START-OF-SELECTION.
    *subroutine to fetch data from the db table
      PERFORM fetch_data.
    *subroutine for output display
      PERFORM alv_output.
    *&      Form  fetch_data
          *subroutine to fetch data from the db table
    FORM fetch_data.
    *Internal table and work area declaratin for TSTC (local tables)
      DATA : lt_tstc TYPE STANDARD TABLE OF ty_tstc,
             ls_tstc TYPE ty_tstc.
    *Static field definition
    *Reads the last tcode and stores it in l_tstc that on refresh further data
    *beyond this value is fetched
      STATICS l_tstc TYPE tcode.
    Selection from the tstc table
    *we select till 25 rows and on further refresh next 25 are selected
    *we select transactions having screen numbers only
      SELECT tcode
             pgmna
             dypno
             FROM tstc
             INTO CORRESPONDING FIELDS OF TABLE lt_tstc
             UP TO 25 ROWS
             WHERE tcode GT l_tstc
             AND dypno NE '0000'.
    Code for transferring the values of local table to output table
    for 25 rows as sy-tfill is 25.
    *In case there are no records a message pops up.
      IF sy-subrc EQ 0.
        DESCRIBE TABLE it_tstc.
        READ TABLE lt_tstc INTO ls_tstc INDEX sy-tfill.
        l_tstc = ls_tstc-tcode.
        it_tstc[] = lt_tstc[].
      ELSE.
        MESSAGE 'No Records found ' TYPE 'i'.
      ENDIF.
    ENDFORM.                    "read_data
    *&      Form  alv_output
          text
    FORM alv_output.
    *subroutine to refresh alv
      PERFORM event_exits.
    *field catalogue
      PERFORM build_fieldcat.
    *Layout for alv
      PERFORM build_layout.
    *output display
      PERFORM alv_display.
    ENDFORM.                    "alv_output
    *&      Form  event_exits
          text
    *subroutine to refresh alv
    FORM event_exits.
      CLEAR wa_eventexit.
      wa_eventexit-ucomm = '&REFRESH'.    " Refresh
      wa_eventexit-after = 'X'.
      APPEND wa_eventexit TO it_eventexit.
    ENDFORM.                     "event_exits
    *&      Form  build_fieldcat
          text
    *Field catalogue
    FORM build_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-row_pos   = '1'.
      wa_fieldcat-col_pos   = '1'.
      wa_fieldcat-fieldname = 'TCODE'.
      wa_fieldcat-tabname   = 'it_tstc'.
      wa_fieldcat-seltext_m = 'TRANSACTION'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-row_pos   = '1'.
      wa_fieldcat-col_pos   = '2'.
      wa_fieldcat-fieldname = 'PGMNA'.
      wa_fieldcat-tabname   = 'it_tstc'.
      wa_fieldcat-seltext_m = 'PROGRAM'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-row_pos   = '1'.
      wa_fieldcat-col_pos   = '3'.
      wa_fieldcat-fieldname = 'DYPNO'.
      wa_fieldcat-tabname   = 'it_tstc'.
      wa_fieldcat-seltext_m = 'SCREEN'.
      APPEND wa_fieldcat TO it_fieldcat.
    ENDFORM.                     "build_fieldcat
    *&      Form  build_layout
          text
    *Layout
    FORM build_layout.
      it_layout-zebra = 'X'.
      it_layout-colwidth_optimize = 'X'.
    ENDFORM.                     "build_layout
    *&      Form  alv_display
          text
    *ALV output
    FORM alv_display.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = sy-repid
          i_callback_user_command  = 'USER_COMMAND'
          i_callback_pf_status_set = 'PFSTATUS'
          it_fieldcat              = it_fieldcat
          is_layout                = it_layout
          it_event_exit            = it_eventexit
          i_screen_start_column    = 10
          i_screen_start_line      = 20
          i_screen_end_column      = 70
          i_screen_end_line        = 45
          i_grid_title             = 'Call Tcode Refresh ALV'
        TABLES
          t_outtab                 = it_tstc.
    ENDFORM.                    "alv_display
    *&      Form  user_command
          text
    *User actions on ALV
    FORM user_command USING r_ucomm TYPE sy-ucomm
                            rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
    *User clicks a transaction code and that tcode is called from ALV
        WHEN '&IC1'.
          READ TABLE it_tstc INDEX rs_selfield-tabindex INTO wa_tstc.
          IF sy-subrc = 0.
            CALL TRANSACTION wa_tstc-tcode.
          ENDIF.
    *user clicks the refresh button and the next 25 records are displayed
        WHEN '&REFRESH'.
          PERFORM fetch_data.
          rs_selfield-refresh    = 'X'.
          rs_selfield-col_stable = 'X' .
          rs_selfield-row_stable = 'X' .
      ENDCASE.
    ENDFORM.                    "user_command
          FORM PFSTATUS                                            *
    *Form for settings the pf status to the alv
    FORM pfstatus USING ut_extab TYPE slis_t_extab.
      SET PF-STATUS 'STANDARD_FULLSCREEN' OF PROGRAM 'SAPLKKBL'.
    ENDFORM.                               " PF_STATUS_SET
    Warm Regards
    R Adarsh

  • With Mavericks I have to hold command key down and double click to get a sub folder to open in a new window.  Can I go back to just double clicking ?

    With Mavericks I have to hold command key down and double click to get a sub folder to open in a new window.  Can I go back to just double clicking ?

    Of course. To do it, open a Finder window, go to Finder menu (on the menu bar) > Preferences > General, and untick "Open folders in tabs instead of new windows".

  • When i double click on Mac HD the view has changed and my user name is no longer listed on the left. How can I reset this

    When i double click on Mac HD the view has changed and my user name is no longer listed on the left. How can I reset this?

    Do a factory reset .. nothing will be deleted from your backups and you will be able to get access to them again.
    The Factory Reset Gen1-4.
    Unplug your TC. Hold in reset. and power the TC back on.. without releasing reset for about 10sec. When the status light flashes rapidly; release it.
    Be Gentle! Feel the switch click on. It has a positive feel..  add no more pressure after that.
    TC will reboot after a couple of minutes with default factory settings and will wipe out previous configurations.
    No files are deleted on the hard disk.. No reset of the TC deletes files.. to do that you use erase from the airport utility.

  • How do I embed a pdf document into an existing pdf so that the user double clicks on the pdf object within the pdf and it opens? i've looked everywhere on various forums and tried attachments - but still not working. Thanks

    I've tried various methods but to no avail. I have a pdf document and within the pdf I'd like to embed a couple pdf documents so that all the user has to do is double click on the pdf object inside the pdf and it opens in a new window. I've tried using attachments to do it and linking it...but to no avail. Anyone know how to do? I'm using Acrobat Pro Version 11. Thanks

    The "embed" feature common to MS Office applications is not applicable to PDF (for the why and wherefore of PDF get comfortable and read the ISO Standard for PDF - ISO 32000-1:2008).
    You can insert other PDF files' pages into any given PDF.
    You can attach files of supported formats to a PDF (of course a PDF is supported).
    You cannot "embed". So, nothing is broken.
    Be well...

  • Problem w/"combo boxes" cause the user to double click for the dropdown menu, but not for everyone.

    I have created a form with Adobe Acrobad Pro 9.
    There are a few "drop-down" boxes for people to choose options from.  I created them with the "Combo box" option.  They work perfectly fine on my laptop (Lenovo T500 windows 7, with all updates up to date.)  I sent the file to another exact same computer and that's when the problem came up.  When you click on the drop-down, the list will quickly appear and then disappear.  Then if you click it again it will stay open so you can choose your option.  However this only happens on "some" computers but not everyone's.  I emailed the exact same form out to other people in my office and they do not have any problems with the form.  There is no need to double click the drop down, it will just open up properly for them.
    Has anyone come across this? And if so, is there maybe a setting on these specific laptops that is preventing the "combo box" to not work properly?  I need to use this specific laptop as a "Kiosk" like a "check out" station for users to fill out the form to check out equipment.  I will be running in Reader so people can not make changes to the form.  (both the Acrobat Pro 9 version and the (most up to date) Reader version of the PDF form does the same "double-click" problem)  I need a date drop down and an equipment type drop down.
    Any suggestions would be greatly appreciated !
    Thanks !

    I've got this kind of problem with a form of mine (designed with LCD) :
    - combo boxes with font-color changing event handlers on :enter
    - on Acrobat 9 Pro : no problem
    - on Reader 8.3 :
          - first click seems to execute the event handler but stops the combo's opening
          - second click does open the combo
    Do you have event handlers on combo:enter ?
    Could the difference between comps where it works and comps where it doesn't be Acrobat's version ?

  • Basic List:- Need to get data when user double click on report output

    Hi,
    My requirement is to display asset details as a report and when user double clicks on the asset details, transaction AS03 need to be opened.
    The output layout is as follows:
    Company code    800                             Asset class 111
    Asset 1 ................
    Asset 2.................
    Asset 3.................
    Company code    900                             Asset class 111
    Asset 1 ................
    Asset 2.................
    Asset 3.................
    when user double click on Asset 1 of Company code 800, then transaction AS03 need to be triggerd. But when I use ATLine selection. I only get the Asset1....details in the sy-lisel. But I need Company code for triggering the AS03 transaction.
    Please let me know any way of getting company code along with the Asset 1 ......
    Regards
    Suresh Kumar

    Hi,
    Herewith i am sending the sample coding for the report.
    REPORT YMS_INTERTESTALV .
    TYPE-POOLS: slis.
    DATA: BEGIN OF itab1 OCCURS 0,
    vbeln TYPE vbeln,
    bstnk TYPE vbak-bstnk,
    erdat TYPE vbak-erdat,
    kunnr TYPE vbak-kunnr,
    END OF itab1.
    DATA: BEGIN OF itab2 OCCURS 0,
    vbeln TYPE vbeln,
    matnr TYPE vbap-matnr,
    netpr TYPE vbap-netpr,
    kwmeng TYPE vbap-kwmeng,
    END OF itab2.
    DATA: t_fieldcatalog1 TYPE slis_t_fieldcat_alv.
    DATA: t_fieldcatalog2 TYPE slis_t_fieldcat_alv.
    DATA: v_repid TYPE syrepid.
    v_repid = sy-repid.
    Get the fieldcatalog1
    PERFORM get_fieldcat1.
    Get the fieldcatalog2
    PERFORM get_fieldcat2.
    SELECT vbeln bstnk erdat kunnr UP TO 10 ROWS
    INTO TABLE itab1
    FROM vbak.
    IF NOT itab1[] IS INITIAL.
      SELECT vbeln matnr netpr kwmeng
      INTO TABLE itab2
      FROM vbap
      FOR ALL ENTRIES IN itab1
      WHERE vbeln = itab1-vbeln.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
         EXPORTING
              i_callback_program      = v_repid
              i_callback_user_command = 'DISPLAY_DETAIL'
              it_fieldcat             = t_fieldcatalog1
         TABLES
              t_outtab                = itab1.
    FORM display_detail *
    --> UCOMM *
    --> SELFIELD *
    FORM display_detail USING ucomm LIKE sy-ucomm
    selfield TYPE slis_selfield.
      DATA: itab2_temp LIKE itab2 OCCURS 0 WITH HEADER LINE.
      IF ucomm = '&IC1'.
        READ TABLE itab1 INDEX selfield-tabindex.
        IF sy-subrc = 0.
          LOOP AT itab2 WHERE vbeln = itab1-vbeln.
            MOVE itab2 TO itab2_temp.
            APPEND itab2_temp.
          ENDLOOP.
          CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
               EXPORTING
                    i_callback_program = v_repid
                    it_fieldcat        = t_fieldcatalog2
               TABLES
                    t_outtab           = itab2_temp.
        ENDIF.
      ENDIF.
    ENDFORM.
    FORM GET_FIELDCAT1 *
    FORM get_fieldcat1.
      DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
      s_fieldcatalog-col_pos = '1'.
      s_fieldcatalog-fieldname = 'VBELN'.
      s_fieldcatalog-tabname = 'ITAB1'.
      s_fieldcatalog-rollname = 'VBELN'.
      s_fieldcatalog-hotspot = 'X'.
      APPEND s_fieldcatalog TO t_fieldcatalog1.
      CLEAR s_fieldcatalog.
      s_fieldcatalog-col_pos = '2'.
      s_fieldcatalog-fieldname = 'BSTNK'.
      s_fieldcatalog-tabname = 'ITAB1'.
      s_fieldcatalog-rollname = 'BSTNK'.
      APPEND s_fieldcatalog TO t_fieldcatalog1.
      CLEAR s_fieldcatalog.
      s_fieldcatalog-col_pos = '3'.
      s_fieldcatalog-fieldname = 'ERDAT'.
      s_fieldcatalog-tabname = 'ITAB1'.
      s_fieldcatalog-rollname = 'ERDAT'.
      APPEND s_fieldcatalog TO t_fieldcatalog1.
      CLEAR s_fieldcatalog.
      s_fieldcatalog-col_pos = '4'.
      s_fieldcatalog-fieldname = 'KUNNR'.
      s_fieldcatalog-tabname = 'ITAB1'.
      s_fieldcatalog-rollname = 'KUNNR'.
      APPEND s_fieldcatalog TO t_fieldcatalog1.
      CLEAR s_fieldcatalog.
    ENDFORM.
    FORM GET_FIELDCAT2 *
    FORM get_fieldcat2.
      DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
      s_fieldcatalog-col_pos = '1'.
      s_fieldcatalog-fieldname = 'VBELN'.
      s_fieldcatalog-tabname = 'ITAB2'.
      s_fieldcatalog-rollname = 'VBELN'.
      APPEND s_fieldcatalog TO t_fieldcatalog2.
      CLEAR s_fieldcatalog.
      s_fieldcatalog-col_pos = '2'.
      s_fieldcatalog-fieldname = 'MATNR'.
      s_fieldcatalog-tabname = 'ITAB2'.
      s_fieldcatalog-rollname = 'MATNR'.
      APPEND s_fieldcatalog TO t_fieldcatalog2.
      CLEAR s_fieldcatalog.
      s_fieldcatalog-col_pos = '3'.
      s_fieldcatalog-fieldname = 'NETPR'.
      s_fieldcatalog-tabname = 'ITAB2'.
      s_fieldcatalog-rollname = 'NETPR'.
      APPEND s_fieldcatalog TO t_fieldcatalog2.
      CLEAR s_fieldcatalog.
      s_fieldcatalog-col_pos = '4'.
      s_fieldcatalog-fieldname = 'KWMENG'.
      s_fieldcatalog-tabname = 'ITAB2'.
      s_fieldcatalog-rollname = 'KWMENG'.
      APPEND s_fieldcatalog TO t_fieldcatalog2.
      CLEAR s_fieldcatalog.
    ENDFORM.
    Thanks,
    Shankar

  • Simply put, I do not like like the new color coding "dots" and I do not like having to press the Command key before double clicking to open files in a new window. How hard would have been to include the old version of these two features?

    Simply put, I do not like like the new color coding "dots" and I do not like having to press the Command key before double clicking to open files in a new window. How hard would have been to include the old version of these two features?

    Apple - Mac OS X - Feedback

  • Upgrade check: command-shift-double-click has no effect

    We're installing Adobe Creative Suite 2 Design Premium. We have what should be a valid serial number for a copy of Adobe Creative Suite 2 Premium. However, the installer terms it invalid.
    Someone else in my company just spend a long time with customer service trying the solution of activating the upgrade code window (where you can bypass the problem by confirming a number given by customer service). The instructions are to command-shift-double click on the Invalid Serial Number window. Well, he's done that clicking combination everywhere on the screen, and it's caused nothing to happen except sometimes selecting the text.
    Is there any other way to bring up that window? Does it require an active connection to customer service to even bring up the window in the first place? Is there any larger workaround we could try?

    Correct Lenoxus it is possible the unlocking function may no longer work under Mac OS 10.9.3.  Thank you for the update that our support team was able to generate a non-upgrade serial number after verifying the validity of your upgrade.
    For future viewers of this discussion you can contact our support team at Contact Customer Care.  I would also recommend reviewing Find your serial number quickly - http://helpx.adobe.com/x-productkb/global/find-serial-number.html and ensuring your serial number is registered under your account.

  • When user double-clicks on a file, then I want my program to open it...

    Ok, so I have been having a lot of trouble finding the answer to what I at first thought was a simple question.
    I do not know, at all, how to make my program able to open files in the normal sense. Normal sense meaning user double-clicks my_file.xxx, or for that matter right-clicks my_file.xxx and selects open with, and then my_app.jar starts up and opens the file.
    I have already created the app, and it runs nicely. This app has a menu bar with the usual File >> Open which works just fine reading my_file.xxx. My_app.jar can also saves my_file.xxx. So I am not having trouble with I/O.
    So if someone can give me even the slightest hint in the right direction I'd be very thankful.
    p.s. I am working on a mac but my_app.jar will be running mostly on windows so cross-platform is very important.

    Actually, I was more wondering what kind of code I
    need to add to my program to make it possible at all.
    My file input and output is all done from a Utilites
    class which I made but quite obviously any OS will
    not know to call Utiities.load(...arguments...).
    But, my goal is to have my program work as seamlessly
    as possible with a normal person's desktop.I'm sorry, you're right, I completely misread your post. I would definitely take the tactic of writing a .reg file and executing it. That seems to be the accepted way of creating registry entries on Java if you have to do such a thing.
    Here is a link to the type of .reg file you're going to need to associate a file with a certain program, and you'll need to modify it slightly to do a 'java -jar myJar' type of thing. Then, just point Runtime.getRuntime().exec() at it, and you should be good to go.
    The only thing I'd be worried about is how to find the JAVA_HOME. If you launched your installer via WebStart (or had the user double-click the jar for the first time), though, you could just use
    System.getProperty("java.home");

  • I Already checked the general preferences box "double click titlebar to minimize windows," all applications responding to this command EXCEPT for Safari, why?

    I thought that I had done something wrong, but it appears that Safari is indeed unresponsive to the double click title bar to minimize command.
    All my other applications are responsive to this, but not Safari.
    Also, maybe someone could help me by answering these questions:
    how it is possible to save safari browsers with the tabs that are open, so when I exit out and reopen safari I can resume where I was before?
    why is it that I don't see that little red circle with the number at the bottom of the Safari icon that tells me how many browser windows are currently open so I can juggle between them?
    Why is it that you can no longer click on the application icon to shrink the window? I am positive that this was possible on previous mac OS.

    I had missed that double-click title bar was no longer working in Safari (I really miss windowshading and tabbed finder windows!), until I read this thread from sharoo..
    Carolyn Samit wrote:
    that Safari is indeed unresponsive to the double click title bar to minimize command.
    All my other applications are responsive to this, but not Safari.
    Since it's application specific, to to ~/Library/Caches/com.apple.Safari
    Move the Cache.db file from the com.apple.Safari folder to the Trash.
    Restart your Mac.
    I'm seeing the same problem now. Tried deleting Cache.db, also deleted Preferences:com.apple.Safari.plist in reference to another thread; still don't get any response to double-clicking title bar. Lately, I usually do it accidentally, but it would seem to be a handy shortcut, especially since it's advertised as being present.
    Note: I just tried it in other applications, and I don't see minimizing with double-click anywhere, and can't find any preferences setting for it. [Panic sets in... - am I losing my mind?] I tried looking in the Secrets prefpane, with no luck there either.
    What am I missing?
    Has this been changed? I also noticed that the green (right-size) button behaves differently now, and there are several ways to arrange icons in the finder, some like the old way, some very different and confusing (I may have figured that out, but have to retry when I get there).

  • Project locks up when user double clicks click box

    I have a series of practice questions in my Captivate 5 projects that use click boxes to select the question's answers.  The project pauses at the click boxes (which all appear at the same time), and a feedback caption appears.  A second later, a continue button appears.  The project again pauses until the user clicks the continue button.  Then the project goes to the next slide.  My problem is that when the user double clicks a click box,  or clicks it right when it appears (the cursor changes from arrow to a hand), the continue button does not appear.
    I am just considering deleting the continue button but my intent there was to allow as much time as the user needed to read the feedback captions after clicking the click box.  Any help on this is appreciated.
    Options selected on click box: hand cursor, and pause project until user clicks.
    Thanks.

    Actually, I was more wondering what kind of code I
    need to add to my program to make it possible at all.
    My file input and output is all done from a Utilites
    class which I made but quite obviously any OS will
    not know to call Utiities.load(...arguments...).
    But, my goal is to have my program work as seamlessly
    as possible with a normal person's desktop.I'm sorry, you're right, I completely misread your post. I would definitely take the tactic of writing a .reg file and executing it. That seems to be the accepted way of creating registry entries on Java if you have to do such a thing.
    Here is a link to the type of .reg file you're going to need to associate a file with a certain program, and you'll need to modify it slightly to do a 'java -jar myJar' type of thing. Then, just point Runtime.getRuntime().exec() at it, and you should be good to go.
    The only thing I'd be worried about is how to find the JAVA_HOME. If you launched your installer via WebStart (or had the user double-click the jar for the first time), though, you could just use
    System.getProperty("java.home");

  • Jar file runs from the command line, but not when I double click it

    Hello, I'm running windows xp. I've created an executable jar file and it runs fine from the command line when I type;
    java -jar wizard.jar
    but, when I double click it . . . nothing.
    Any ideas?

    nothing ? that's weird, windows XP should prompt you to select the program you want to use in order to open Jar files (and give you this silly piece of advice to search the web for the appropriate program)
    you might want to check what program (if any) got associated with .jar extensions :
    in Windows Explorer : Tools => Folder Options => File Types
    hth

Maybe you are looking for