Trigger event on mouse click over image window

How can I use an event structure to pick up on a mouse click on an IMAQ window in Labview. Specifically, I want to pick up a click with the 'select point' tool.

To work in a Winddraw window, will not want to use the Event Structure, but instead the WindLastEvent. This will allow you to capture the events that occur in the Winddraw window. Attached are two examples, one I wrote using events so users can set up ROI's and the other is using events in LabVIEW with a picture control on the front panel so user can select an ROI.
I hope this helps!
Chris D
Ni Application Engineer
Attachments:
Line_Profile_of_Live_Image.vi ‏145 KB
ROI_from_Picture_Control_using_Events.vi ‏111 KB

Similar Messages

  • Capture right mouse click in image

    I would like to capture a right mouse click while pointing into am image window.
    So far I've come only to the possibilty to capture events that originate somehow with the left mouse click.
    Or
    Are specific to the front panel of the currently active VI
    Or
    Detect whether at the time of calling a subVI the button is down or up, with all the usual hazzel of detecting the transition (plus the necessity of depending on MS Driect X).
    What I would like to have is a signal that describes the right click in an image window.
    Thanks for any ideas
    Gabi
    7.1 -- 2013
    CLA

    Hi,
    If you use LV7, you can use the event structure. Add an event or filter
    event "Mouse down" for the picture. The "button" value indicates 2 for the
    right button, 1 for the left.
    Regards,
    Wiebe.
    the picture control has a property "Mouse". This is a cluster, that includes
    "Gabriela Tillmann" wrote in message
    news:[email protected]..
    > I would like to capture a right mouse click while pointing into am
    > image window.
    > So far I've come only to the possibilty to capture events that
    > originate somehow with the left mouse click.
    > Or
    > Are specific to the front panel of the currently active VI
    > Or
    > Detect whether at the time of calling a subVI the button is down or
    > up, with all the usual hazzel of det
    ecting the transition (plus the
    > necessity of depending on MS Driect X).
    >
    > What I would like to have is a signal that describes the right click
    > in an image window.
    >
    > Thanks for any ideas
    > Gabi

  • Mouse clicks inside image in applet

    How can I respond to mouse clicks inside particular regions in an image loaded as part of an applet in a browser? ie, I want to send these clicks onto the server for the server to handle it and the server should change the image according to the mouse clicks.
    Thanks,

    /*  <applet code="ImageMouse" width="400" height="400"></applet>
    *  use: >appletviewer ImageMouse.java
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import java.net.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    public class ImageMouse extends JApplet
        JLabel label;
        public void init()
            ImageMousePanel panel = new ImageMousePanel();
            ImageMouser mouser = new ImageMouser(panel, this);
            panel.addMouseMotionListener(mouser);
            getContentPane().add(panel);
            getContentPane().add(getLabel(), "South");
        private JLabel getLabel()
            label = new JLabel(" ");
            label.setHorizontalAlignment(JLabel.CENTER);
            label.setBorder(BorderFactory.createTitledBorder("image coordinates"));
            Dimension d = label.getPreferredSize();
            d.height = 35;
            label.setPreferredSize(d);
            return label;
        public static void main(String[] args)
            JApplet applet = new ImageMouse();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(applet);
            f.setSize(400,400);
            f.setLocation(200,200);
            applet.init();
            f.setVisible(true);
    class ImageMousePanel extends JPanel
        BufferedImage image;
        Rectangle r;
        public ImageMousePanel()
            loadImage();
            r = new Rectangle(getPreferredSize());
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            int w = getWidth();
            int h = getHeight();
            int imageWidth = image.getWidth();
            int imageHeight = image.getHeight();
            r.x = (w - imageWidth)/2;
            r.y = (h - imageHeight)/2;
            g2.drawImage(image, r.x, r.y, this);
            //g2.setPaint(Color.red);
            //g2.draw(r);
        public Dimension getPreferredSize()
            return new Dimension(image.getWidth(), image.getHeight());
        private void loadImage()
            String s = "images/greathornedowl.jpg";
            try
                URL url = getClass().getResource(s);
                image = ImageIO.read(url);
            catch(MalformedURLException mue)
                System.err.println("url: " + mue.getMessage());
            catch(IOException ioe)
                System.err.println("read: " + ioe.getMessage());
    class ImageMouser extends MouseMotionAdapter
        ImageMousePanel panel;
        ImageMouse applet;
        boolean outsideImage;
        public ImageMouser(ImageMousePanel imp, ImageMouse applet)
            panel = imp;
            this.applet = applet;
            outsideImage = true;
        public void mouseMoved(MouseEvent e)
            Point p = e.getPoint();
            if(panel.r.contains(p))
                int x = p.x - panel.r.x;
                int y = p.y - panel.r.y;
                applet.label.setText("x = " + x + "  y = " + y);
                if(outsideImage)
                    outsideImage = false;
            else if(!outsideImage)
                outsideImage = true;
                applet.label.setText("outside image");
    }

  • Firefox 9.0.1 with Flash player not catch keyboard event with mouse click.

    In a flash application, I need select mutil items using shite key and mouse click, it is not working. looks like firefox didn't pass the keyboard even alone with the click event. This happen on Window 7, IE and Chrome have no problem. only FF

    i have the same problem everytime i open a website with flashcontent firefox freezes and i have to kill the flash process to unfreeze the browser the only way i can see a youtube video is in html5 mode.
    Hardware
    Acer aspire 4553
    Turion X2 p520
    3gb of ddr3 ram
    Ati Mobility Radeon 4250

  • Event on Mouse Click Released in a Picture ring

    Hello All.
    I have a picture ring in my program. I have made its callback function and the default event i.e. EVENT_COMMIT occurs behind the code and it actually performs event on click. Now i want to make its action happen not on click but when i release my mouse click. i,e, i want to make event happens when i release my mouse click. Is there any other event for that or what should i do
    Regards.

    What about EVENT_LEFT_CLICK_UP?

  • How to trigger event when double click on a tree node

    I have this code which creates new tab in a remote Java Class.
    treeView.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<TreeItem<String>>()
       @Override
       public void changed(ObservableValue<? extends TreeItem<String>> observable, TreeItem<String> oldValue, TreeItem<String> newValue)
       System.out.println("Selected Text : " + newValue.getValue());
       // Create New Tab
       Tab tabdata = new Tab();
       Label tabALabel = new Label("Test");
      tabdata.setGraphic(tabALabel);
       DataStage.addNewTab(tabdata);
    Can you tell me how I can modify the code to open new tab when I double click on a tree node. In my code the tab is opened when I click once. What event handler do I need?

    import java.util.Arrays;
    import javafx.application.Application;
    import javafx.event.EventHandler;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.StackPane;
    import javafx.scene.control.TreeCell;
    import javafx.scene.control.TreeView;
    import javafx.scene.control.TreeItem;
    import javafx.scene.control.SelectionMode;
    import javafx.util.Callback;
    public class TreeTest extends Application {
      public static void main(String[] args) {
        launch(args);
      @Override
      public void start(Stage primaryStage) throws Exception {
        primaryStage.setTitle("TreeView Test");
        primaryStage.setScene(createScene());
        primaryStage.show();
      private Scene createScene() {
        final StackPane stackPane = new StackPane();
        final TreeView<String> treeView = new TreeView<String>();
        treeView.setRoot(createModel());
        treeView.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
        treeView.setCellFactory(new Callback<TreeView<String>, TreeCell<String>>() {
          @Override
          public TreeCell<String> call(TreeView<String> treeView) {
            return new ClickableTreeCell();
        stackPane.getChildren().add(treeView);
        return new Scene(stackPane);
      private TreeItem<String> createModel() {
        TreeItem<String> root = new TreeItem<String>("RootNode");
        TreeItem<String> packageA = new TreeItem<String>("package A");
        packageA.getChildren().addAll(
            Arrays.asList(new TreeItem<String>("A1"), new TreeItem<String>("A2"), new TreeItem<String>("A3"))
        TreeItem<String> packageB = new TreeItem<String>("package B");
        packageB.getChildren().addAll(
            Arrays.asList(new TreeItem<String>("B1"), new TreeItem<String>("B2"), new TreeItem<String>("B3"))
        root.getChildren().addAll(Arrays.asList(packageA, packageB));
        return root;
      private class ClickableTreeCell extends TreeCell<String> {
        ClickableTreeCell() {
          setOnMouseClicked(new EventHandler<MouseEvent>() {
            @Override
            public void handle(MouseEvent event) {
              // Handle double-clicks on non-empty cells:
              if (event.getClickCount()==2 && ! isEmpty()) {
                System.out.println("Mouse double-clicked on: " + getItem());
        @Override
        protected void updateItem(String item, boolean empty) {
          super.updateItem(item, empty);
          if (empty) {
            setText(null);
          } else {
            setText(item);

  • Adobe pro 9 changes printers when mouse moves over printer window

    When trying to print an adobe document, the default printer is ignored and the selected printer changes as the mouse moves across the printer window to reach the print button, making it difficult to stabilize the printer selection. Please advise

    I have now checked other people in my departments Adobe versions.
    I have Adobe Pro V9.0.0, and does not print correctly.
    1 person has Adobe XI Pro and prints correctly.
    1 person has Adobe Pro 9.5.5 and prints correctly.
    1 person has Adobe Pro V9.0.0 and does not print correctly
    I have now installed the available upgrades which only took me to 9.2.0 and still prints incorrectly.
    I wil try and find the other updates and see if that helps.
    thx.

  • Detect when mouse clicked over desktop

    hello guys,
    i have a graduation project working with networking, the instructor on the server side presents a powerpoint slide show an when he moves to the next slide, i have to send an order to the students (clients) to move to the next slide.
    can it be done???? plz if there is an example for both; the sender and receiver help me with it.
    tahnk you very much.

    http://forums.devshed.com/t311756/s.html
    http://forums.devshed.com/t311567/s.html
    http://forums.devshed.com/t311568/s.html

  • Mouse over and Mouse Click function

    Hi,
    I have to add a mouse over event and mouse click event in my rectangles that I draw while taking the values from an input file. Now since I am taking rectangle height and width from the input text file as well I also want to take a text value to be shown while moving a mouse over a particular rectangle from my input file. Also when he clicks on that rectangle the height and width of that particular rectangle only should be displayed (re-adjusted).
    Like suppose my input file has 3 fields:-
    Height   Width  Test_To_Show
    10          23         Hello
    20          44         ByeNow When my paint component draws these 2 rectangles and a user moves his mouse over the rectangle he should see text message attached to it:- Like for first row 10, 23 he should see "Hello". In this case when he clicks on this rectangle the picture should read just to show only 10 and 20 as height and width. Now the problem is I am confused where to add the mouse and mouse click event function.
    Some of my code looks like this in paintcomponent method:-
            for(int i=0; i<myobject.size(); i++){
                Coloring fc = myobject.get(i);
                GradientPaint gpi = new GradientPaint(0, 0,c.getColor() , 0, 20, Color.white, true);
                g2d.setPaint(gpi);
                g2d.drawRect(fc.value1, 29, fc.mywidth, 83);
                g2d.fillRect(fc.value1, 29, fc.mywidth, 83);
                                                }Where should I attach the mouse event to g2d object / fc / myobject ? I am not sure since I am using mouseover function for the first time.
    Thanks

    I am planning to add these 2 in my paint component method
                fc.addMouseMotionListener(this);
                fc.addMouseListener(this);and then create 2 functions like this :-
          public void mouseEntered(MouseEvent e) {
                  //I will be reading from a file and then pass the string that I want to show as text while mouse over
                   String s = // takes value from the inpuf file.
                      fc.setText(s);
    public void mouseClicked(MouseEvent e) {
                 //same way reading from the file ... Not sure how I will do this one
                 }Would it be the correct way to do it ? I am doing mouse over functions for the first time so donno much about there usage.
    Thanks

  • Pop up menu on right clicking an image?

    Hello,
    I am new to LabWindows/CVI. 
    Requirement: "To get a pop-up menu on right clicking on image"
    Right now, I display my images in window numbers (0 - 15). Is it possible to be able to get a pop-up menu on right clicking an image window. If yes, how? If not, could you please suggest other methods to achieve this task? Should I display the image in a separate parent panel for example? How could I do this?
    Any help would be great.
    Cheers

    I would use the code generator for right click event. then fill it up with whatever code you want under right click case. You can access these when you double click your UIR file, then on the top of the page click Code\Preferences\Default... then choose desired events for picture then go to Code\Generate\all callbacks and skip through the ones you don't want to be replaced.

  • Making the mouse click by itself

    If you are trying to use an automator workflow with a software that is
    not included in the automator list (and therefore there are no prebuilt actions for you to choose), but all you need to do is manually open
    the program yourself, place the mouse over the START button in the software,
    and you just need automator to click the mouse at a predetermined time,
    is there a way of doing that....just making the mouse click over a spot you
    have left the mouse, at a predetermined time?
    I know how to save the workflow as an ical plug in to trigger the workflow at a specific the time, but I have no idea if I can just make automator "click the mouse" button by itself any place you just leave the mouse.
    Any input would be appreciated. Thanks.

    QuickTime Broadcaster is scriptable, and has commands to start and stop broadcasts:
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">     tell application "QuickTime Broadcaster"
              if (exists document 1) then
                   start document 1
                   delay 30 -- ...or however many seconds
                   stop document 1
              end if
         end tell
    </pre>

  • Mouse Clicks/Positons in Pictures!

    Even a guru learns new things...
    I just discovered the use of a picture control/indicator to detect mouse positions and clicks! What a wonderful thing. I have LabVIEW 6.0.2, and have, up to now, not known about this. To all those out there who I recommended to use the mouse click API for Windows, I apologize. This is such a marvelous way to get Mouse information. It's easy, efficient, and completely held within LabVIEW.
    If anyone is wondering what I am talking about, go to Help>Examples in LabVIEW and go to the Examples>Advanced Examples>Picture Control Examples>Mouse Control.vi to see what I mean. I didn't realize that if you dropped a picture control (even as an invisible object!) on the front panel that you could use prop
    erty nodes to get x and y positions, and also the left, right, shift left or right, and third mouse button click information.
    Of course, I hear that this may all be somewhat obsolete in LabVIEW 6.1, but for those still using 6.01 or earlier, it's a great tool that means you don't have to mess with API, MFC or dlls.
    Any comments or questions?

    Hi,
    This is ideal for some applications, you can even build drag/drop functions
    into a picture control using this. But there are some backdraws (or one very
    big one);
    The picture control needs to be the control on front.
    The picture control needs to cover the entire area you need information on.
    This implies that normal functions of controls and indicators cannot be
    used, not even simply clicking on a button...
    It also makes the screen updates take a lot more proccessor time, because
    controls/indicators are overlapping. In the example for instance, the charts
    are not clear to read, because they're flickering.
    Regards,
    Wiebe.
    "Labviewguru" wrote in message
    news:[email protected]..
    > Even a guru learns new things..
    >
    > I just discovered the use of a picture control/indicator to detect
    > mouse positions and clicks! What a wonderful thing. I have LabVIEW
    > 6.0.2, and have, up to now, not known about this. To all those out
    > there who I recommended to use the mouse click API for Windows, I
    > apologize. This is such a marvelous way to get Mouse information.
    > It's easy, efficient, and completely held within LabVIEW.
    >
    > If anyone is wondering what I am talking about, go to Help>Examples in
    > LabVIEW and go to the Examples>Advanced Examples>Picture Control
    > Examples>Mouse Control.vi to see what I mean. I didn't realize that
    > if you dropped a picture control (even as an invisible object!) on the
    > front panel that you could use property nodes to get x and y
    > positions, and also the left, right, shift left or right, and third
    > mouse button click information.
    >
    > Of course, I hear that this may all be somewhat obsolete in LabVIEW
    > 6.1, but for those still using 6.01 or earlier, it's a great t
    ool that
    > means you don't have to mess with API, MFC or dlls.
    >
    > Any comments or questions?

  • Mouse Click Suddenly STOPS working... on all mice

    I had a situation today I've never seen before. I selected an item in a folder in the finder to drag and drop, but I couldn't let go. My mouse would not receive a single click/left click. I thought it might be the mouse so I switched mice to an Apple mouse and it wasn't working either. A RIGHT click worked with both mice, but the system stopped recognizing and registering single clicks. I had to reboot to get back control of my system and mice.
    Apple Mouse was plugged directly into the front of my G5.
    I just updated to 10.5.3 when it came out but I hadn't seen this problem till just now...
    Jeff
    Message was edited by: Jefferis Peterson

    I have a similar problem with 2 Mac Minis running 10.5.3. Prior to the update the mouse behaved fine, but now every so often mouse clicks are not registered. On any window the mouse click causes the window to loose focus, but nothing really happens. The only way to deal with the computer seems to be to try to quit all running applications and suddenly the mouse begins to function as normal. Any suggestions for a fix?

  • Mouse Clicked gets lost some times.

    Hello All,
    The scenario is that i have a tree and the doubleclick on the tree node openes a view with some information. Also the node has some childrens. Sometimes when i double click the node, the tree node gets expanded but my view does not get opened. This was due to mouseclicked does not arrive with click count as 2.
    In my code double click handling is done in the mouseclicked event. The code looks like
    public void mouseclicked(MouseEvent ev) {
    if(ev.getClickCount() == 2) {
    .......//Opens a view
    In some cases when i double click, mouse clicked is triggered only once with click count as one. But the mousepressed and mousereleased is triggered twice with clickcount 1 and 2 resp. I am not sure is this a valid behaviour. Please find below the traces of events.
    Mouse clicked getting lost trace:
    ========================
    Process Event : java.awt.event.MouseEvent[MOUSE_PRESSED,(129,482),button=1,modifiers=Button1,extModifiers=Button1,clickCount=1] on san.sample.CfCimTree[,0,-90,259x846,alignmentX=0.0,alignmentY=0.0,border=,flags=16777576,maximumSize=,minimumSize=,preferredSize=,editable=false,invokesStopCellEditing=false,largeModel=false,rootVisible=false,rowHeight=0,scrollsOnExpand=true,showsRootHandles=true,toggleClickCount=2,visibleRowCount=20]
    Process Event : java.awt.event.MouseEvent[MOUSE_RELEASED,(129,482),button=1,modifiers=Button1,clickCount=1] on san.sample.CfCimTree[,0,-90,259x846,alignmentX=0.0,alignmentY=0.0,border=,flags=16777576,maximumSize=,minimumSize=,preferredSize=,editable=false,invokesStopCellEditing=false,largeModel=false,rootVisible=false,rowHeight=0,scrollsOnExpand=true,showsRootHandles=true,toggleClickCount=2,visibleRowCount=20]
    Process Event : java.awt.event.MouseEvent[MOUSE_CLICKED,(129,482),button=1,modifiers=Button1,clickCount=1] on san.sample.CfCimTree[,0,-90,259x846,alignmentX=0.0,alignmentY=0.0,border=,flags=16777576,maximumSize=,minimumSize=,preferredSize=,editable=false,invokesStopCellEditing=false,largeModel=false,rootVisible=false,rowHeight=0,scrollsOnExpand=true,showsRootHandles=true,toggleClickCount=2,visibleRowCount=20]
    Process Event : java.awt.event.MouseEvent[MOUSE_PRESSED,(129,482),button=1,modifiers=Button1,extModifiers=Button1,clickCount=2] on san.sample.CfCimTree[,0,-90,259x846,alignmentX=0.0,alignmentY=0.0,border=,flags=16777576,maximumSize=,minimumSize=,preferredSize=,editable=false,invokesStopCellEditing=false,largeModel=false,rootVisible=false,rowHeight=0,scrollsOnExpand=true,showsRootHandles=true,toggleClickCount=2,visibleRowCount=20]
    Process Event : java.awt.event.MouseEvent[MOUSE_EXITED,(129,482),button=1,modifiers=Button1,extModifiers=Button1,clickCount=2] on san.sample.CfCimTree[,0,-90,259x846,alignmentX=0.0,alignmentY=0.0,border=,flags=16777576,maximumSize=,minimumSize=,preferredSize=,editable=false,invokesStopCellEditing=false,largeModel=false,rootVisible=false,rowHeight=0,scrollsOnExpand=true,showsRootHandles=true,toggleClickCount=2,visibleRowCount=20]
    Process Event : java.awt.event.MouseEvent[MOUSE_RELEASED,(129,482),button=1,modifiers=Button1,clickCount=2] on san.sample.CfCimTree[,0,-90,259x846,alignmentX=0.0,alignmentY=0.0,border=,flags=16777576,maximumSize=,minimumSize=,preferredSize=,editable=false,invokesStopCellEditing=false,largeModel=false,rootVisible=false,rowHeight=0,scrollsOnExpand=true,showsRootHandles=true,toggleClickCount=2,visibleRowCount=20]
    When doubleClick Works:
    =====================
    Process Event : java.awt.event.MouseEvent[MOUSE_PRESSED,(125,530),button=1,modifiers=Button1,extModifiers=Button1,clickCount=1] on san.sample.CfCimTree[,0,-90,259x828,alignmentX=0.0,alignmentY=0.0,border=,flags=16777576,maximumSize=,minimumSize=,preferredSize=,editable=false,invokesStopCellEditing=false,largeModel=false,rootVisible=false,rowHeight=0,scrollsOnExpand=true,showsRootHandles=true,toggleClickCount=2,visibleRowCount=20]
    Process Event : java.awt.event.MouseEvent[MOUSE_RELEASED,(125,530),button=1,modifiers=Button1,clickCount=1] on san.sample.CfCimTree[,0,-90,259x828,alignmentX=0.0,alignmentY=0.0,border=,flags=16777576,maximumSize=,minimumSize=,preferredSize=,editable=false,invokesStopCellEditing=false,largeModel=false,rootVisible=false,rowHeight=0,scrollsOnExpand=true,showsRootHandles=true,toggleClickCount=2,visibleRowCount=20]
    Process Event : java.awt.event.MouseEvent[MOUSE_CLICKED,(125,530),button=1,modifiers=Button1,clickCount=1] on san.sample.CfCimTree[,0,-90,259x828,alignmentX=0.0,alignmentY=0.0,border=,flags=16777576,maximumSize=,minimumSize=,preferredSize=,editable=false,invokesStopCellEditing=false,largeModel=false,rootVisible=false,rowHeight=0,scrollsOnExpand=true,showsRootHandles=true,toggleClickCount=2,visibleRowCount=20]
    Process Event : java.awt.event.MouseEvent[MOUSE_PRESSED,(125,530),button=1,modifiers=Button1,extModifiers=Button1,clickCount=2] on san.sample.CfCimTree[,0,-90,259x828,alignmentX=0.0,alignmentY=0.0,border=,flags=16777576,maximumSize=,minimumSize=,preferredSize=,editable=false,invokesStopCellEditing=false,largeModel=false,rootVisible=false,rowHeight=0,scrollsOnExpand=true,showsRootHandles=true,toggleClickCount=2,visibleRowCount=20]
    Process Event : java.awt.event.ComponentEvent[COMPONENT_RESIZED (0,-90 259x846)] on san.sample.CfCimTree[,0,-90,259x846,alignmentX=0.0,alignmentY=0.0,border=,flags=16777576,maximumSize=,minimumSize=,preferredSize=,editable=false,invokesStopCellEditing=false,largeModel=false,rootVisible=false,rowHeight=0,scrollsOnExpand=true,showsRootHandles=true,toggleClickCount=2,visibleRowCount=20]
    Process Event : java.awt.event.MouseEvent[MOUSE_RELEASED,(125,530),button=1,modifiers=Button1,clickCount=2] on san.sample.CfCimTree[,0,-90,259x846,alignmentX=0.0,alignmentY=0.0,border=,flags=16777576,maximumSize=,minimumSize=,preferredSize=,editable=false,invokesStopCellEditing=false,largeModel=false,rootVisible=false,rowHeight=0,scrollsOnExpand=true,showsRootHandles=true,toggleClickCount=2,visibleRowCount=20]
    Process Event : java.awt.event.MouseEvent[MOUSE_CLICKED,(125,530),button=1,modifiers=Button1,clickCount=2] on san.sample.CfCimTree[,0,-90,259x846,alignmentX=0.0,alignmentY=0.0,border=,flags=16777576,maximumSize=,minimumSize=,preferredSize=,editable=false,invokesStopCellEditing=false,largeModel=false,rootVisible=false,rowHeight=0,scrollsOnExpand=true,showsRootHandles=true,toggleClickCount=2,visibleRowCount=20]
    Can anybody help me out to figure out to find what is the problem?
    Thanks in advance
    Sanjeeth S

    I just checked mouseClicked.. and its working fine for me.
    tree.addMouseListener(new MouseListener(){
                   public void mouseClicked(MouseEvent e) {
                        // TODO Auto-generated method stub
                        if(e.getClickCount() == 2)
                             System.out.println("mouseClicked");
                   public void mouseEntered(MouseEvent e) {
                        // TODO Auto-generated method stub
                   public void mouseExited(MouseEvent e) {
                        // TODO Auto-generated method stub
                   public void mousePressed(MouseEvent e) {
                        // TODO Auto-generated method stub
                   public void mouseReleased(MouseEvent e) {
                        // TODO Auto-generated method stub
    });If we double click on a node which is having child nodes, then it will collapse/expand when double click on it.
    In all cases I am getting the display "mouseClicked" when doing double click.

  • Trigger event on click of image

    Hi experts,
    Can we trigger an event on the click of an image , instead of a button?
    I could not add image onto a button , neither could i find the click property for an image. Image field click opens up a file browser which does not suffice the requirement.
    Thanks,
    Virag

    Hi,
    You can have a small work around this, I think it may some what solve your query. Place a button over the "Image Field" and for that Button in the "Object" Pallette make the Appearence as Custome and there select every thing as none and in the "Border" Pallette select everything as none. And for this Button you can write "Click" event and also if you also want the Image field File Browser to be opened up then you can have the JavaScript in the Button Click event itself like for eg. image1.execEvent("click").
    Regards
    Pradeep Goli

Maybe you are looking for

  • My imac cant regconise the finder after upgrading the itunes7!!!!!!

    after restart, the computer seems to run slower, only the top right icon shows up but the others run slowly. also there's no icons (all the folders & files) on my desktop!!!!!!! when i click the tool bar's finder icon, it doesn't work!!!! only safari

  • Cache performance issues

    I was able to add indexes to a cache. This cache holds objects which contain all the rows in one of our database tables. I run a sql query using hibernate on the database table, and then run the same query using filters on the cache. I am not noticin

  • How to call other number its number did my phone number into blacklist? Please......May I know...

    How to call other number its number did my phone number into blacklist? Please......May I know...

  • External Lacie firewire drive slow access

    Around 3 or 4 weeks ago, for seemingly no reason, the 250gb external firewire Lacie d2 drive attached to my PB started running slowly. To give a bit more detail and example: I run iTunes off the drive and it runs fine. BUT, on most occasions, when I

  • Smart Filters

    After I convert a file as smart object, I have no access to the filters : Blur / Field Blur, Iris Blur and Tilt-Shift. How can I access them? Thanks