Navigate to next view activity by double clicking a table row

Hi,
I define a simple task flow with two view activilities, View1 ----(showDetail)-----> View2.
View1 contains a table, when user clicks a row in the table, the task flow should go to View2
and content displayed in View2 depends on the row selected in View1.
I define a client listener and server listener to concume the row double click event.
The server listener is something like this:
FacesContext fc = FacesContext.getCurrentInstance();
DashBoard dashBoardBean =
*(DashBoard)fc.getExternalContext().getSessionMap().get("dashBoardBean");*
RichRegion contentRegion = dashBoardBean.getTaskf1();
ExpressionFactory ef = fc.getApplication().getExpressionFactory();
ELContext elc = fc.getELContext();
MethodExpression me =
*ef.createMethodExpression(elc, "#{dashBoardBean.getCurrentScreen}",*
*String.class, new Class[] { });*
*contentRegion.queueActionEventInRegion(me, null, null, false, -1, -1,*
*PhaseId.ANY_PHASE);*
*contentRegion.refresh(fc);*
This works fine in the sense that I can navigate to View2.
The problem is that I register a RegionNavigationListener on the region containing this task flow, when I double click a row in View1
the RegionNavigationListener is not invoked even though region has navigated from View1 to View2.
Anyone knows any solution for this or is there an alternative way to implement this functionality?
Thx
Colin
Edited by: user10303309 on May 28, 2009 2:51 AM

Yes, I think Region.refresh does not fire the Navigation Event, I tried to fire an event manually:
contentRegion.refresh(fc);
contentRegion.queueEvent(new RegionNavigationEvent(contentRegion, "oldViewId",  "newViewId"));
But this does not work either....

