• Post Reply Bookmark Topic Watch Topic
  • New Topic

getLocationOnScreen of CellRect

 
Isaac Hewitt
Ranch Hand
Posts: 191
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using drag and drop. The user initiates a drag on a table cell. The size of the table cell is determined along with the text in that cell. A label is created which can be dragged across the glasspane.
The part that is not working correctly is the location on screen. The label when it appears on the glasspane appears very far to the left offscreen and obove the slected table cell. The purpose of this is for visual effect whilst dragging a film title to a text box. Here > frame.getGlasspane().setPoint(this.getLocationOnScreen(selected_Row));



 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!