Questions tagged as 'jtable'

1
answer

Color row where cell has value of arraylist

What I want to do is: Color the rows of a table where the cell in column x has a value present in an arraylist. In more detail: I fill the array list with the values 1000000, 1000001, 1000007 of a query to the database. Now, I go t...
asked by 23.05.2017 / 03:57
2
answers

Select a row of a JTable and pass data to jTextFields - JAVA

I have a class called " Compra.java " ( JFrame ) where there is a JTable with NO purchased vehicles available for sale, if I select a row (a vehicle) from that table and pulse the JButton " button_buy "you should send m...
asked by 13.01.2017 / 09:38
1
answer

JTableHeader Netbeans [closed]

Good afternoon, I would like to know how to add a custom Header in a table with more than one combined column, etc.     
asked by 15.03.2017 / 12:39
1
answer

In a Model (MVC) query a View (SQL) or consult several tables

Good morning. I'm adapting my project to MVC and I have a question, in a form I need to recover the data from 3 tables. I have an already created (SQL) view where I can create the getRegistration () method of the 'Dao Member (Data Access Object)...
asked by 20.10.2016 / 13:12
3
answers

I do not get 2 decimals in the jTextField to pass it to a DB!

I'm going crazy and I do not know what to do, to see if someone can help me. I would like that in the jTextField9 I would only get 2 decimals ( 123.45 ), because like this I get many decimals (123.45322222). because then I want the result w...
asked by 24.05.2018 / 15:20
1
answer

How to put a jCalendar in a cell of a JTable in Java Swing

I have to place a jCalendar in a cell of a table that I filled with a query from a database, but it has to be with java swing. I am trying it through a mouseclick event, I leave here the one that contains the function. int fila; fila = (In...
asked by 24.03.2018 / 18:00
1
answer

Update JTable cells in real time

Can the cells of a Jtable be updated while it is on the screen? Type opens the window that has the JTable and it is written in it and then with the info that you put before it, it fills other cells. Is that possible?     
asked by 09.01.2018 / 14:52
1
answer

not supported on forward only result sets in Java

I am trying to fill a JTable with the records that a table has in my database in SQL. I receive this error:    com.microsoft.sqlserver.jdbc.SQLServerException: The requested   operation is not supported on forward only result sets. Sta...
asked by 07.11.2017 / 19:06
1
answer

Unable to convert String to Double

I have a JTable where I load the data that I have in my BD, based on those records I make a simple operation, the data I enter and with which I do the operation I declared them as Double , at the moment to save the new data without...
asked by 25.08.2017 / 15:08
1
answer

Validate entry in a JTable (Java)

I have a problem with JTable: I have a table with the columns CODE, DESCRIPTION, QUANTITY, PRICE, CATALOG, and NUMBER_PAGE, and I need the code, quantity and price columns to only accept numbers. I have tried the events and I can not solve. T...
asked by 30.06.2017 / 18:50