Java - Right Clicking JTabbledPane Tab

拟墨画扇 提交于 2020-01-10 05:38:06

问题


I have it working, however the popup menu appears when you right click anywhere inside the tab. I only would like it to appear when you right click the top of the tab (the name). I cannot figure out how to do this. Any help is appreciated.

Thanks.


回答1:


Try adding your popup to the custom component demonstrated in TabComponentsDemo.



来源:https://stackoverflow.com/questions/9220889/java-right-clicking-jtabbledpane-tab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!