Posts by Lucas16 • 65 points
7 posts
-
0
votes1
answer365
viewsQ: Popular combobox inside jtable with database, how to proceed?
Currently I populate a normal combobox this way: this.CadperfilLinha.removeAllItems(); try { Class.forName(Auxiliar.AcessoBanco.getDriver()); Connection con =…
-
0
votes1
answer252
viewsQ: Error while trying to place Jcheckbox in a Jtable column
I’m trying to add a column to a DefaultTableModel, but seems to be giving some problems. Follows code! JCheckBox jcheck; DefaultTableModel modelo = new DefaultTableModel(null, new String[]{"Data",…
-
2
votes1
answer80
viewsQ: Case Sqlserver, how to proceed?
I am trying to display a column q is set at 0 and 1 so that when by 0 show 'Ok' and for when it is 1 'NOK'. Follow my code that is not working, but by the query slq String query1 = "Select…
sql-serverasked Lucas16 65 -
-1
votes1
answer89
viewsQ: Get last sql server information from netbeans jdbc
I am using this way to try to bring the latest information registered in sql server, but for some unknown reason it is not working. I searched in several forum and apparently is used the same method…
-
0
votes1
answer331
viewsQ: Take last table value from bank and show in Jtextfield
I have a program here at the factory that, every 1 minute, an equipment connected to a supervisory launches a direct value in a table in the database (SQL Server). I wonder how do I always take the…
-
1
votes0
answers22
viewsQ: continue running when der Duplicate key, how to proceed?
I’ve got nine tests on every procedure, but at some point the guy saved one of those null tests, but it’s possible he could save null, because it might be that these tests aren’t applicable to that…
-
1
votes1
answer415
viewsQ: How to hide and block the last line of a Jtable?
It is possible to hide and lock the last line of a DefaulTableModel? I have this difficulty and I am not able to solve it. If it is not at least possible to hide this line? import…