Questions tagged as 'jtable'

1
answer

Data not displayed in table by AbstractTableModel

I'm developing a ticket request system, however because I have to add JXDataPicker to the table, I had to implement AbstractTableModel . The model apparently complies with the documentation, I can display all the fields, but I ca...
asked by 30.10.2017 / 04:46
1
answer

Adjust columns according to available JTable size

I have a JTable where the user can hide and then display one or more columns again. I found a code that adjusts the column according to the size of the "value" from Camp". I call this method as soon as populo to JTable . public...
asked by 07.07.2016 / 19:20
1
answer

Collect data from a JTable and send it to a List

In my Java application, I have a sales screen where the products that are selected go to JTable . At the end of the sale, I need to collect the JTable data and deliver it to the printing method, which is in another class. I just can...
asked by 17.04.2015 / 19:14
2
answers

Passing different object types to a TableModel

I'm starting to mess with JTable but I have a question. I can see this post here in another one forum and my doubt is. In case it passes to the model of the table a list of type book: private List<Livro> valores; public Titul...
asked by 22.07.2014 / 05:07
0
answers

Loading JTable and processor gets high process [closed]

I am making a system and it has a JTable and I need to load my data, I was analyzing through the task manager that when this function load the table is called, it increases the processor load a lot. What can it be? I already tested it and...
asked by 11.01.2017 / 23:25
1
answer

Help to fill jTable

I'm filling a jtable with the birthdays that are registered in a database. public void jTablePop() { javax.swing.table.DefaultTableModel dtm2 = (javax.swing.table.DefaultTableModel)jTable1.getModel(); dtm2.setNumRows(0); //IS...
asked by 14.10.2015 / 18:03
1
answer

How to hide and block the last line of a JTable?

Is it possible to hide and block the last line of a DefaulTableModel ? I have this difficulty and I can not solve it. If not, is it possible to hide this line? import java.awt.BorderLayout; import javax.swing.JFrame; import javax.swin...
asked by 05.10.2017 / 16:02
1
answer

How do I retrieve a line in my jTable?

I would like to know how to retrieve information from a line of my JTable , follow the line of code of it. Usuarios operacao = new Usuarios(); DefaultTableModel tabela = new DefaultTableModel(); private void adicionarLinhas(String nome,...
asked by 08.12.2016 / 00:08
1
answer

Place a table created in an existing container

I need help! I'm developing an application in college that will use BubbleSort - yes! We had the misfortune to get this! - to sort some data within a table. I created the table through a class that extended AbstractTableModel, however I ca...
asked by 26.08.2016 / 18:22
1
answer

How to apply a filter of two JDateChooser to a JTable?

I need to simultaneously filter the data to be displayed in a JTable . Querying some old questions I was able to solve part of my problem. I have a DATA field in the table of type String and I have two JDateChooser of the JCalend...
asked by 08.11.2018 / 20:13