JList 使用所有鼠标按钮选择项目
我怎样才能制作一个 swing JList 以使用任何鼠标按钮而不只是左边的按钮来选择其项目?
谢谢!
how can i make a swing JList to have its items selected with any mousebutton not just the left one?
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
哦,刚刚发现这个函数,
当你在鼠标监听器中执行此操作时,它可以完成工作。
oh just found the function
when you do this in a mouselistener it does the job.