import javax.swing.Box;
import javax.swing.BoxLayout;
-import javax.swing.JPanel;
import net.pterodactylus.sonitus.data.Controlled;
import net.pterodactylus.sonitus.data.Controller;
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
-public class ControlledPane extends JPanel {
+public class ControlledPane extends Box {
/**
* Creates a new controlled pane.
* The controlled whose controllers to display
*/
public ControlledPane(Controlled controlled) {
- setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
+ super(BoxLayout.Y_AXIS);
for (Controller controller : controlled.controllers()) {
if (controller instanceof Fader) {
add(new FaderPanel((Fader) controller));