Java abstract class which provides default implementations for most of the methods in the TableModel interface.
Questions tagged [abstracttablemodel]
294 questions
0
votes
2 answers
Any idea why AbstractTableModel causes empty cells to be added to my table? (Java Swing)
As the title says, empty cells are being added to my table when I add something to the underlying list.
Main Class:
import javax.swing.SwingUtilities;
public class Main {
public static void main(String[] args) {
…

Stanislav Dimitri
- 25
- 4
0
votes
1 answer
Can you get a column of (MySQL) data into a vector in Qt without iterating?
I have data in a MySQL database which I want to put into a vector in order to do some math on it. It may be that this issue is not specific to QSqlTableModels but rather any QAbstractTableModel, but I'm not sure. Right now, I…

Matt Phillips
- 9,465
- 8
- 44
- 75
0
votes
1 answer
How to change column headers localization of custom table model
I have a table model that extends AbstractTableModel and I created a method to change header like this
public void ChangeHeader(Locale l){
ResourceBundle r = ResourceBundle.getBundle("newpackage/Bundle", l);
this.Column[1] =…

Doan Van Thang
- 989
- 1
- 10
- 21
0
votes
1 answer
Add data to abstract table Java spring
I have two entities generate by hibernate (in postgres)
here is my MCD (many to many - User bottle) :
All work fine, but my abstract table is not completed.
Screen from my table User_Bottle :
i would like to add this data to my table, but i don't…

Thibaut Chazalon
- 47
- 1
- 9
0
votes
0 answers
Qt Color Conditions
I am using PyQt5 to create an abstract table model. I'm wondering if there is a way to essentially say "return this color if the cell above is also that color". For instance, a certain cell is colored green based on a series of conditions. I also…
0
votes
1 answer
How to listen adding a new file to a folder to show up in JTable?
I have a problem with my GUI. I use WatchService and it works well. How can I add this service so that JTable will show a new file?
Maybe there is another solution? Can I ask you for some examples?
My table implements the AbstractTableModel.

PrzemekC
- 21
- 1
- 3
0
votes
2 answers
Java: JTable auto-primary key update
I have this JTable having an AbstractTableModel as its model.
The initial contents are parsed to a two-dimensional array Object from a ArrayList generic to a Entity of the system. Also in the model, isCellEditable is overriden with respect to data…

Cyril Horad
- 1,555
- 3
- 23
- 35
0
votes
1 answer
Update Table GUI that extends custom AbstractTableModel
I created a Java GUI that displays the table using the following syntax:
table = new JTable(new MyTableModel(columnNames,
updateTable(cmbAdversary.getSelectedItem().toString(),
…

Niras
- 445
- 4
- 8
- 19
0
votes
1 answer
How to add a row to a JTable using AbstractTableModel
I want the user to click a button called "Add new" and when that happens the data in the text fields is entered into the table. I want to have an inner listener class looking after that, but I am unsure how to go about it.

Andrew Quinn
- 11
- 1
0
votes
2 answers
JTable filled with files repeats value after model modification (AbstractTableModel)
I am struggling again with JTable and I am very stuck.
The problem is:
I have a button to select file pathes to fill the first column of my JTable: this is working fine.
Clicking a checkbox, I change the structure of the jtable to add or remove…

nicoluca
- 105
- 7
0
votes
1 answer
huge JTable AbstractTableModel remove all rows
java JTable, Say I have a huge JTable (800*50) with AbstractTableModel. Now I want to remove all table rows and put new data rows into that table. Which way is easiest and high-performance way to achieve this ?
Thanks.

user595234
- 6,007
- 25
- 77
- 101
0
votes
0 answers
JTable displays CSVData
I am trying to get My Application to display the data from a CSV IN the JTable and not output it in Netbeans > output. I hope someone can be able to help me with the solution. Here is the source code and results of what I have already.
I could not…

Fortune Dludla
- 55
- 7
0
votes
1 answer
how to get own methods in abstractTableModel?
i´m building a Swing-Gui and have an JTable object in an JScrollPane with my own TableModel. The Models nucleus is a LinkList that contains the data. I did it as LinkedList be able to insert rows as Object[] any time without replacing an 2D-Array. I…

Severus0191
- 39
- 1
- 8
0
votes
1 answer
Java: order a JTable according to columns from enum
I have a JTable where several columns contain a number from an enums like the following:
public static enum IMPORT_CONF_OPERATION_RESULT {
OK(0, "OK"),
ERROR(1, "ERROR"),
WAITING(2, "WAITING");
/* ... */
}
So, I needed to override…

SagittariusA
- 5,289
- 15
- 73
- 127
0
votes
1 answer
how to differentiate between isCellEditable() being called due to a user click or due to column dragging
I have a JTable with custom editor and renderer. I have my table model also.I want to instantiate an special input window when user clicks on a cell of an specific column. I have written the logic in isCellEditable() but now the problem is that…

nits.kk
- 5,204
- 4
- 33
- 55