Forum Discussion
chinnappan_paul
12 years agoNew Contributor
Hello, I too have a similar situation where i have to drag an item (probably a cell) from the jtable to another object.
Example: I am searching for a patient in the list and after I find the patient, I have to drag and drop the patient to a bed (jpanel object).
In this above example, I was successful in searching the patient using RowIndex and I was able to get the left and top values of jpanel object (bed). However to perform the drag action, I am not sure how will I drag a cell in the row to the jpanel object.
question is Jobject.Drag(x1,y1, x2, y2) where x2 and y2 value will be the distance of the jpanel object from the cell of jtable, how will i find the x1, y1 value?
I am attaching the screen of my application
Example: I am searching for a patient in the list and after I find the patient, I have to drag and drop the patient to a bed (jpanel object).
In this above example, I was successful in searching the patient using RowIndex and I was able to get the left and top values of jpanel object (bed). However to perform the drag action, I am not sure how will I drag a cell in the row to the jpanel object.
question is Jobject.Drag(x1,y1, x2, y2) where x2 and y2 value will be the distance of the jpanel object from the cell of jtable, how will i find the x1, y1 value?
I am attaching the screen of my application
Related Content
- 12 years ago
Recent Discussions
- 16 hours ago