Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

How to search a table with jcheckbox

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys
I am creating File Management software, and I had an idea to list the incoming documents by day using checkboxes.
The idea is when a checkbox is selected, only that checkbox's data appears in the table
I have 5 Checkboxs, to show the days the documents were registered
In the first show the registered documents after one day and so on, any ideas?
Sem-t-tulo.png
[Thumbnail for Sem-t-tulo.png]
Project
 
Bartender
Posts: 2406
106
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mario,
Can you please post your code done so far ? I assume that you are using Swing. Also have you looked at the sorting/filtering tutorials here ? :
https://docs.oracle.com/javase/tutorial/uiswing/components/table.html#sorting

The sorter can also be used to filter out data as shown in the tutorial.
 
salvin francis
Bartender
Posts: 2406
106
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a tiny program I wrote that does filtering based on checkboxes using Swing :
Maybe you can write something similar to solve your problem ?
 
This looks like a job for .... legal tender! It says so right in this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!