 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Klaus Lohmanns Guest
|
Posted: Tue Jun 06, 2006 4:17 pm Post subject: JdbTable MULTIPLE_INTERVAL_SELECTION |
|
|
Hi,
i just try to transfer my JBuilder4 project to JBuilder2006. I use JdbTable
and set selection Mode to MULTIPLE_INTERVAL_SELECTION. Now JBuilder2006
throws following exception:
(this is the translation from the german JBuilder2006 edition)
java.lang.IllegalArgumentException: <unsupported selection mode -- only
ListSelectionModel.SINGLE_SELECTION will be supported>
Do anyone know, what is the reason for this change or what can be done, to
solve this problem.
Best regards,
Klaus L. |
|
| Back to top |
|
 |
Olaf Raether Guest
|
Posted: Tue Jun 06, 2006 11:35 pm Post subject: Re: JdbTable MULTIPLE_INTERVAL_SELECTION |
|
|
Klaus Lohmanns wrote:
| Quote: | Hi,
i just try to transfer my JBuilder4 project to JBuilder2006. I use JdbTable
and set selection Mode to MULTIPLE_INTERVAL_SELECTION. Now JBuilder2006
throws following exception:
(this is the translation from the german JBuilder2006 edition)
java.lang.IllegalArgumentException: <unsupported selection mode -- only
ListSelectionModel.SINGLE_SELECTION will be supported
Do anyone know, what is the reason for this change or what can be done, to
solve this problem.
Best regards,
Klaus L.
|
Did you try this ?:
ListSelectionModel selectionModel = jdbTable.getSelectionModel();
selectionModel.setSelectionMode(selectionModel.MULTIPLE_INTERVAL_SELECTION);
Maybe it helps
Olaf Raether |
|
| Back to top |
|
 |
Klaus Lohmanns Guest
|
Posted: Wed Jun 07, 2006 5:05 pm Post subject: Re: JdbTable MULTIPLE_INTERVAL_SELECTION |
|
|
Yes, thank you Olaf, it works, however.
Greetings Klaus
"Olaf Raether" <olaf (AT) epro (DOT) de> schrieb im Newsbeitrag
news:4485caf4 (AT) newsgroups (DOT) borland.com...
| Quote: | Klaus Lohmanns wrote:
Hi,
i just try to transfer my JBuilder4 project to JBuilder2006. I use
JdbTable and set selection Mode to MULTIPLE_INTERVAL_SELECTION. Now
JBuilder2006 throws following exception:
(this is the translation from the german JBuilder2006 edition)
java.lang.IllegalArgumentException: <unsupported selection mode -- only
ListSelectionModel.SINGLE_SELECTION will be supported
Do anyone know, what is the reason for this change or what can be done,
to solve this problem.
Best regards,
Klaus L.
Did you try this ?:
ListSelectionModel selectionModel = jdbTable.getSelectionModel();
selectionModel.setSelectionMode(selectionModel.MULTIPLE_INTERVAL_SELECTION);
Maybe it helps
Olaf Raether |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|