中击专题

Swing鼠标/左击/右击/中击+事件

InputEvent.BUTTON1_MASK (用于鼠标左键)   import java.awt.event.InputEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.JFrame; import javax.swing.JTextField