JTabbedPane 里面放 JScrollPane
JScrollPane里面放 JEditorPane效果是有选项卡可滚动的JEditorPane。现在我要从JTabbedPane 中取出JEditorPane。通过JTabbedPane 的getSelectedComponent()得到的是JScrollPane,怎么能得到JEditorPane?或者还有什么方法能达到同样的效果?
JScrollPane里面放 JEditorPane效果是有选项卡可滚动的JEditorPane。现在我要从JTabbedPane 中取出JEditorPane。通过JTabbedPane 的getSelectedComponent()得到的是JScrollPane,怎么能得到JEditorPane?或者还有什么方法能达到同样的效果?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货