Java MS Word 类应用程序
你知道在 MS Word 中,你可以在任何你想要的地方编写文本并绘制和放置形状。在文本中,当你按 Enter 并进入新行时,光标下方的形状也会向下移动一行?我想在窗格上用 Java 实现该属性,使用组件作为形状和文本。如何为形状提供绝对定位,同时保留它们之间的空间?我会很感激任何想法,因为我几乎没有想法了。
You know in MS Word, you can write text and draw&put shapes anywhere you want.. in the text when you hit enter and get to a new line, the shapes below your cursor also moves down one line? I want to implement that property in Java on a pane, using components as the shapes and text. How can I provide absolute positioning for shapes but at the same time preserve the space between them? I'll appreciate any idea, cause I'm almost out of ideas.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许你可以使用SpringLayout?
Maybe you could use SpringLayout?