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

  • SEARCH
  • Home
  • 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 6876757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:31:03+00:00 2026-05-27T04:31:03+00:00

I already can filter the JTable using a JTextField, the problem is that is

  • 0

I already can filter the JTable using a JTextField, the problem is that is case sensitive. For example, I got this name in the Jtable: “Guillian Fox”, if I write “guillian fox or “GUILLIAN FOX” in the textField the name doesn’t show.

I know that java have .toLowerCase or .toUpperCase methods, but the problem using that methods is the result is going to be unsightly, ’cause both have to be upper case or lower case, when the appropiate would be the first letter in uppercase, because are names.

The rows of the JTable are from a query in a data base. So, the solution I was thinking is do not do the filter directly in the jtable, instead of that, make a query that filter the results, but I think is very inefficient given that I will make a query for each character inserted or deleted from the textField.

@Override
    public void changedUpdate(DocumentEvent arg0) {
        ordenador.setRowFilter(RowFilter.regexFilter(jtxtfBuscarInv.getText(), 0));

    }

    @Override
    public void insertUpdate(DocumentEvent arg0) {
        ordenador.setRowFilter(RowFilter.regexFilter(jtxtfBuscarInv.getText(), 0));

    }

    @Override
    public void removeUpdate(DocumentEvent arg0) {
        ordenador.setRowFilter(RowFilter.regexFilter(jtxtfBuscarInv.getText(), 0));

    }
  • 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-05-27T04:31:03+00:00Added an answer on May 27, 2026 at 4:31 am

    for ignore CaseWhatever

    ordenador.setRowFilter(RowFilter.regexFilter("(?i)" + text));
    

    but for non-ASCII launguages, you have to check four key (2×2) in line with/near Big ENTER on the keyboard,

    if you rellated with this issue, then you have to exclude these four keys from keyboard and to write own matrix for UpperCase and LoverCase too

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

Sidebar

Related Questions

I have a filter that looks like this: <filter> <filter-name>TestFilter</filter-name> <filter-class>org.TestFilter</filter-class> <init-param> <param-name>timeout</param-name> <param-value>30</param-value>
So I've already got this working but I'm hoping someone can help me optimize
I can already do: using System.Windows.Forms; Button b; or: System.Windows.Forms.Button b; but I would
Simply put; what does my $99 get me, that I can't already get for
I already have a deploy.rb that can deploy my app on my production server.
How can I call a constructor on a memory region that is already allocated?
How can I make a simple low-pass FIR filter using Matlab (without using the
If anyone can help me on this I would be very excited...I've already spent
Is there a shorter way to write this? $myelements.find('*').andSelf().filter(myselector) As far as I can
this is related to my last question ( NOTE: I already got some good

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.