如何将类型光标自动放入 JEditorPane 中?
在卡面板切换后,我想自动将类型光标放在新显示的卡中的 JEditorPane 中。我怎样才能做到这一点?
After a card panel switch I would like to automatically put the type cursor in a JEditorPane
located in my new displayed card. How can I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您在使用 CardLayout 时切换卡片时要求将焦点放在编辑器窗格上。如果是这样,请查看卡片布局焦点了解一种方法。
I think you are asking to place focus on the editor pane when you switch cards when using a CardLayout. If so, then check out Card Layout Focus for one approach.