开发者

Resizing ImageIcon with its corners in Java

开发者 https://www.devze.com 2023-03-11 05:29 出处:网络
I\'m making a Unicode translator in Java. I done all hard p开发者_运维百科art. But now I want to add an image to the TextPane and user must have the ability to resize image with its edges and drag &am

I'm making a Unicode translator in Java. I done all hard p开发者_运维百科art. But now I want to add an image to the TextPane and user must have the ability to resize image with its edges and drag & drop the image within the TextPane where he likes. (like Microsoft Word or Photoshop)

I tried the Styled Document properties.But I couldn't find way except insert only the imageicon.

Can anyone help me with this trouble?


May be a better choice would be not to use textPane.

If you have an custom editable label, that can be edited by double clicking on it to show a text box to edit the contents, and change the text of the label when enter key is pressed.

Also give a shot of JDesktoppane, JLayeredPane, and check what components can be added to it.

0

精彩评论

暂无评论...
验证码 换一张
取 消