Method
splitPane
(
int orientation,
boolean redraw,
JComponent c1,
JComponent c2
)
Source from the content-addressed store, hash-verified
| 376 | } |
| 377 | |
| 378 | private JSplitPane splitPane( |
| 379 | int orientation, |
| 380 | boolean redraw, |
| 381 | JComponent c1, |
| 382 | JComponent c2 |
| 383 | ) { |
| 384 | JSplitPane sp = new JSplitPane(orientation, redraw, c1, c2); |
| 385 | sp.setBorder(null); |
| 386 | javax.swing.plaf.SplitPaneUI ui = sp.getUI(); |
| 387 | if(ui instanceof javax.swing.plaf.basic.BasicSplitPaneUI) { |
| 388 | ((javax.swing.plaf.basic.BasicSplitPaneUI)ui).getDivider() |
| 389 | .setBorder(null); |
| 390 | } |
| 391 | return sp; |
| 392 | } |
| 393 | |
| 394 | public static void main( String [] args ) |
| 395 | throws Exception |
Tested by
no test coverage detected