I am trying to get the parent JFrame or JDialog so I can change the cursor. Right now I am doing it in a stupid way by doing this:
private void changeCursorQuestion(){
JFrame frame=(JFrame) getParent().getParent().getParent().getParent().getParent().getParent().getParent();
Cursor cursor=new Cursor(Cursor.HAND_CURSOR);
frame.setCursor(cursor);
}//end changeCursorQuestion
But is there an easier and of course better way of getting the frame or jdialog that a panel is in?