CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Posts
    1

    Selecting and displaying certain rows in jTable.

    Hi,
    I have a Jtable in one my Java programs.
    I want to do the following
    1.
    Based on a query I want to select certain data from the Jtable, e.g.
    select * from <JTable> where column1 = "XYZ" and column2 = "123";

    2. Display only the selected information back in the JTable.

    So, although the JTable will have multiple rows, I will be displaying only a certain selected rows at a given time.

  2. #2
    Join Date
    May 2006
    Location
    UK
    Posts
    4,473

    Re: Selecting and displaying certain rows in jTable.

    You should be able to do this using a RowSorter
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

Tags for this Thread

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured