Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望我的 Jtabbed 窗格在左侧和右侧都有选项卡,这可能吗?如果是,那怎么办?
这听起来像是一个可怕的界面。更好的解决方案可能是左侧和右侧的按钮,中间有卡片布局。如果我看到两边的标签,我会觉得很困惑。
不,这不受支持(并且可能不应该,正如 jzd 已经指出的那样:-)。如果您坚持,您将不得不实现一个自定义组件:查看 JTabbedPane 及其 ui-delegate (BasicTabbedPaneUI) 的来源以获得灵感。