+ add(createControllerPanel(controlled), new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.HORIZONTAL, new Insets(6, 0, 0, 0), 0, 0));
+ add(Box.createVerticalGlue(), new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0, GridBagConstraints.NORTH, GridBagConstraints.BOTH, new Insets(6, 0, 0, 0), 0, 0));
+ }
+
+ //
+ // PRIVATE METHODS
+ //
+
+ /**
+ * Creates the controller panel for the given component.
+ *
+ * @param controlled
+ * The component whose controllers to display
+ * @return The created controller panel
+ */
+ private JComponent createControllerPanel(Controlled controlled) {
+ JPanel controllerPanel = new JPanel(new GridBagLayout());
+ controllerPanel.setBorder(createTitledBorder(createEtchedBorder(), "Controller"));
+