putting marks on ImageIcon in JLabel

前端 未结 2 1142
有刺的猬
有刺的猬 2020-12-12 02:15

So I\'m trying to find a way to modify an image in Java. In other words, if user clicks on the image, a mark will be put at the point where the user just clicked. I have an

2条回答
  •  情书的邮戳
    2020-12-12 02:48

    You're on the right track with wanting to use another pane. In Java, there actually already is a glass pane that is designed for just this purpose. Read through this tutorial http://docs.oracle.com/javase/tutorial/uiswing/components/rootpane.html and it should help you understand.

提交回复
热议问题