Questions tagged as 'jtable'

0
answers

Sorting with colored cells and Date column

I have two problems with finalizing my table: 1) I have% custom% to paint an entire row based on the value of a column. It works, but when I click to sort, the colors of the lines do not follow the classification. They are "crazy". 2) I ne...
asked by 04.08.2015 / 23:11
1
answer

Select Multiple rows in JTable in Java

Good evening, my question is how to select multiple lines in an action, I want to create a condition in a column if the value is bigger select the line, but if you have equal values, you have to select it as well. I tried to do this in the code...
asked by 19.10.2015 / 01:32
1
answer

How to change the text color of a column of a JTable

I have a form for payment of installments, and this form has a table where I show both the installments paid and those that still had to be paid. TopopularthisJTable,ImakeaqueryinthedatabaseandIbringthenecessaryinformation.publicvoidpreenche...
asked by 27.06.2016 / 20:43
1
answer

How to get data from a JTable for storage in a database?

I'm developing a project called Menu List with a MySQL database and in Java on NetBeans, with an added library of MySQL-Connector-Java. I want the names of the selected products, the quantity of products, and the total price of the Cardapio.j...
asked by 07.06.2016 / 15:40
1
answer

Table not loading

I'm trying to make the table list load and not loading always gives this error Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problem: The constructor PanelListClientes() is undefined at view.FramePrincipal.li...
asked by 20.11.2018 / 00:06
2
answers

How to change the size of the rows of the vertical grid of a JTable?

How do I change the size of the vertical grid lines of a JTable? Ex: jTable.setRowHeight(30); This method changes the width of the line. Is there any other similar to this that changes the vertical grid width of the columns? Below...
asked by 10.05.2018 / 21:38
2
answers

Button does not work when code is added to AbstractTableModel

I created a test project to implement in a larger project of a table with a button as one of the elements of the row. It works perfectly, but when I try to add to my code the button does not perform the action that was programmed. It is being do...
asked by 30.10.2018 / 17:31
1
answer

How to create TableCellRenderer for strings?

I wanted to know how to do a TableCellRenderer for strings. in this topic here:
asked by 05.11.2016 / 18:17
1
answer

How do I define size of columns?

I have a query screen, and I would like to set the size of the columns because some columns take up more space than necessary. I thought that if I made a comparison with the title of the column, although it might not be the most oriented way to...
asked by 11.11.2016 / 22:47
1
answer

Remove selection color from the JTable line?

It may sound like bullshit, but I can not seem to find the method to remove the color from the selection when the mouse clicks the line. I have a table with red and blue lines, blue colors are lines that signify an action and red other actions....
asked by 19.02.2015 / 14:35