NetBean GUI 构建器中的 JSplitPane

发布于 2024-12-19 03:41:09 字数 211 浏览 5 评论 0原文

我尝试从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

老娘不死你永远是小三 2024-12-26 03:41:09

这些按钮只是占位符。首先,将窗格(包括那些按钮)的大小调整为您想要的大小和位置。然后,只需从面板中拖动一个 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 the JPanel (or component). Then you may do anything as you normally do with JPanel (or that component).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文