basic right click function for list. Code modified from docs.oracle.com