Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在鼠标悬停并按下鼠标时更改旋钮的 Jslider 图像。
请告诉我我该怎么做。
谢谢乔蒂
实现MouseListener并处理鼠标按下/释放事件,以及鼠标进入/退出事件。对于按下/输入的事件,根据需要更改您的组件,对于释放/退出,将其更改回来。
MouseListener