Questions tagged as 'jtable'

0
answers

How to pass data from two Jtables to a form?

I want a form to be fed from two tables but it happens that I select the data of a table and when selecting those of the second, the ones of the first one are deleted ... my selection code is the following for one of the tables: Location ub = ne...
asked by 02.06.2018 / 19:46
0
answers

String to Jtable

My question is this, I have a class called Worker. The data is read from an excel file attached to "resources" in the project. I am building an interface, and I would like to put the data of DNI, Name, and some other in a JTable. public class...
asked by 01.06.2018 / 00:26
0
answers

Error JTable getSelectedRow ()

I'm doing a project for class with a graphical interface. Well basically it shows the information in a JTable, then I should select a single row and press a button to perform an action on the data I have in the table. Well when I call table.g...
asked by 05.05.2018 / 02:04
0
answers

How to save a list of data within a vector to save in a JTable

I am making a small software that allows entering the data of a new user and that the employee can see the data in a table. But it does not save the data in the JTable so I'm trying to create a vector to save the data and pass it to the table bu...
asked by 05.04.2018 / 23:31
1
answer

Jtable (getselectedrow) returns -1

Hello, I am loading a file with some data that I have stored in a MySql database, then with a mouseclicked event I select a record to edit it and in that interface there is a button that shows me a jdialog to be able to edit some records of my d...
asked by 01.04.2018 / 05:36
0
answers

I have problems with the DefaultTableModel class in java

My problem consists of the following: I have a JFrame, which contains a JTable with several fields, among these, there is one called Payment whose characteristic is to inform the user if a client within the list paid or not. In an area of the...
asked by 20.02.2018 / 07:20
1
answer

separate objects

My problem is that I need to separate an Object and I do not even know if it can be done. In the software the user must enter a desired number of players registered in a DB by first and last name, then call that list to put it in a table vers...
asked by 11.01.2018 / 02:03
2
answers

jTable does not name the columns

I have a jTable for a future pool that I want to make. The problem is that when I create the jTable, I open where it says model, I put the number of columns and the number of rows and I also put the name but in the jFrame only the jTable leaves...
asked by 06.01.2018 / 09:22
1
answer

Problem getting selected values from checbox in Jtable

I go through the whole table obtaining the values of the selected checkboxes the problem is that if it brings all the values except the last one selected: in this case you should print the values from 3 to 11 but do not print the latter:...
asked by 18.10.2017 / 19:22
0
answers

Java Jtable Editable in execution time BD postgresql

I only have one Jtable created, I need to visualize and update the data in this one that must be connected to Postgresql It's all the code I have package sistema; import java.sql.ResultSet; import javax.swing.table.DefaultTableModel; /**...
asked by 23.09.2017 / 01:30