|
29 | 29 | import javafx.scene.control.TabPane; |
30 | 30 | import javafx.scene.layout.Background; |
31 | 31 | import javafx.scene.layout.BackgroundFill; |
| 32 | +import javafx.scene.layout.Border; |
| 33 | +import javafx.scene.layout.BorderStroke; |
| 34 | +import javafx.scene.layout.BorderStrokeStyle; |
| 35 | +import javafx.scene.layout.BorderWidths; |
| 36 | +import javafx.scene.layout.CornerRadii; |
32 | 37 | import javafx.scene.layout.HBox; |
33 | 38 | import javafx.scene.layout.Pane; |
34 | 39 | import javafx.scene.layout.VBox; |
@@ -127,16 +132,22 @@ public CComponentBand(MessageReader reader, CPageSignifPath parentpath) throws O |
127 | 132 | * @return a pane with the given direction |
128 | 133 | */ |
129 | 134 | public static Pane returnBandPane(int direction) { |
130 | | - Pane thispane; |
| 135 | + Pane thispane=null; |
| 136 | + boolean valid=false; |
131 | 137 | if (direction == DIRECTION_DOWN) { |
132 | 138 | thispane = new VBox(8); |
133 | | - |
134 | | - } else { |
135 | | - |
| 139 | + thispane.setPadding(new Insets(5, 5, 5, 0)); |
| 140 | + valid=true; |
| 141 | + } |
| 142 | + if (direction == DIRECTION_RIGHT) { |
136 | 143 | thispane = new HBox(8); |
| 144 | + thispane.setPadding(new Insets(0, 0, 0, 0)); |
| 145 | + valid=true; |
137 | 146 | } |
| 147 | + if (!valid) throw new RuntimeException("Direction "+direction+" not supported"); |
| 148 | + |
138 | 149 | thispane.setBackground(new Background(new BackgroundFill(Color.WHITE, null, null))); |
139 | | - thispane.setPadding(new Insets(5, 5, 5, 0)); |
| 150 | + |
140 | 151 | return thispane; |
141 | 152 | } |
142 | 153 |
|
|
0 commit comments