Questions tagged as 'jtable'

1
answer

How do I clean a JTable?

I'm using JPA to populate my table which is located at Jframe . Through JPA, I make a selection in my bank to find all names that have part of the name I wrote, for example, if the entry is "m", all people with a name beginning with "m"...
asked by 20.06.2017 / 19:48
1
answer

How to dynamically change model data when changing value from the list that fills it?

I have a JTable where I have a column named colun1 I want to know how do I change the JTable data when any data in the list that fills it changes. Example I have a list with name of listString with 3 values "String 1" "String 2" "String 3"...
asked by 13.12.2017 / 17:16
1
answer

Error converting value to JTable [closed]

I'm having an error passing value formatted to JTable , if anyone can help, thank you very much. This error only happens when I format the number, I would like to know how I can correct it. Code: private void calcularButtonActi...
asked by 23.08.2017 / 20:19
1
answer

Jtable only accept float type numbers in your cell [closed]

I am using this code to accept only numbers in the jtable cell, but I would like to know how to accept . as well. Can someone help me? I'm using java language on the netbeans platform. TableColumn col = tabela.getColumnModel().getCol...
asked by 30.06.2017 / 16:16
1
answer

Error when setting template in JTable

So I was developing a frame that received a table from the database, I used the same scope of the function several times and it worked perfectly, I just modified what was necessary to generate the table the way I wanted it in that case and starte...
asked by 06.12.2016 / 20:34
1
answer

How to add to the AbstractTableModel a combobox populated by database information?

I wonder if it is possible to implement a combobox in a AbstractTableModel so that it receives information directly from the database to fill. if possible could someone give me an example? Since I've always used DefaultTable...
asked by 04.01.2018 / 02:01
1
answer

Error accessing JTable line [closed]

On my system you are giving code line error ModelUsuario modelUsuario = new ModelUsuario(); ControllerUsuario controllerUsuario = new ControllerUsuario(); //recebe a linha selecionada int linha = this.jTableUsuarios.getSelectedRow...
asked by 25.04.2017 / 03:24
1
answer

JTable AutoSorter in columns

I'm a few years old with a problem that I still can not solve completely today. When I add a TableRowSorter to a JTable automatically the columns can be ordered by clicking and thus I have a problem getting the correct index, yes a...
asked by 09.11.2017 / 12:52
1
answer

How to import a csv file into a JTable?

Does anyone know how to move from a csv file to a jtable? At the moment but list everything in the first column. private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { // TODO ad...
asked by 16.02.2017 / 18:32
1
answer

How to Mount a Jtable with ResultSet?

I have an example: Object rowData[][] = { { "Row1-Column1", "Row1-Column2", "Row1-Column3" },{ "Row2-Column1", "Row2-Column2", "Row2-Column3" } }; Object columnNames[] = { "Posição", "Nome", "Pontuação" }; JTable table = new JTable(rowData, co...
asked by 20.11.2014 / 18:05