对JMenuItem的鼠标监听器不生效

JMenuItem不能监听mouseClicked事件,可改用AcitonListener中的actionPerformed

你可能感兴趣的:(对JMenuItem的鼠标监听器不生效)