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.
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.