Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1490
| From | "bill turner" <bill.turner@THRWHITE.remove-dii-this> |
|---|---|
| Subject | current jtable cell not r |
| Message-ID | <1176950573.342156.216360@e65g2000hsc.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| Date | 2011-04-27 15:33 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui I've done some google searching but cannot seem to find the answer to this problem. I have a jTable using my own table model. Other than the first column being Boolean, all the others are Strings. There are ten columns in all. The first column and the 4th and 5th are editable. I have an add button that checks the first column to see if it is checked (the Boolean), if so, it takes the data from the columns and creates an object which is then inserted into a JTree. The problem is, if I check the first column, change the data in the 4th, tab into the 5th and change that data, then press the add button, the data from the 5th column is not read. If, however, after editing the data in the 5th column I just tab into the next column, the add button will see this data. I cannot believe that the answer is to always force the user to tab out of a column (or otherwise navigate), but I have thus far not been able to identify how to return what has been keyed by the getValueAt(int row, int col) method of my model. Any help would be appreciated! --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next | Find similar | Unroll thread
current jtable cell not r "bill turner" <bill.turner@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000
csiph-web