JSplitPane
은 (는) Component
에 국경을 추가했습니다.JSplitPane이 구성 요소에 테두리를 추가하는 이유는 무엇입니까? 중단하려면 어떻게해야합니까?
이 중첩의 JSplitPane 대부분 볼 - 예컨대 :
public class JSplitPaneToy {
public static void main(String[] args) {
JSplitPane sp = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
makePanel(), makePanel());
sp = new JSplitPane(JSplitPane.VERTICAL_SPLIT, makePanel(), sp);
sp = new JSplitPane(JSplitPane.VERTICAL_SPLIT, makePanel(), sp);
sp = new JSplitPane(JSplitPane.VERTICAL_SPLIT, makePanel(), sp);
JFrame frame = new JFrame("JSplitPane Toy");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setContentPane(sp);
frame.pack();
frame.setVisible(true);
}
private static JScrollPane makePanel() {
JScrollPane pane = new JScrollPane(new JTable(
new Object[][]{{0, 1, 2}, {1, 2, 3}, {2, 3, 4}}, new Object[]{1, 2, 3}));
pane.setPreferredSize(new Dimension(200, 100));
return pane;
}
}
즉 각각의 다음 하위 구성 요소는 상기 다시 설정 보이는 - 즉, 추가되는 그림자 테두리의 일부 형태가있다.
- 왜이 경계선이 추가됩니까? (실제로 테두리가 추가됩니까 ...?)
- 이 '테두리'가 어떻게 추가되지 않도록 할 수 있습니까?
아름다운 - 많은 감사합니다. – amaidment