delete a row from jtable
i am using netbeans,, i have made a jtable, and there are rows there
i want to click on a row and press delete so that it is removed from jtable.
Using netbeans is difficult,,
i dont know what model did netbeans specify.
please help me with details!
Read the API for JTable and follow the link to the Swing tutorial on How to Use Tables.
Learn how to code a Swing GUI before tackling the NetBeans visual designer, which is NOT a beginners' tool.
Instead of creating a custom TableModel you will want to use the DefaultTableModel so you can invoke the removeRow(...) method when the delete button is clicked.