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

empty rows in jtable

$
0
0
Im trying to create a contact book so i use a jtable to display my contacts name's..which are in an arraylist..but when arraylist is empty jtable looks like shit :bigsmile: so im trying to have empty jtable rows..i tried this below but caused me a lot of errors!

 @Override
        public int getRowCount() {
            if(contactList.getContacts().size() < 10)
            {
            return 25;
            }
            return contactList.getContacts().size();
        }



Viewing all articles
Browse latest Browse all 51036

Trending Articles



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