Java abstract class which provides default implementations for most of the methods in the TableModel interface.
Questions tagged [abstracttablemodel]
294 questions
0
votes
1 answer
JTable - Adding, editing, removing rows
Please help me, what can I do if i want to add a new row, edit rows and remove rows from my table? I was trying to do something but it doesn't work. (The table opens csv files where columns are separated by ;, for example a row looks like this:…

jaa232
- 11
- 3
0
votes
1 answer
Getting value of selected row in AbstractTableModel Java
I am looking to get the value of the selected row in an AbstractTableModel and I am noticing some things. It is correctly reporting what sell (row) I am on, when it is selected, but as soon as I click my button to remove, the selected row value goes…

Ducksauce88
- 640
- 3
- 12
- 26
0
votes
1 answer
Usage of "Add" button in Java AbstractTableModel
I am trying to add an "Add" button to my AbstractTableModel. It would then bring up a form for the user to enter in the ip address of a pc and click "Add". I am just stuck at the part on how to add a new row (cell) to the table dynamically. I have…

Ducksauce88
- 640
- 3
- 12
- 26
0
votes
1 answer
Refresh JTable firetableDataChanged is not executed
I try to update my JTable with the fireTableChanged() Method after i imported the names of spreadsheets from excel in my datastructure but the Method is not executed. I confirmed with a test that the data is correctly imported and that the jtable…

Alaska
- 1
- 2
0
votes
2 answers
Deleting a Jtable row from a custom model extending AbstractTableModel
I have a JTable that is using a custom model i have designed. This model is extending the AbstractTableModel as shown below. I have a button Delete that I would want when clicked will delete the selected/highlighted row Here is my table…

CN1002
- 1,115
- 3
- 20
- 40
0
votes
1 answer
Jtable cellEditor set doesn't work with my Table Model definition
I'm stuck on the following problem and can not find what I'm doing wrong. My problem is to replace the default editor of a cell of a JTable and use a ComboBox instead. My code appears to work correctly, but does not cause the expected effect. After…

CodeCat
- 63
- 1
- 6
0
votes
1 answer
Jtable setValueAt is made irrelevant
I succeeded in making a Jtable which loads from the database using CachedRowSet. I placed the table in a jframe and call the Ui when pressing a button.
When I try to change the values in the cell, they are automatically reset to their original…

Y. Leonce Eyog
- 883
- 2
- 13
- 29
0
votes
2 answers
How do I insert new row into a JTable using a custom table model?
I'm working on a small project that involves JTable which requires the user to click a button and add a row to the table (I have named the button as addrow). I have used a custom table model (Mytablemodel) which extends Default table model.
My table…

Edijae Crusar
- 3,473
- 3
- 37
- 74
0
votes
2 answers
Dynamically set non-editable JTable row as editable
I have extended the AbstractTableModel class to make my JTable non-editable,expects the first row. By the way, i have overrided the isCellEditable(int row, int col) methode.By putting an integer variable, that hold the nextRow to activate, i got the…

abdou amer
- 819
- 2
- 16
- 43
0
votes
2 answers
JTable Delete All Rows Exception
I'm trying to delete all entrys from my abstractTableModel. As long as I don't delete the last remaining row, everything works fine, but as soon as I delete this one, I get an ArrayOutOfBoundsException. I'm using a DefaultRowSorter and this seems to…

Dimitri
- 3
- 1
- 2
0
votes
1 answer
How to add a row in Jtable
Actually I am making a program which takes .properties file and show the value in GUI. I am already done with reading and writing. Now, at this point I dont how to implement this add/remove rows functionality. I want to add a row on run-time. I am…

Jawad Satti
- 3
- 3
0
votes
1 answer
getValueAt Method of AbstractTableModel Java
I need some help with getValue method
Im reading from a file and storing the values in a
public List

Nicholas
- 3,529
- 2
- 23
- 31
0
votes
0 answers
SQL populate Table from Database
I have a problem with trying to populate a jtable. I have searched all over and cannot seem to find a solution to my code, I would appreciate any kind of help.
Here is the method I have to get the information:
public class MovieDAO extends Dao…
0
votes
2 answers
Java Jtable coulmn shorting with date not working properly
Sorry for asking basic question once again. As new to java, so i thought better to take guidance instead of doing something stupid.
In my jtable, i have following data
Id | Name | Date(month-year)
1 | XYZ | August-2014
2 | ABc | April-2014
my…

javadotnetcoder
- 81
- 1
- 8
0
votes
0 answers
jtable editing column dragging, invocation of setValueAt with weird column, by what?
while dragging column 3 (selected cell is edited) before column 2
after the operation is complete, value of col 3 is displayed in both new
col 2 and former col 3 (should contain value of former col 2)
example, if the content of columns is a b…

bill7511
- 21
- 7