- public ConfigEditor(Class<E> type, final Bundle<E> bundle) {
- this.setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
+ public ConfigEditor(Class<E> type, final Bundle<E> bundle, String title) {
+ this.setLayout(new BorderLayout());
+ JPanel main = new JPanel();
+
+ JScrollPane scroll = new JScrollPane(main);
+ scroll.getVerticalScrollBar().setUnitIncrement(16);
+ this.add(scroll, BorderLayout.CENTER);
+
+ main.setLayout(new BoxLayout(main, BoxLayout.PAGE_AXIS));
+
+ main.add(new JLabel(title));