Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

AbstractTableModel

$
0
0
Im trying to pass an arraylist in a jtable by using AbstractTableModel and i have a question about this code.I know its a stupid question but.... :unsure:


public Object getValueAt(int row, int column) {
        // is this correct or it should be row > myList.size() ..im a bit confused  :dozingoff:/> 
        if(row < 0 || row >= myList.size()) {
                return null;
        }



Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>