行间文本编辑器
Java中有没有一种方法可以显示行间文本,以便只能使交替(奇数或偶数)行可编辑?如果是这样,用户是否可以动态选择两组行中哪一组是可编辑的?
是否可以用两个单独的面板(一个位于另一个面板之上,其中上面的面板具有透明背景)来模拟?
Is there a way in Java to display interlinear text so you can make only the alternate (odd-numbered xor even-numbered) lines editable? And, if so, would it be possible for the user to dynamically select which of the two sets of lines is editable?
Could this be simulated with two separate panels one on top of the other where the upper one has a transparent background?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
jEdit 提供了一个编辑器窗格,允许在文本内容中折叠/展开控件。请参阅 http://www.jedit.org/index.php 的屏幕截图?page=截图&图片=22
jEdit provides an editor pane that allows for collapsing/expanding controls within the textual content. See the screenshot at http://www.jedit.org/index.php?page=screenshot&image=22
这种控制几乎不存在,或者至少很难公开。
您可以使用许多单行输入字段来模仿它,根据需要设置样式/删除边框。
Such a control hardly exists, or at least hardly is publicly available.
You can imitate it with a number of one-line input fields, styling / removing their borders to taste.