Questions tagged as 'jtable'

1
answer

Render image size in table cell

I created a table in java that shows my images stored in blob in the database. However, the height of the table is not automatically resized by having to put a value manually, for example: Tabela.setRowHeight(60); I would like to get the im...
asked by 15.05.2017 / 01:09
1
answer

Add rows in a JTable in ascending order

I'm doing an RBC system to check for similarity between computers. I would like to sort my table rows by the probability value. The problem is that the table has around 9,500,000 rows. Does anyone know how to sort rows by column? Here is the...
asked by 24.09.2016 / 18:07
1
answer

Query ORDER BY dynamic from the selection of a comboBox

I'm developing an application in java that manages a database. This application primarily performs a SELECT database, then submits ResultSet to an editable table. I tried to add a comboBox to the user to select the orde...
asked by 04.05.2016 / 11:57
1
answer

JTable does not show column names

I made a JDialog that will show some statistics of the users who use the software, but I am not able to make the name of the columns appear. I tried adding it using .addColumn in the template but it is not working. class Estatisticas e...
asked by 27.03.2015 / 19:11
1
answer

How to update a jTable that displays DB data after registering a new item?

I have a table (jTable) that displays all the data registered in a database. My table is populated every time the application is started through a WindowEvent, but when I make a new record in the database through another frame I can not get my j...
asked by 22.11.2014 / 18:51
1
answer

Do Multiply 2 Fields in JTable

I'm trying to get a multiplication of 2 fields in JTable but I can not do SpecificallytheFieldQuantityandUnitValuetomultiplyandgivetheTotalValueJTableScreenpackageTelas;importClasses.Cliente;importClasses.Material;importClasses.Orcamento;imp...
asked by 23.02.2017 / 23:49
0
answers

class fill table made in class DAO [closed]

I'm a little fussy and I would appreciate the help. The project works, inserts users into the database, but I would like to make a jtable to display the data entered; Here is the complete project (I'm having trouble posting here link...
asked by 12.01.2017 / 16:27
1
answer

Get line from JTable after Filter Data

I am using a TableModel (not the DefaultTableModel ) that populate with data from banco ( MySQL ), also use a Class to filter through a JTextField . It is working correctly, but I would like, after filtering throu...
asked by 29.06.2016 / 03:57
1
answer

Simultaneous JTables

Hello, I would like to know if there is a way to select 2 JTables simultaneously, I will explain: I need some columns of my JTable, do not change when the horizontal JScrollBar is changed, according to my research, there is no way I can do th...
asked by 16.05.2016 / 15:41
1
answer

Add row with empty fields in a JTable

I have a AbstractTableModel only that I do not know how to add blank lines, when I hit the add line button in my frame I want it to call a method called addLine () from my TableTable, can anyone help me? public class ModeloTabela2 e...
asked by 29.04.2016 / 14:53