Questions tagged as 'jtable'

1
answer

modify the name of the columns of a jtable from code

I have this table in a frame I have another jframe where when clicking a button the jframe where I have this table changes the names of the columns of the table, this is the code of the table public void desicionmetodos(int a){ switc...
asked by 16.05.2017 / 20:09
1
answer

How do I change the color of a cell in a jTable? [closed]

I've been investigating how to do it, but the only thing I find in creating another class extending DefaultTableCellRenderer but the problem I have is that I already have the code that creates the table done, the question is if I want the bottom...
asked by 01.01.2019 / 01:09
0
answers

Paint in Jtable tables

I have a weekly schedule already generated in a JTable table. What I want is that you can either paint in the cells manually with the application running (I have not found anything about it) (and also, call a method behind) or, (as I have done s...
asked by 17.12.2018 / 13:48
0
answers

JAVA - Save JTable in a SQL database

Create a program that allows me to save varied data in a JTable, but I would like to know how to create a button that would allow me to save the data in one SQL Table and another to call the data of that table (Export and import data).     
asked by 30.11.2018 / 01:49
0
answers

Problem closing, saving, editing, and saving jTable again (nullpointerexception)

stackoverflow community. I'm doing a java application that adds, updates, or deletes the cells of a jTable and then saves the values in a text file. When I open the application for the first time and make the respective modifications to the tabl...
asked by 28.11.2018 / 04:22
0
answers

Update a JTable within a cycle For

I have a problem when running a program. I am simulating a Processor with java and I am saving the variables in a list and showing them in a JTable, in this program I have a variable that is the one of cycles that must go in decrement every time...
asked by 17.11.2018 / 05:34
0
answers

How to join several cells in a Java Jtable

I have a Jtable with 15 columns and around 200 rows, but I need in some rows, write a text that occupies the whole row and that is also centered, how can I do this, how can I treat the row as having only one column.     
asked by 05.11.2018 / 16:51
1
answer

Call Oracle data to a NetBeans Table [closed]

I would like help on this topic, because I really do not know how to do it. My question is, I have a form in my NetBeans and when I click on the button I should pull the data that I have in my Oracle and show them in the table I have there .....
asked by 29.09.2018 / 19:30
1
answer

How to obtain data from a checkbox?

How you can obtain data by selecting a checkbox, as shown in the image: When entering a salary, I get its value from the field and when I select "AFP" I can multiply the value obtained from salary with 0.10 which is the value of the AFP, i...
asked by 20.08.2018 / 22:39
0
answers

Help with .paint (g) and JTable

I have a big doubt. I want to use the .paint method to be able to save the whole window in an image, the problem is that the information that is inside of it is not painted, I explain: What I want is for an image to be created as (it is done...
asked by 15.08.2018 / 01:21