Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7785681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:17:42+00:00 2026-06-01T20:17:42+00:00

I have a class that reads from a text file, splits the string by

  • 0

I have a class that reads from a text file, splits the string by a delimiter and adds them to an object depending on the first line.

Now everything adds to a linkedlist which later get all represented in a JTable.

In the GUI I have a JComboBox with various Categories. What I want is to filter the JTable according to the selected item.

This is a screenshot to help you understand more:

Code:

  • Processing: http://pastebin.com/4L427yDY
  • GUI_g: http://pastebin.com/rfaR3ehC
  • ProgramTableModel: http://pastebin.com/eLvcfPVM

How do I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T20:17:43+00:00Added an answer on June 1, 2026 at 8:17 pm

    You can use a javax.swing.table.TableRowSorter for sorting and filtering: See TableRowSorter. You’ll probably have to implement your own (simple) javax.swing.RowFilter, see RowFilter.

    An example: http://www.javapractices.com/topic/TopicAction.do?Id=163

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large-ish project that contains one class that reads from a file
Problem in words: For my application, I have a class that reads from a
So for Homework I have to create this program that reads from a text
I wrote a simple Tkinter based Python application that reads text from a serial
I'm upgrading from ColdFusion 8 to ColdFusion 9. I have a Java class that
I have this code which reads all the files from a directory. File textFolder
I have to write a program that read from a file that contains the
Suppose I have a junit custom class loader, which reads the test data from
I have class that predominately consists of gather string input and then subsequently outputting
I have a multi-R/W lock class that keeps the read, write and pending read

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.