Questions tagged as 'jtable'

0
answers

Jtable in Java, parameter error?

I'm having trouble passing the parameters to my jTable , these parameters being Object[][] and String[] . tabela = new JTable(dados, colunas); It does not work the data is an array like this: dados = new Object[1][con...
asked by 12.12.2016 / 13:05
0
answers

Constructing a java table from a vector as a parameter

Hello! I'm having trouble building a table. It is as follows, the user defines a series of variables that are stored in a vector. I would like the variables stored in this array to be the name of the columns in the table. The problem does not in...
asked by 14.07.2016 / 20:42
0
answers

Identify empty columns of a jTable and paint the entire line of Red

I'm importing a file into Excel and playing inside a jTable, so that's fine. What happens is that user has inserted spreadsheet with empty fields. I would like to leave the entire sheet in red and request that it be changed. This is the code...
asked by 22.07.2016 / 15:13
0
answers

Get textarea data from a JTable

I know that using DefaultTableModel is not the best way to do the tables, but I have not yet mastered AbstractTableModel , I have a table that is edited as JTextArea, but when I type it does not come in the variable of cell of the t...
asked by 29.04.2016 / 19:50
1
answer

How do I populate a JTable?

I have a fairly simple java application that connects to a database, in the console I type the query I want to pass by parameter to the executeQuery. Now I need to pass all this to a graphical interface. Is there any way I can create just one wi...
asked by 10.06.2014 / 06:03
2
answers

Select empty data

My code returns all users, verifying that they have paid the last month, however I connect two tables, one of all the clients with the registered payment table, I want it to print in jTable even if it does not have left join seems...
asked by 27.04.2016 / 18:21
0
answers

How to save the selected row of a JTable in DB?

I have a JTable that populates the database, where I can select multiple rows at the same time with the Boolean field that was added. I need to, when I click the "burn" button of my form , the lines that were selected in JTable...
asked by 22.12.2014 / 13:21
1
answer

How do I send data from a JTable to my DB?

I have a filled JTable and need to store its data in a table in my database. How do I do that? I only know the reverse path (fill a table from the DB) I'm using MySQL     
asked by 21.12.2014 / 19:37
2
answers

Update JTable using DefaultTableModel

I understand that the use of DefaultTableModel is almost abominable, but I used this template and now I have no time to change to a TableModel (which I have not learned yet), is there any way to update a table of a class in View , after a method...
asked by 14.06.2016 / 18:34
1
answer

Search in JTable does not return as expected

I have a bug that I do not understand. The idea is simple, I should type a value in a field and it returns me in the table, this happens, however when I click on the value found in the search it selects me the first value inside the table impo...
asked by 13.09.2017 / 04:03