【发布时间】:2012-07-18 20:25:13
【问题描述】:
我正在尝试创建一个面板,该面板在我的 GUI 其余部分的左侧打开。我在 Eclipse 中工作。我将swingx-core-1.6.2.jar 添加到我的构建路径中。我可以导入org.jdesktop.swingx.JXCollapsiblePane,然后创建一个新的JXCollapsiblePane,但是为了设置窗格的方向,我需要执行以下操作:
JXCollapsiblePane myCollapsingPane = new JXCollapsiblePane();
mycollapsingPane.setOrientation(JXCollapsiblePane.Orientation.HORIZONTAL);
但是,这表明无法解决方向问题。所以,我尝试导入
org.jdesktop.swingx.JXCollapsiblePane.Orientation,它也没有说它无法解决。
我可能在这里遗漏了一些愚蠢的东西;如何将面板设置为向侧面打开而不是垂直打开?
【问题讨论】:
标签: java swing user-interface swingx