Questions tagged as 'jtable'

1
answer

Display JTable in multiple panels

How do I get my JTable displayed on all tabs within the panels? I can only display on the "Day 5" tab. import java.awt.Container; import java.sql.ResultSet; import javax.swing.BorderFactory; import javax.swing.JButton; import javax.swin...
asked by 08.04.2018 / 19:10
1
answer

Search using JTextField and JTable

I am having a question about searching a JTable using JTextField. When the person enters the name of the Work in Textfield and click on search, in the JTable is to appear the search result. Myquestionisthis:HowdoIcleanJTableandfillitoutwitht...
asked by 12.06.2016 / 04:04
1
answer

How to create a dynamic JTable?

I have a JTable in my form, I wanted the size (number of rows and columns) of the table to be according to the number that the user type, how to do in java?     
asked by 04.06.2016 / 02:36
3
answers

how to select the entire row of a JTable using DefaultCellRenderer that changes the color of the line

Hello, I'm working with JTables, and in that JTable I needed to leave some lines in different colors, so I implemented the method class cellRenderModel extends DefaultTableCellRenderer { /** * */ private static final long serialVersionUID =...
asked by 23.05.2016 / 22:03
2
answers

Activate JButton from selection in JTable and remove the initial focus from the table

I have a window with a JTable , where only the selection of an entire row is valid, not just one field. The issue is that the window already opens with the first line selected, and I would like to disable it. In this same window I have...
asked by 24.04.2016 / 21:19
1
answer

Update JTable after each change of data in a cell

I'm using java
asked by 20.03.2016 / 18:58
1
answer

Merge RowFilter.andFilter with RowFilter.orFilter

I have a project that has a table and items to be filtered. They are a JComboBox category, a JTextField , and a JDateCooser date range. I made all the filters separately with RowFilter.andFilter and now I need to put them...
asked by 11.11.2018 / 14:30
1
answer

Jtable with monetary value in a single column

Looking to implement monetary value formatting in a jtable, I've tried using the Rafael Chaves as a base and I was able to do the code below. import java.awt.Color; import java.awt.Component; import java.awt.Font; import java.text.NumberForm...
asked by 13.06.2018 / 04:58
1
answer

Display multiple columns [closed]

I am developing a basic program in Java Application (Desktop) that performs a simple registration and displays in another screen through a JTable the data recorded in it. My problem is that there are 24 columns to display in this table, so I...
asked by 19.07.2017 / 17:49
1
answer

How to change the color of the lines of a JTable?

I need the line color to change whenever the cell value equals 0. However, all lines are being painted. View with a simple JTable import javax.swing.JTable; public class View extends javax.swing.JFrame { private EstoqueActionL...
asked by 05.05.2017 / 22:43