如何使Java运行时可调整大小的图像框 [英] how to make java run time sizable image box

查看:64
本文介绍了如何使Java运行时可调整大小的图像框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用Java编写Unicode转换器.我做了所有困难的部分,但现在我想在文本窗格中添加可调整大小的可重定位图像.用户必须能够调整其角落的图像大小并拖动和放大;将图像放在他喜欢的文本窗格中. (例如Microsoft Word或Photoshop)

I'm making a Unicode translator in Java. I did all hard parts, but now I want to add a resizable, relocatable image to the textpane. The user must be able to resize image with its corners and drag & drop the image within the textpane where he likes. (like Microsoft Word or Photoshop)

类似这样的东西:

我尝试了样式文档属性.但是我只能找到ImageIcon.

I tried the Styled Document properties. But I couldn't find way except inserting only an ImageIcon.

推荐答案

尝试一下 http://mgeisler.net/downloads/browser/src/ImageBox.java.html

这篇关于如何使Java运行时可调整大小的图像框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