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

    Selecting and displaying certain rows in jTable.

    I have a Jtable in one my Java programs.
    I want to do the following
    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

    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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.