Java abstract class which provides default implementations for most of the methods in the TableModel interface.
Questions tagged [abstracttablemodel]
294 questions
1
vote
1 answer
Problem with JCheckbox in my table that extends AbstractTableModel
The FileSystemModel class gives me a list of files from the system.
I want to use the checkbox to select files to download, but I can not edit this checkbox.
I am asking for a hint as to what I am doing wrong.
MyTableModel.java
public class…

PrzemekC
- 21
- 1
- 3
1
vote
1 answer
how color the minimum value cell on JTable?
I am developing a small application on Java. I created a custom model for jtable. The model is this:
package tienda.funcionalidad;
import java.awt.Component;
import java.util.ArrayList;
import javax.swing.JTable;
import…

Mario
- 23
- 5
1
vote
1 answer
Jtable with AbstractTableModel Remove all Row
I try to remove all the row of a Jtable before add new row. But for some reason i can't remove a row.
In the ModelDynamiqueObjet i define all the override methods and then i add two methods one to add an object and the an other to remove an objet.…

Thoril
- 11
- 2
1
vote
3 answers
Update ImageIcon of JTable cell
I am creating my first JTable that requires me to create a custom AbstractTableModel, TableCellEditor, and DefaultTableCellRenderer. Given that I have not needed to create these before, I've made some significant progress in getting my table to…

D.N.
- 2,160
- 18
- 26
1
vote
0 answers
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: AutomobileTableModel.setRow(I)V
I'd like to say i'm not expert about java, i'm just joking with a Scholastic exercise.
so let's explain.
i want make a table where i can display my car, my bike, and both together. for now i've only a car class so i'm working with it.
i'm stuck in a…

KuroKami69
- 11
- 2
1
vote
4 answers
JTable extended from AbtractTableModel is not updating GUI when i add row
This my new MyJtable
public void addWidget(Book w) {
datalist.add(w);
fireTableRowsInserted(datalist.size()-1, datalist.size()-1);
}
calling class
MyJtable tv = new MyJtable(a);
table = new JTable(tv);
…

user564477
- 309
- 2
- 9
1
vote
3 answers
HowTo Remove a Row in a JTable with a Custom TableModel
I've been reading posts similar to mine, and reading through the Java tutorial page but I just can't seem to get this working. I'm not sure if I'm missing something fundamental or not...
I have a custom table model below that I need to be able to…

linsek
- 3,334
- 9
- 42
- 55
1
vote
1 answer
Java AbstractTableModel: getValueAt does not use updated data
I have a Java application with four card panels. In the first panel, I receive data for the first geographic point, in the second and third -- for the other two points, and in the fourth panel, I have a JTable that displays extracted information…

Igor Tupitsyn
- 1,193
- 3
- 18
- 45
1
vote
1 answer
How to represent complex class in an AbstractTableModel?
I have this class:
public abstract class Directory {
protected int id;
protected File path;
protected LinkedList filters;
protected LinkedList files;
protected int wildcard;
public static int numCols = 3;
…

dierre
- 7,140
- 12
- 75
- 120
1
vote
0 answers
Parsing values in hashmap of type List in java for JTable
HashMap> hmapp = new HashMap<>();
I have a form which is filled by a user, each user has a keyID assigned to them that they must enter when filling in the text fields. There are a total of 4 text fields that they can answer…

Jane Doe
- 41
- 5
1
vote
2 answers
How to make columns editable in special abstract model JTable
Hey guys i doing my assignment and now i have the problem with non editable cells, actually it became editable, but the result of editing didn't set at arraylist, I tried many solution from internet, but it doesn't work.
So my work like registration…
1
vote
0 answers
Recieving a ClassCastException when using getValueAt in AbstractTable Model
I have a client/server program built. The object of the program is to send an array of data across to the client using sockets, display the data into a table then be able to edit it and send it back for the server to store. The program compiles fine…

B. Durrant
- 11
- 2
1
vote
1 answer
Parameters to AbstractTableModel functions exclude suffix "Index" for row and column
In the java api for AbstractTableModel, the parameters to fireTableCellUpdated are named row and column. The parameters to fireTableRowsDeleted, fireTableRowsInserted, and fireTableRowsUpdated have parameters named firstRow and lastRow. getValueAt…

Chad Skeeters
- 1,468
- 16
- 19
1
vote
1 answer
AbstractTableModel updating from different threads
I have class which is actually list of some data and it extends AbstractTableModel. Data in this class are stored inside thread-safe arraylist.
However if I want to add some data, lets say I have this method inside class extending…

j2592871
- 13
- 3
1
vote
1 answer
JTable cell value
I am creating a program which nests a JTable. For the creation of the JTable i have created an AbstractTableModel which overrides the methods setValueAt, isCellEditable, etc. (Code is posted on bottom). I also have added a tableModelListener with…

Geo7212
- 81
- 7