鼠标右键的代码 JTree tree = new JTree();JPopupMenu popup = new JPopupMenu();popup.add..............tree.addMouseListener(new MouseAdapter(){ public void mousePressed(MouseEvent e) { if (SwingUtilities.i J2SE 2024-09-27 37 点赞 0 评论 56 浏览