NetBean GUI 构建器中的 JSplitPane
我尝试从 NetBeans 中的 Palette
中拖动 JSplitPane
,但它始终在我的 JPanel
上显示为两个单独的窗格,并带有左右按钮他们。
我无法用按钮做任何事情。它们甚至不是 Pane
上的组件。到底是怎么回事?你怎么能把它变成正常的空的两个分割窗格,其中一个都没有呢?
I tried to drag a JSplitPane
from the Palette
in NetBeans but it always shows up on my JPanel
as two separate panes with left and right buttons on them.
I could not do anything with the buttons. They were not even components on the Pane
. What is going on? How could you make it like normal empty two split panes with nothing one them?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些按钮只是占位符。首先,将窗格(包括那些按钮)的大小调整为您想要的大小和位置。然后,只需从面板中拖动一个
JPanel
(或任何其他组件),并将其放在任何按钮上。该按钮将被JPanel
(或组件)取代。然后您可以像平常使用JPanel
(或该组件)一样执行任何操作。The buttons are just placeholders. First you resize the pane(including those buttons) to what size and position you desire. Then, just drag a
JPanel
(or any other component) from palette, and drop it on the any of the buttton. That button will be replaced by theJPanel
(or component). Then you may do anything as you normally do withJPanel
(or that component).