Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8114744

what is the syntax of Listview item OnMouseClick event.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: None
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows xp Professional, NetBeans 7.0

      Description

      I am not able to fetch the data on Click event of particular listview's item.
      When I click on particular item it should give/fetch the related data from the database.

      public static final void setupMouseHandlers(Node n)
          {
              n.addEventFilter(MouseEvent.MOUSE_CLICKED, new EventHandler<MouseEvent>()
              {
                  public void handle(MouseEvent evt)
                  {
                          System.err.println("Clicked");
                  }
                       
              });
          }

      I have written above function, and called it as - setupMouseHandlers(list_view);
      but whole listview is clicked, not the particular item of Listview.
      Please help me solving this problem.

        Attachments

          Activity

            People

            • Assignee:
              jgiles Jonathan Giles
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: