How to make editing cell to show up caret and taking keyboard event

Hello everyone:
I have the following problem with table editing.
1. using mouse clicking, the editing cell will have cursor and taking keyboard event.(no problem with it)
2. just type in data, it will show up in the selected cell, but the editing cell do not have cursor visible and also do not fire the keyboard event.
I have problem with this one. So how to make editing cell to have caret visible and taking keyboard event.
Thank you very much!
--tony                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Hi,
you should subclass JTable and overwrite two methods.
1. protected boolean processKeyBinding(javax.swing.KeyStroke ks,
java.awt.event.KeyEvent e,
int condition,
boolean pressed)
to store the current keyboard event,
2.public boolean editCellAt(int row,int column,java.util.EventObject e)
to fix the problem with isCellEditable and curret position and direct the event into proper place.

Similar Messages

  • How to make editable cell in ALV TREE?

    Hi all,
    I have a problem to make the cell in item row (I mean not  the cell in hierarchy columns and not in the node row) in ALV tree editable.
    I know to make it in "normal" ALV, but my ALV is type class: cl_gui_alv_tree and the nodes are calculated in a sum.Can anyone help me to set the cell editable in ALV tree?
    Thank you a lot!
    Best regards,
    Danijela Zivanovic
    Message was edited by: Danijela Zivanovic

    HI,
    To make a column editable, it will be sufficient to set the field “<b>EDIT</b>” in the field catalog. The ALV Grid perceives if there are some editable fields and adds buttons for editing purposes. If you do not need these new buttons
    <u><i>if you want it in the Classes</i></u>
    For this procedure; add the name of the field to the field “FIELDNAME”, and pass “cl_gui_alv_grid=>mc_style_enabled” to make a field editable and “cl_gui_alv_grid=>mc_style_disabled” to make a field non-editable,
    <b>Example:</b>
    FORM adjust_editables USING pt_list LIKE gt_list[] .
    DATA ls_listrow LIKE LINE OF pt_list .
    DATA ls_stylerow TYPE lvc_s_styl .
    DATA lt_styletab TYPE lvc_t_styl .
    LOOP AT pt_list INTO ls_listrow .
    IF ls_listrow-carrid = 'XY' .
    ls_stylerow-fieldname = 'SEATSMAX' .
    ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled . APPEND ls_stylerow TO lt_styletab .
    ENDIF .
    IF ls_listrow-connid = '02' .
    ls_stylerow-fieldname = 'PLANETYPE' .
    ls_stylerow-style = cl_gui_alv_grid=>mc_style_enabled . APPEND ls_stylerow TO lt_styletab .
    ENDIF .
    INSERT LINES OF lt_styletab INTO ls_listrow-cellstyles . MODIFY pt_list FROM ls_listrow .
    ENDLOOP .
    ENDFORM
    Thanks
    Sudheer

  • How to make Finder NOT to show files from a specific folder in "All My Files"?

    Hello!
    Can someone please advice how to make finder NOT to show files from a specific folder in "All My Files"? See the attach - I recently installed Civilization 5 from Steam and now I have a lot of unneeded files (*.log and *.ini) shown in  All My Files colder in Finder.
    I don't want to see them. Any advise?

    Using "All my Files" was very handy before all this rubbish popped up. =(

  • How to make my tab page shows all my applications?

    How to make my tab page shows all my applications?Please help me as fast as possible. Thx .
    Note: Please write as detail as possible because I am new to vb.Thx again.

    Hi,
     For a lack of info about what Applications you are talking about we can only guess at what you want to do. In my experience, this is the kind of question that ends up being a mile long with 15 different examples because nobody knows exactly what you
    are trying to do.
     With that said, maybe you can put a ListView in your TabPage and use the code i showed in the link below. If not then please explain exactly what you want to do.  8)
    How to make a screen that displays 'all apps'?
    If you say it can`t be done then i`ll try it

  • How to make table cell have certain width

    Hi
    i have 3 cells when i write text in any cell it effects the
    width of other cells !!!
    how to make every cell have certain? i mean i want to wrap
    the text not to effect the cell width
    thanks in advance.

    Hi Mac,
    Try this
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Transitional//EN">
    <HTML><HEAD><TITLE>Home</TITLE>
    <META http-equiv=Content-Type content="text/html;
    charset=iso-8859-1">
    <style>
    .text-content-green {
    FONT-SIZE: 11px;
    COLOR: #a5a834;
    LINE-HEIGHT: 20px;
    FONT-STYLE: normal;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    .text-content-green:hover {
    FONT-SIZE: 11px;
    COLOR: #AE0B0B;
    LINE-HEIGHT: 20px;
    FONT-STYLE: normal;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION:underline;
    .margin {
    margin: 1px 1px 1px 1px;
    border-style: solid;
    border-top-width: 1px;
    border-left-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-color: gainsboro;
    </style
    </HEAD>
    <BODY topmargin="10px" leftmargin="0" rightmargin="0"
    class="body-style">
    <TABLE width="729" border="0" cellpadding="0"
    cellspacing="0" cellsadding="0" align="center" class="margin">
    <TBODY>
    <TR>
    <TD width="125" valign="top" bgcolor="#f0f0c1">
    <table width="125" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <td width="25" height="25" align="middle"></td>
    <td width="108" class="text-content-green"><A
    class="text-content-green" href="default.html">LEFT
    NAV</A></td>
    </tr>
    <tr>
    <td colspan="2" align="middle"></td>
    </tr>
    <tr>
    <td width="25" height="25" align="middle"></td>
    <td width="108" class="text-content-green"></td>
    </tr>
    <tr>
    <td colspan="2"></td>
    </tr>
    </table>
    </TD>
    <TD vAlign=top width=539 bgColor="white" height=471>
    <P class="text-content-green" align=left
    style="padding-left:5px">Lorem ipsum dolor sit amet, consectetur
    adipisicing elit.Duis aute irure dolor in reprehenderit in
    voluptate velit esse cillum .
    </P>
    </TD>
    </TR>
    </TBODY>
    </TABLE>
    </TD>
    </TR>
    </TBODY>
    </TABLE>
    </BODY>
    </HTML>
    HTH
    Shanthi

  • In Finder how do I get iTunes to show bit rate and sample rate of an entry?

    In Finder how do I get iTunes to show bit rate and sample rate of an entry so I can set my DAC?

    TonyEyes wrote:
    In Finder how do I get iTunes to show bit rate and sample rate of an entry so I can set my DAC?
    Tony, Make sure you are in Songs view.  Then View > Show View Options, and check the boxes for "Bit Rate" and "Sample Rate."  See picture:

  • How to get i cloud to show phone numbers and not emails

    how to get i cloud to show phone numbers and not emails

    In the contacts app the information is as you have entered it.  You can include the added information you want for the contacts.  Open a contact and tap edit and add the information you want there and then tap done.  It soulds to me like Facebook friends who have email addresses only have been merged into your contacts

  • How do I download a slide show with captions and music to my IPad?  It is not happening when I sync.

    How do I download a slide show with captions and music to my IPad?  It is not happening when I sync.

    The way that you would transfer photos from iPhoto to the iPad would be to sync with iTunes. Connect the iPad to your Mac with the cable and launch iTunes. Select your iPad under the devices heading on the left. Then click on the Photos tab in the iTunes window on the right. You can select the folder from which you want to sync your photos in the drop down menu bar - so select iPhoto there. Then select the album or events that you want to sync from the windows below. After you have made your selections, click on Apply in the lower right corner of iTunes.
    I am not sure how the iPad will handle a slide show in the photos app that was created on your Mac. You can create basic slide shows on the iPad using the different albums, events or faces that you have in the Photo app, but as for the captioning that you have already set up, I don't know how that will work in the app when you sync the slide show.

  • How to make a silhouette from a portrait (photo) and-

    How do I make a silhouette from a portrait?
    And how do I make the background transparent?

    Do you mean that I send you the portrait?
    Chabæna
    26 apr 2014 kl. 12:31 skrev c.pfaffenbichler <[email protected]>:
    Re: How to make a silhouette from a portrait (photo) and…
    created by c.pfaffenbichler in Photoshop General Discussion - View the full discussion
    How do I make a silhouette from a portrait?
    Ah, but wouldn’t it be ever so much easier to explain if you actually provided (a lores of) the image in question?
    And how do I make the background transparent?
    Preferably with a Layer Mask and then saving in the appropriate file format (psd or png24 for example support transparency).
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6332417#6332417
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6332417#6332417
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6332417#6332417. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Photoshop General Discussion at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How to make a PWM period of 20 ms and a pulse duration 0,8-2,0 ms

    Hi
    How to make a PWM period of 20 ms and a pulse duration 0,8-2,0 ms. deskret pulse length 0.01 ms. for MCB2300. Are there examples of such implementation?
    thanks

    Sergiv,
    I see you as having two options (if you want finer resolution):
    1) Lower the period of the PWM (such that the percentage values would be of finer resolution with regards to the overall PWM period).
    2) Alter the duty cycle of the PWM with an Inline C node.
    From what I understand, LabVIEW simply calls into the PWM driver distributed by Keil (for the MCB2300).  You can call into the PWM driver directly and/or change register values on the chip if you want in order to do whatever you want.  Both would require you to look through/program in C code.
    Kevin S.
    Applications Engineer
    National Instruments

  • How do I create a slide show from iphoto and export/send slide show within an email/, how do I create a slide show from iphoto and export/send slide show within an email/

    how do I create a slide show from iphoto and export/send slide show within an email/, how do I create a slide show from iphoto and export/send slide show within an email/

    You don't.
    Slideshows are exported as movies and these are very large files. Email is not an appropriate medium for very large files as they can cause immense issues for the receiver.
    Better to share some other way.
    Regards
    TD

  • How to make an openfiledialog? (browse a file and put it in a parameter)

    How to make an openfiledialog? (browse a file and put it in a parameter)
    Best Regards

    hi,
    check the code  below:
    FORM sub_gui_download.
    * Define local variables
      DATA:
        lo_fullpath       TYPE string,
        lo_filename       TYPE string,
        lo_path           TYPE string,
        lo_user_action    TYPE i,
        lo_encoding       TYPE abap_encoding.
    * Define local constants
      CONSTANTS:
        lc_encoding(1) TYPE c VALUE 'X',
        lc_directory TYPE string VALUE 'D:',
        lc_filetype TYPE char10 VALUE 'DAT',
        lc_separator TYPE char01 VALUE 'X',
        lc_blank TYPE char01 VALUE ''.
    * Call method to create dynamic save_path and save_format
      CALL METHOD cl_gui_frontend_services=>file_save_dialog
        EXPORTING
          with_encoding        = lc_encoding
          initial_directory    = lc_directory
        CHANGING
          filename             = lo_filename
          path                 = lo_path
          fullpath             = lo_fullpath
          user_action          = lo_user_action
          file_encoding        = lo_encoding
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4.
      IF sy-subrc <> 0.
        EXIT.
      ENDIF.
    * Check user_action
      IF lo_user_action <> cl_gui_frontend_services=>action_ok.
        EXIT.
      ELSE.
    *   If user_action equals to action_ok, call function module to download datas
    *   using download table i_dwn_tab
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            filename                = lo_fullpath
            filetype                = lc_filetype
            write_field_separator   = lc_separator
            trunc_trailing_blanks   = lc_blank
          TABLES
            data_tab                = i_dwn_tab
          EXCEPTIONS
            file_write_error        = 1
            no_batch                = 2
            gui_refuse_filetransfer = 3
            invalid_type            = 4
            no_authority            = 5
            unknown_error           = 6
            header_not_allowed      = 7
            separator_not_allowed   = 8
            filesize_not_allowed    = 9
            header_too_long         = 10
            dp_error_create         = 11
            dp_error_send           = 12
            dp_error_write          = 13
            unknown_dp_error        = 14
            access_denied           = 15
            dp_out_of_memory        = 16
            disk_full               = 17
            dp_timeout              = 18
            file_not_found          = 19
            dataprovider_exception  = 20
            control_flush_error     = 21
            OTHERS                  = 22.
        IF sy-subrc <> 0.
          MESSAGE i007.
        ENDIF.
      ENDIF.
    ENDFORM.    

  • How to make an effect of a glass breaking and fall into pieces?

    How to make an effect of a glass breaking and fall into pieces?
    I want to make an effect where there's a guy hitting a wall and the wall falls into pieces...Please help!! I can make the guy in green screen but its the effect of the wall breaking that I want to know how to make in motion. Hope anyone can help

    Search is your friend:
    http://discussions.apple.com/search.jspa?threadID=&q=shattering&objID=f656&dateR ange=all&numResults=30
    Patrick

  • How to make the mobile application work with firewall and anti-virus ON

    Hi,
    I keep on receiving internal processing error when i try to login sap mobile solution 1.3.0 on my ipad and i was provided a solution, that is to turn off my firewall and antivirus. I works by turn off both of it but i cant possible turn of the firewall and antivirus on the server.
    Can anyone guide me how to make the mobile application work with firewall and anti-virus ON
    Thank you

    Dear Rajesh,
    Create a policy in your fire wall to allow the port to send and receive data.
    I believe the port for the mobile should be port 8080 and 8443.
    And your license server port 30000 and 30001
    nd.Q

  • How would you edit 4k in Premiere Pro CC and export in 2.5k and 1080p (all within premiere pro, is it possible?), how would you edit 4k in Premiere Pro CC and export in 2.5k and 1080p (all within premiere pro, is it possible?)

    how would you edit 4k in Premiere Pro CC and export in 2.5k and 1080p (all within premiere pro, is it possible?), how would you edit 4k in Premiere Pro CC and export in 2.5k and 1080p (all within premiere pro, is it possible?)

    Edit 4K and export what ever you want from AME

Maybe you are looking for

  • Cheque numbers are not completely updated for all payment document

    Hi, In the Automatic Payment Program, system is not able to update cheque numbers for some of the payment documents which were generated in one APP run. This issue, we are facing only in Production Server. APP The extraction of Payment details are no

  • SO_OBJECT_SEND,what are the input parameters ,how topass is it right

    SO_OBJECT_SEND, can any one tell how to use this function module to download the data from internal table to pdf file,i have just debugg, it SO_NEW_DOCUMENT_ATT_SEND_API1, and found it, it may be correct or not i dont klnow, if there is some thing ot

  • Receiver File Content Conversion - Multiple Hier. Levels, Several Files

    you can create several files using single message execution. one source message structure and target multiple messgae types(0..1) occurance and same thing you can implement in your Interface mapping. 1 -> Multiple Inbound interfaces your target final

  • Problem with update statement

    Hi, i have the following data document_seq_num, Country, LE, SOB 33100037     NL     000320     13      33100037     NL     000320     13      33100037     NL     000320     13      33100037     NL     000320     13      33100038     NL     000320   

  • Waveform chart, plot and Dynamics Data and double data

    Hello everyone ! I would like to get separate plots on the same waveform chart. Actually, I am simulating 4 signals (but in reality, it would be signal from sensors) and I would like to get 4 plots. In the end, I get 3 plots and no 4 plots. It is ver