Results 1 to 2 of 2
  1. #1
    dinesh.guntha is offline Member
    Join Date
    May 2011
    Posts
    27
    Rep Power
    0

    Default In jtable the focus got to particular row when i enter any key from key board

    Hi All,

    In Jtable, i want a search a word, if press any letter then it should match that particular row.

    For example i have columns name,class,id
    if i presses the letter 'd' it should show particular row focus in jtable


    Can any one suggest this topic i searched in net but i not found..

    But you may suggest me this soultion, textfield match word. this not currect soultion for my work.
    Any otheir soultion to the search.

    Thank you in Advance.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,040
    Rep Power
    10

    Default Re: In jtable the focus got to particular row when i enter any key from key board

    Not really sure I'm understanding your predicament, but can't you just do it the dumb way? Loop through the table cells, and select a row if you find a match for the text.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Replies: 3
    Last Post: 11-14-2011, 06:13 AM
  2. How to change the focus order of JTable
    By chyrl in forum AWT / Swing
    Replies: 0
    Last Post: 05-05-2010, 03:00 PM
  3. JTable Cell Focus Listener
    By Manfizy in forum New To Java
    Replies: 1
    Last Post: 07-21-2009, 09:08 AM
  4. JComboBox in JTable and Cant get Focus...
    By markw8500 in forum New To Java
    Replies: 1
    Last Post: 03-30-2009, 12:35 AM
  5. JTable Focus Traversal
    By helios_lie in forum AWT / Swing
    Replies: 1
    Last Post: 12-20-2007, 11:27 AM

Posting Permissions

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