Similar Messages

  • ***How to Invoke backing bean method by DOUBLE-CLICK the table ROW!!***

    Hi,
    How can I collect the selected row value & navigate to next page by DOUBLE-CLICK the result table row.
    My application got searchResult page where I am displaying the list of user in result table. Then selecting any one row and navigating to master details page by clicking the continue button. Button Action method will collect the selected row userID which I am forwarding to the masterDetails page.
    Same functionality I want to do by double click the row instead of clicking the button!!. I want to trigger the backing bean method if the user double click the row basically. Please help me in this how to do this?
    Current button action method:
    *public String userSelected() {*
    FacesCtrlHierNodeBinding binding = (FacesCtrlHierNodeBinding) searchResultTable.getSelectedRowData();
    currentRow = binding.getRow();
    selectedNetID = (String) currentRow.getAttribute("netid");
    System.out.println("selectedNetID -->"+selectedNetID);
    requestContext.getPageFlowScope().put("netid",selectedNetID);
    return "continue";
    *}*

    Puthanampatti ,
    Yes, I am using the same. Below is my code. I am trying to get the object of the MAIN jspx page region (where I am displaying the fragments) and refresh the one. But cant able to get the object for the region it is returning null. without refresh seems the navigation wont work.
    public void doDbClick(ClientEvent clientEvent) {
    FacesCtrlHierNodeBinding binding = (FacesCtrlHierNodeBinding) searchResultTable.getSelectedRowData();
    currentRow = binding.getRow();
    selectedNetID = (String) currentRow.getAttribute("netid");
    System.out.println("selectedNetID -->"+selectedNetID);
    requestContext.getPageFlowScope().put("netid",selectedNetID);
    try{
    FacesContext facesCtx = FacesContext.getCurrentInstance();
    NavigationHandler nh = facesCtx.getApplication().getNavigationHandler();
    nh.handleNavigation(facesCtx, "", "continue");
    System.out.println("region obj -->" +facesCtx.getViewRoot().findComponent("advse1"));
    // Refresh the current region; advse1 is the id of the region component inside jspx page
    AdfFacesContext.getCurrentInstance().addPartialTarget(facesCtx.getViewRoot().findComponent("advse1"));
    catch(Exception e){
    System.out.println("Error is: " +e);
    Is this correct coding to get the region object?? actually the "result table" and "Master details" are 2 different fragments which are linked with task-flow and the task flow is part of main jspx page as a region. I am using that region ID to get the obj, but cant able to get so....!!! any idea

  • Make Double Click event on Row, Matrix

    Hi All,
    I'm new in SDK and sorry for my English.
    Please show me how to make double click event on Row of  Matrix, i have created a table contain all Draft which Docstatus is open and order by ObjType(DocType), but i can't using Link Button on DocNum Column to view Object Detail . I think another way to do that is make a double click event on each row of matrix. Can I do like that ? plz show me . Thank for any suggestion.
    Thanks

    Hi Shafi,
    This is my .srf file
    <items><action type="add"><item uid="MTX_Data" type="127" left="15" tab_order="0" width="620" top="41" height="285" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1"><AutoManagedAttribute /><specific SelectionMode="2" layout="0" titleHeight="19" cellHeight="19" TabOrder="0">
    This is my code draw a form with matrix
    Private Sub DrawForm()
            Try
                'Read File interface
                LoadFromXML("DraftOpen.srf")
            Catch ex As Exception
                MessageBox.Show(ex.Message)
            End Try
            oForm = SBO_Application.Forms.Item("DRFOPEN")
            ' Add Items       
            ' Add a matrix
            oMatrix = oForm.Items.Item("MTX_Data").Specific
            oMatrix.SelectionMode = SAPbouiCOM.BoMatrixSelect.ms_Single
    This is my event
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            If pVal.FormUID = "DRFOPEN" And pVal.ItemUID = "MTX_Data" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_DOUBLE_CLICK And pVal.BeforeAction = True Then
                Try
                    oForm = SBO_Application.Forms.Item("DRFOPEN")
                    Dim omatrix As SAPbouiCOM.Matrix
                    omatrix = oForm.Items.Item("MTX_Data").Specific
                    If omatrix.RowCount > 0 Then
                        For i As Integer = 1 To omatrix.RowCount
                            If omatrix.IsRowSelected(i) = True Then
                                MessageBox.Show(omatrix.Columns.Item(1).Cells.Item(pVal.Row).Specific.value)
                                MessageBox.Show(omatrix.Columns.Item(2).Cells.Item(pVal.Row).Specific.value)
                            End If
                        Next
                    End If
                Catch ex As Exception
                    SBO_Application.MessageBox(ex.Message)
                End Try
            End If
    please help me to check this code. i don't know why it's still not working with double click event. sorry to disturb you.
    Edited by: PeterHoang on Aug 30, 2011 10:15 AM

  • How to do lead select and double click on a row of table simultaniously ?

    Hello All,
    I am creating a freely programmed search help to search Material Number.
    i am displaying the values in normal table ( Not ALV ) on the search help popup.
    My requirement is
    when I select a row and click on OK button the Material number in that row is getting captured ( This is working fine for me)
    At the same time I also want to capture the value when user double cluck on the particular row.
    I am not able to do both on action methods simultaneously as I am getting syntactic error.
    i.e. When I create action method on the event "on_lead_select" and the event "On select"  and try to save Check & activate it throws error.
    Please find the screen shot below.
    Standard webdynpro component WDR_F4_ELEMENTARY was able to achieve this functionality some how, I have debugged it but didn't get the solution

    Hi,
    There is no double click provision. In the table you could change the cell editor of column to LinktoAction UI, then onclick of that you can set the selected value.  And in the component WDR_F4_ELEMENTARY its not a normal table UI but its a CTable UI, you can try creating a CTable and create an Action for onSelect.
    Regards,
    Kiran

  • How can i show details in ALV GRID with double click in a row?

    Hello, ich try to show the details of a row with double click in the line,
    but it doesn't work!?
    I have a eventhandler for doubleclick and the program run this code, but what i have to do, to show the details!?
    I try it with some methods like cl_gui_cfw=>set_new_ok_code, ...
    i think about the methods cl_gui_alv_grid->show_detail, but this method is private,
    i can create a class with inheritance of the cl_gui_alv_grid class and try this method!?
    Have anybody any ideas!?

    Hello Lars
    The following sample reports shows an ALV list with company codes. Double-clicking on any company code will open a second ALV list displaying all customers.
    *& Report  ZUS_SDN_ALVGRID_EVENTS_1
    REPORT  zus_sdn_alvgrid_events_1.
    DATA:
      gd_okcode        TYPE ui_func,
      gt_fcat          TYPE lvc_t_fcat,
      go_docking       TYPE REF TO cl_gui_docking_container,
      go_docking2      TYPE REF TO cl_gui_docking_container,
      go_grid1         TYPE REF TO cl_gui_alv_grid,
      go_grid2         TYPE REF TO cl_gui_alv_grid.
    DATA:
      gt_t001          TYPE STANDARD TABLE OF t001,
      gt_knb1          TYPE STANDARD TABLE OF knb1.
    *       CLASS lcl_eventhandler DEFINITION
    CLASS lcl_eventhandler DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
          handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
            IMPORTING
              e_row
              e_column
              es_row_no
              sender.
    ENDCLASS.                    "lcl_eventhandler DEFINITION
    *       CLASS lcl_eventhandler IMPLEMENTATION
    CLASS lcl_eventhandler IMPLEMENTATION.
      METHOD handle_double_click.
    *   define local data
        DATA:
          ls_t001     TYPE t001,
          ls_col_id   TYPE lvc_s_col.
        CHECK ( sender = go_grid1 ).
        READ TABLE gt_t001 INTO ls_t001 INDEX e_row-index.
        CHECK ( ls_t001-bukrs IS NOT INITIAL ).
        SELECT * FROM knb1 INTO TABLE gt_knb1
          WHERE bukrs = ls_t001-bukrs.
        IF ( syst-subrc NE 0 ).
          MESSAGE 'No customers found' TYPE 'S'.
        ELSE.
    *     Trigger PAI of dynpro '0100' and set new ok-code
          CALL METHOD cl_gui_cfw=>set_new_ok_code( 'CALL_SCREEN_0200' ).
        ENDIF.
      ENDMETHOD.                    "handle_hotspot_click
    ENDCLASS.                    "lcl_eventhandler IMPLEMENTATION
    START-OF-SELECTION.
      SELECT * FROM t001 INTO TABLE gt_t001.
      REFRESH: gt_knb1.
    * Create docking container
      CREATE OBJECT go_docking
        EXPORTING
          parent                      = cl_gui_container=>screen0
          ratio                       = 90
        EXCEPTIONS
          OTHERS                      = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CREATE OBJECT go_docking2
        EXPORTING
          parent                      = cl_gui_container=>screen0
          ratio                       = 90
        EXCEPTIONS
          OTHERS                      = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Create ALV grid
      CREATE OBJECT go_grid1
        EXPORTING
          i_parent          = go_docking
        EXCEPTIONS
          OTHERS            = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CREATE OBJECT go_grid2
        EXPORTING
          i_parent          = go_docking2
        EXCEPTIONS
          OTHERS            = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Set event handler
      SET HANDLER:
        lcl_eventhandler=>handle_double_click FOR go_grid1.
    * Display data
      CALL METHOD go_grid1->set_table_for_first_display
        EXPORTING
          i_structure_name = 'T001'
        CHANGING
          it_outtab        = gt_t001
        EXCEPTIONS
          OTHERS           = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL METHOD go_grid2->set_table_for_first_display
        EXPORTING
          i_structure_name = 'KNB1'
        CHANGING
          it_outtab        = gt_knb1
        EXCEPTIONS
          OTHERS           = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Link the docking container to the target dynpro
      CALL METHOD go_docking->link
        EXPORTING
          repid                       = syst-repid
          dynnr                       = '0100'
    *      CONTAINER                   =
        EXCEPTIONS
          OTHERS                      = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL METHOD go_docking2->link
        EXPORTING
          repid                       = syst-repid
          dynnr                       = '0200'
    *      CONTAINER                   =
        EXCEPTIONS
          OTHERS                      = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * ok-code field = GD_OKCODE
      CALL SCREEN '0100'.
    END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS_0100'.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE gd_okcode.
        WHEN 'BACK' OR
             'END'  OR
             'CANC'.
          SET SCREEN 0. LEAVE SCREEN.
        WHEN 'CALL_SCREEN_0200'.
          go_grid2->refresh_table_display( ).  " necessary
          CALL SCREEN '0200'.
        WHEN OTHERS.
      ENDCASE.
      CLEAR: gd_okcode.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Regards
      Uwe

  • Double click in tables

    Hi,
    i would like to get the selected field from a tabel with double clicking on the filed. What kind of action listener, selection listener should i use?
    Thx in advance:
    james

    You can read mouseclicks with the MouseAdapter class. Put it on your JTable like this:
    table.addMouseListener(new MouseAdapter(){
         public void mouseClicked(MouseEvent e){
          if (e.getClickCount() == 2){
             // double clicked
       }Inside the handler you can check the selected row/cell to check what the user doubleclicked on.

  • How to view a complex text in a table row in jsp?

    hi.
    I've got an array of type Option (I'm using it in DropDown list) called states and index of that array that I want to output in jsp...
    This is how the whole line looks like:
    <ui:staticText binding="#{comp.staticText4}" id="staticText4" text="#{ApplicationBean1.states[#{currentRow.value['comp.state_id']}].label}"/>
    The problem is in this code:
    #{ApplicationBean1.states[#{currentRow.value['comp.state_id']}].label}
    How to output the label property of the states array when index is stored in #{currentRow.value['comp.state_id']} ?
    best regards.
    Mike.

    Hi,
    In the bapi BAPI_MATERIAL_SAVEDATA, there is a parameter..MATERIALLONGTEXT...in which you can pass the DEL_FLAG = 'X'...to delete the long texts
    THanks
    Naren

  • Audio and video don't open together in viewer when double clicked

    Hello everyone!
    I'm having an annoying problem... it isn't something terribly important, but has decreased my work flow speed. Recently, I've had some trouble opening clips from the timeline in the viewer with the double click.
    If I double click the video portion of the clip, even if both the video and two audio tracks are highlighted (and are still linked) only the video portion of the clip will appear (along with "filters" and "motion" tabs) in the viewer, and similarly when double clicking the audio tracks, though both video and audio are highlighted, only the audio tracks and "Filters" tab show up in the viewer. Additionally, once the item is double clicked at the left with the jigsaw pieces that can be used to set video and audio destinations, if I've clicked on an audio portion so only audio shows up in the viewer, only the jigsaw pieces for the two audio tracks (a1, a2) are visible, video track (v1) is no longer present, and vice versa.
    I'd appreciate any advice that you all have! It's really driving me batty, in addition to not knowing what I did to make it that way, I can't figure out how to change it back!
    Heather

    Thanks for the advice.
    The clips already appeared to be linked, and the selection "link" was checked, however when I unlinked and then relinked I found that the audio and video would open up at the same time in the viewer... problem apparently solved! However, the clips I had been working with I had to nudge audio and video a few frames apart (out of sync) to get the audio and video to line up. (gives the little red box with a +or- number in it on the clip).
    When I unlinked and then relinked, the clip lost those red boxes and went back to being synced (as far as FCP is concerned) with the audio and video unaligned.
    So, the problem appears to be coming from when I move the audio and video of a clip out of sync... why is this? Is this something I'm just going to have to deal with?
    Thanks
    H

  • Nothing will open with double click

    Help! Our iMac seems to work OK, except that nothing will open with a double-click in Finder. It is not the mouse, which works fine. I rebuilt the directory with DiskWarrior, but that did not help. What is weird is that things do open with double-click soon after you reboot it. But after a day or so, it stops working. Any ideas?
    Thanks,
    Carlos

    Hi Carlos!
    It maybe your Mouse or your Mouse Preferences are getting lost somewhere. What type of Mouse do your have? When you lose the ability to double click, can you still right click and see the menu dialog? If so, try to open your file this way, if nothing happens when you right click try the next step below...
    You should check: System Preferences > Keyboard & Mouse > Mouse... from here make sure you right (secondary) button is activated and double click speed is not too fast or slow.
    Let us know, good luck, Rick
    iMac G5 iSight 20" - 30G iPOD in Slimming Black - WD 500G FW -   Mac OS X (10.4.8)   - HP Pav 15" WS and Toshiba Sat 17" WS LP's - Canon 20D & A620 Kodak P880

  • Why does double-click no longer select a whole word?

    I am on the beta update channel and currently using FF 8.0, latest update as of the moment of this posting.
    I am not sure when it happened - I think since I started using 8.0 - but double-click no longer selects a whole word. It's the same effect as a single click - simply positions the insertion point where the mouse cursor is located.
    This is very aggravating. I thought it may be a bug in the new version (I already posted it to Bugzilla, but hasn't been confirmed yet), Unfortunately, I don't have the old version to cross-check (can I install both versions on one machine?)
    Or is it some configuration issue? Or conflict with something else? I've searched and not (yet) found any other complaints about this issue from other users.
    Note that I do not have the problem in any other app nor in other browsers that I have installed (e.g., IE, Chrome, Opera, Safari). In all of those, double-click on a word selects the whole word.
    Thanks in advance for any suggestions or guidance.
    Best,
    Yosh

    OK - I found the culprit. It seems that the Answers.com '''1-Click Answers''' utility had changed its behavior. In its Options on the Activation tab is an option to activate it when using double-click in a browser. I don't remember turning it on, but it ''was'' on. When I turned that option off, the problem went away. Apparently it is not compatible with FF8, since double-click was apparently intercepted, but 1-Click Answers was not activated - the double-click simply became a no-op.
    Now that I've turned off that option, double-click in FF8 is back to the way it's supposed to work for quickly selecting a whole word or sentence.
    If anyone else encounters this problem, I hope this information will help to resolve it.

  • Show field mara-MFRPN in the MP02 without double click

    Hi all,
    Anyone know how to show field mara-MFRPN in MP02?
    I know that once we enter the internal material, it will show a list of MPNs, but in order to view the vendor manufacturer part number, we need to double click on each of it. How can we view mara-mfrpn in the same screen, means on the 1st screen instead of double click?
    Thanks!

    Hi,
    Check ur pf-status. in that did u give PICK to the functionkey F2 which will enable the db click facility.
    apart from setting the PF-status with PICK (F2) also set the property "respond to double click" for the tablecontrol column in screen painter.
    and u can get the values of the clicked field by GET CURSOR command.
    Also you can refer:-
    double click from table control?
    Doubleclick in Table control
    Hope this helps you.
    Regards,
    Tarun

  • DataGridView double click event

    I am new to programming but not very new. I have a form (named personal_Info) that fills some person's personal data and saves it in the database table "Personal_Information".
    2nd i have another form that searches from personal_information and shows result in a grid view.
    Now i want is that when search result shows in DataGridView and when i double click on any row of the shown results i want (personal_info) to open and made editing at that form and save it.
    Please help me with the code. 

    I have some assumptions, you need to make changes based on your code.
    private void dgvPersonalInfo_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
    // Assuming that you have a Persons Table which contains a PersonRowId
    var person = db.Persons.Where(x=>x.PersonRowId == e.RowIndex).Select(x=>x).FirstOrDefault();
    string name = dataGridView1[e.ColumnIndex, e.RowIndex].Value.ToString();
    if(person != null)
    personal_Info pForm = new personal_Info();
    // Assuming you have a string name property in your personal_info form
    pForm.name = name;
    pForm.Show();
    After showing values on the form make changes and save it with your save button which will update the values in your database.

  • How to handle double click in a table control?

    Hi,
    Can any one let me how to handle double click event in a table control in dialog programming?
    here i need to navigate to another screen when user double click on the table contols (emp number column).
    thanks in advance,
    PrasadBabu.

    to define double click in your table controlwhich is similar to 'PICK' function. Enable F2 in PF-status for this
    Table Control Question
    Check the above thread which was posted recently on SDN, please award points if found helpful

  • Why does double-click when trace on causes FRM-92101

    Hi:
    We have approximately 10 users for which we turned trace on. For some reason, when this user community double-clicks on a forms open space (i.e. on a non-item's canvas pixel), the sessions crashes and gives the following error:
    FRM-92101: There was a failure in the Forms Server....
    When you click the Details button you see the Java stack associated as follows:
    Java Exception:
    oracle.forms.net.ConnectionException: Forms session <115> aborted: unable to communicate with runtime process.
    at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
    at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
    at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
    at oracle.forms.net.HTTPNStream.flush(Unknown Source)
    at java.io.DataOutputStream.flush(Unknown Source)
    at oracle.forms.net.StreamMessageWriter.run(Unknown Source)
    Can somebody shine some light on this?
    Is it the forms code?
    Is it the back end?
    Is it a connection to a website where we are trying to get something from?
    Thanks,
    Thomas                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    OK - I found the culprit. It seems that the Answers.com '''1-Click Answers''' utility had changed its behavior. In its Options on the Activation tab is an option to activate it when using double-click in a browser. I don't remember turning it on, but it ''was'' on. When I turned that option off, the problem went away. Apparently it is not compatible with FF8, since double-click was apparently intercepted, but 1-Click Answers was not activated - the double-click simply became a no-op.
    Now that I've turned off that option, double-click in FF8 is back to the way it's supposed to work for quickly selecting a whole word or sentence.
    If anyone else encounters this problem, I hope this information will help to resolve it.

  • How can i double click a box in GUI and simply open a text editor?

    My case is that in my GUI frame, i have several boxes and if i double click on them, i want to open a text editor for these boxes and write the description for them then save them, and next time when i double click again, i can reopen this editor and see the description i did.
    How can i do this? I'm stuck. If somebody can help me, i appreciate it very much!
    Thanks a lot!

    If the JOptionPane.showInputDialog is not enough then you would have to come up with your own JDialog and customize it to suit your needs.
    For the saving aspect, if the items are online strings or short items, then consider using java.util.Properties for a name=value pair saving machinism. If your strings will be multiline, then consider using a textfile for each individual string set or use XML. The java.util.Properties class in JDK 1.5 provides and very simple XML storage and load feature for storing its name=value pairs.
    Look into these and add dbulai's advice for a grand finish
    ICE

Maybe you are looking for

  • What are my options for in car charging AND music playing for iPhone 3G?

    Ok, before you direct me to the other threads, I have read them, and I still don't know what product I can buy for my 3G that will charge my phone and play music in my car. With my original iPhone I was using the Griffin iTrip FM transmitter. It alwa

  • Submit and redirect is not working in firefox or ie, works great in chrome.

    I built a site to submit forms and it's great except that I was just informed it dosnt submit or redirect outside of chrome.

  • Lumia 620 buttons failure

    First of all, I am **bleep** right now! My phone (lumia 620) is only 6-7 months old and I am getting sick of it. After a month the problems started. He crashed sometimes without a reason, the screen did weard things, etc And now I had it. My lower vo

  • Compilations show up as lots of albums

    Hope this isn't a faq. Not sure if it was an issue in iTunes 6.X. I (like many) have a few albums that are compilations. In both of the the "cover browser" views, these albums aren't consolodated. So when I flip through the album covers, I see dozens

  • Resizing photos to burn a CD for PC

    How do I resize 200 photos from my iLife, iphoto library to burn a CD disk that can be read by a person using a PC microsoft system? When they have received my CD disks in the past the pictures are too large for them to see them or project them on th