Hi Indukumar,

This bug was reported recently: https://www.canoo.com/jira/browse/UBA-7068

Please see
http://lists.canoo.com/mailman/private/ulc-developer/2006/004808.html for a
workaround.

Thanks and regards,

Janak

>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of Indukumar
>Vellapillil H. (KSDE 211)
>Sent: Monday, October 09, 2006 5:32 PM
>To: [email protected]
>Subject: [ULC-developer] Right-Click select on ULCTable has problems.
>
>
>Hi,
>
>Environment:
>- ULC Version: 6.1.1
>- Java: 1.4.2 on both client and server.
>
>I am attaching along with this mail a sample application to demonstrate
>the problem.
>
>To test it follow the following procedure:
>
>1. Execute the application
>2. Click on a row of the table.
>   A message "Selected index: xx, xx" appears on the System console
>3. Right-Click on any *other* row without left-clicking anywhere.
>   NO MESSAGE APPEARS. The selection event is not triggered at all!
>4. From then on, keep on Right-Clicking *different* rows, the selection
>event shows
>   selection of previously selected row and not the current selection.
>
>Is it a bug or am I doing something wrong?
>
>X----------------------------------------------------------
>
>package com.cs.cp.ui.ulc.test;
>
>import com.ulcjava.base.application.IApplication;
>import com.ulcjava.base.application.ULCFrame;
>import com.ulcjava.base.application.ULCPopupMenu;
>import com.ulcjava.base.application.ULCTable;
>import com.ulcjava.base.application.event.IListSelectionListener;
>import com.ulcjava.base.application.event.ListSelectionEvent;
>import com.ulcjava.base.application.table.DefaultTableModel;
>import com.ulcjava.base.development.DevelopmentRunner;
>
>public class ULCTestCase extends ULCFrame implements IApplication {
>
>       public static void main(String[] args) {
>
>               DevelopmentRunner.main(args);
>       }
>
>       public void start() {
>
>               ULCTestCase testCase = new ULCTestCase();
>
>               ULCTable table = new ULCTable();
>               table.setModel(new DefaultTableModel(new Object[][] { //
>                       new Object[] {"1", "2", "3"}, //
>                               new Object[] {"11", "22", "33"}, //
>                               new Object[] {"111", "222", "333"}, //
>                               new Object[] {"1111", "2222", "3333"},
>//
>                               new Object[] {"11111", "22222",
>"33333"}, //
>                       }, new String[] {"One", "Two", "Three"}));
>
>               table.setComponentPopupMenu(new ULCPopupMenu());
>
>               table.getSelectionModel().addListSelectionListener(new
>IListSelectionListener() {
>
>                       public void valueChanged(ListSelectionEvent evt)
>{
>
>                               System.out.println("Selected index: " +
>evt.getFirstIndex() + ", " + evt.getLastIndex());
>                       }
>               });
>
>               testCase.add(table);
>
>               testCase.setVisible(true);
>       }
>
>       public void stop() {
>
>       }
>
>       public void activate() {
>
>       }
>
>       public void passivate() {
>
>       }
>
>       public void handleMessage(String arg0) {
>
>       }
>
>       public void pause() {
>
>       }
>
>       public void resume() {
>
>       }
>
>}
>
>X----------------------------------------------------------
>
>Thanks and Regards
>Indukumar
>_______________________________________________
>ULC-developer mailing list
>[email protected]
>http://lists.canoo.com/mailman/listinfo/ulc-developer

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to