Added popup menu support to make it more analogous to JComponent