This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 81046 - Exception in Choise expanding
Summary: Exception in Choise expanding
Status: CLOSED WORKSFORME
Alias: None
Product: qa
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@qa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-25 10:12 UTC by aykanat
Modified: 2011-02-17 09:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aykanat 2006-07-25 10:12:34 UTC
This issue is similiar to bug 72187. This time a different exception is thrown 
if a JLabel is clicked thru JLabelOperator.clickMouse() and the mouse click 
causes the JLabel to become invisible.

From what it seems is that JLabelOperator.pushMouse() does not cause the 
exception. But I also need to have the clickMouse() functione working.

Sample code looks somthing like this:
---
jLabel = new JLabel();
	jLabel.setText("Sample Label"); 
	jLabel.addMouseListener(new java.awt.event.MouseAdapter() {
	public void mouseClicked(java.awt.event.MouseEvent e) {
	        jLabel.setVisible(false);
        	System.out.println("mouseClicked()"); 
	}
});
---


The Exception thrown is:
org.netbeans.jemmy.JemmyException: Exception in Choise 
expanding                                      
                                                                              
org.netbeans.jemmy.QueueTool.invokeAndWait
(QueueTool.java:407)                                        
org.netbeans.jemmy.QueueTool.invokeSmoothly
(QueueTool.java:337)                                       
org.netbeans.jemmy.operators.ComponentOperator.clickMouse
(ComponentOperator.java:609)                 
org.netbeans.jemmy.operators.ComponentOperator.clickMouse
(ComponentOperator.java:624)                 
org.netbeans.jemmy.operators.ComponentOperator.clickMouse
(ComponentOperator.java:633) 

---
Ant-Version: Apache Ant 1.6.5
Created-By: 1.4.2_10-b03 (Sun Microsystems Inc.)
Main-Class: org.netbeans.jemmy.JemmyProperties
Jemmy-MajorVersion: 2.2
Jemmy-MinorVersion: 4.19
Jemmy-Build: 20060124
Comment 1 aykanat 2006-08-11 12:41:05 UTC
Can not reproduce the issue anymore after compiling Jemmy from the trunk.