hello friends, I have a problem in JTable.I have to make a particular cell multiline in JTable. How colud i do this. I have 2 columns & many rows in JTable.In second column all or a particular row should be multiline. How colud i do this. Excepting u'r replies, with regards, Sonara.
hello friend, Thanks for u'r reply.It's working fine.Now i need one more help from u.In JTable when any column is selected i need to do one event,else that event shouldn't be triggered. Any row or column is selected means this should happen. there r isselected(rowcount,columncount) methods.But i don't have to specify the row or column count.If any row or column is selected i need to make a event happen. How can i get this. Excepting u'r reply, cinderalla.
Add the TableModelListner to your table. get the selectedRow using getSelectedRow() get the selectedColumn using getSelectedColumn().. Depending upon your requirement of the row and column fire your events.. If this is what you want,then i hope this solves your problem.. else can you be much more clear in your question. Regards, Jagan Mohan Reddy
If you're gonna buy things, buy this thing and I get a fat kickback:
a bit of art, as a gift, that will fit in a stocking