Results 1 to 2 of 2
  1. #1
    Subhasri is offline Member
    Join Date
    Sep 2011
    Posts
    15
    Rep Power
    0

    Post How to delete a selected row in JTable in Key Event?

    I have to delete a selected row in JTable using the Key Event.When i select a row and pressing the Delete Key,the selected row values should be deleted.


    How to do this?

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,309
    Blog Entries
    7
    Rep Power
    20

    Default Re: How to delete a selected row in JTable in Key Event?

    You're probably using a DefaultTableModel; read its API documentation.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. how to get the currently selected row fo a jtable?
    By kulangotski in forum AWT / Swing
    Replies: 4
    Last Post: 01-16-2011, 05:22 AM
  2. Replies: 6
    Last Post: 01-30-2010, 02:55 PM
  3. JTable Gridline in selected row
    By arubin in forum AWT / Swing
    Replies: 11
    Last Post: 11-24-2009, 07:05 PM
  4. Replies: 15
    Last Post: 11-13-2009, 11:00 AM
  5. JTable problem with getting ROW selected
    By nadia in forum Advanced Java
    Replies: 2
    Last Post: 01-13-2009, 05:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •