new PatchNameWidget(" Name  ", patch, ((Driver) patch.getDriver()).getPatchNameSize()),
new PatchNameWidget(" Name  ", patch),
    public KawaiK4MultiEditor(Patch patch) {	super("Kawai K4 Multi Editor", patch);	// Common Pane	//  gbc.weightx=5;	JPanel cmnPane = new JPanel();	cmnPane.setLayout(new GridBagLayout());	cmnPane.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.RAISED),					   "Common", TitledBorder.CENTER, TitledBorder.CENTER));	gbc.weightx = 0;	addWidget(cmnPane,		  new PatchNameWidget(" Name  ", patch, ((Driver) patch.getDriver()).getPatchNameSize()),		  0, 0, 4, 1, 0);	addWidget(cmnPane,		  new ScrollBarWidget("Volume", patch, 0, 100, 0, new K4Model(patch, 10), null),		  4, 0, 3, 1, 1);	addWidget(cmnPane,		  new ScrollBarWidget("Effect", patch, 0, 31, 1, new K4Model(patch, 11), null),		  8, 0, 5, 1, 2);	// gbc.weightx=1;	JPanel secPane = new JPanel();	secPane.setLayout(new GridBagLayout());	secPane.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.RAISED),					   "Sections", TitledBorder.CENTER, TitledBorder.CENTER));	addWidget(secPane, new LabelWidget("1"), 0, 3, 1, 1, 0);	addWidget(secPane, new LabelWidget("2"), 0, 4, 1, 1, 0);	addWidget(secPane, new LabelWidget("3"), 0, 5, 1, 1, 0);	addWidget(secPane, new LabelWidget("4"), 0, 6, 1, 1, 0);	addWidget(secPane, new LabelWidget("5"), 0, 7, 1, 1, 0);	addWidget(secPane, new LabelWidget("6"), 0, 8, 1, 1, 0);	addWidget(secPane, new LabelWidget("7"), 0, 9, 1, 1, 0);	addWidget(secPane, new LabelWidget("8"), 0, 10, 1, 1, 0);	addWidget(secPane, new LabelWidget("Mute"), 1, 2, 1, 1, 0);	addWidget(secPane,		  new CheckBoxWidget("  ", patch, new K4Model(patch, 12 + 0 * 8 + 3, 0x40), null),		  1, 3, 1, 1, -1);	addWidget(secPane,		  new CheckBoxWidget("  ", patch, new K4Model(patch, 12 + 1 * 8 + 3, 0x40), null),		  1, 4, 1, 1, -2);	addWidget(secPane,		  new CheckBoxWidget("  ", patch, new K4Model(patch, 12 + 2 * 8 + 3, 0x40), null),		  1, 5, 1, 1, -3);	addWidget(secPane,		  new CheckBoxWidget("  ", patch, new K4Model(patch, 12 + 3 * 8 + 3, 0x40), null),		  1, 6, 1, 1, -4);	addWidget(secPane,		  new CheckBoxWidget("  ", patch, new K4Model(patch, 12 + 4 * 8 + 3, 0x40), null),		  1, 7, 1, 1, -5);	addWidget(secPane,		  new CheckBoxWidget("  ", patch, new K4Model(patch, 12 + 5 * 8 + 3, 0x40), null),		  1, 8, 1, 1, -6);	addWidget(secPane,		  new CheckBoxWidget("  ", patch, new K4Model(patch, 12 + 6 * 8 + 3, 0x40), null),		  1, 9, 1, 1, -7);	addWidget(secPane,		  new CheckBoxWidget("  ", patch, new K4Model(patch, 12 + 7 * 8 + 3, 0x40), null),		  1, 10, 1, 1, -8);	addWidget(secPane, new LabelWidget("Single No."), 2, 2, 1, 1, 0);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 0 * 8 + 0), null, patchNumbers),		  2, 3, 1, 1, 1);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 1 * 8 + 0), null, patchNumbers),		  2, 4, 1, 1, 2);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 2 * 8 + 0), null, patchNumbers),		  2, 5, 1, 1, 3);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 3 * 8 + 0), null, patchNumbers),		  2, 6, 1, 1, 4);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 4 * 8 + 0), null, patchNumbers),		  2, 7, 1, 1, 5);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 5 * 8 + 0), null, patchNumbers),		  2, 8, 1, 1, 6);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 6 * 8 + 0), null, patchNumbers),		  2, 9, 1, 1, 7);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 7 * 8 + 0), null, patchNumbers),		  2, 10, 1, 1, 8);	addWidget(secPane, new LabelWidget("Zone Low"), 3, 2, 1, 1, 0);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 0 * 8 + 1), null, noteName),		  3, 3, 1, 1, 9);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 1 * 8 + 1), null, noteName),		  3, 4, 1, 1, 10);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 2 * 8 + 1), null, noteName),		  3, 5, 1, 1, 11);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 3 * 8 + 1), null, noteName),		  3, 6, 1, 1, 12);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 4 * 8 + 1), null, noteName),		  3, 7, 1, 1, 13);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 5 * 8 + 1), null, noteName),		  3, 8, 1, 1, 14);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 6 * 8 + 1), null, noteName),		  3, 9, 1, 1, 15);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 7 * 8 + 1), null, noteName),		  3, 10, 1, 1, 16);	addWidget(secPane, new LabelWidget("Zone High"), 4, 2, 1, 1, 0);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 0 * 8 + 2), null, noteName),		  4, 3, 1, 1, 17);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 1 * 8 + 2), null, noteName),		  4, 4, 1, 1, 18);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 2 * 8 + 2), null, noteName),		  4, 5, 1, 1, 19);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 3 * 8 + 2), null, noteName),		  4, 6, 1, 1, 20);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 4 * 8 + 2), null, noteName),		  4, 7, 1, 1,  21);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 5 * 8 + 2), null, noteName),		  4, 8, 1, 1, 22);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 6 * 8 + 2), null, noteName),		  4, 9, 1, 1, 23);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 7 * 8 + 2), null, noteName),		  4, 10, 1, 1, 24);	addWidget(secPane,		  new LabelWidget("Vel. Sw."),		  5, 2, 2, 1, 0);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 0 * 8 + 3, 0x30), null, velocitySwitch),		  5, 3, 2, 1, 1);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 1 * 8 + 3, 0x30), null, velocitySwitch),		  5, 4, 2, 1, 2);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 2 * 8 + 3, 0x30), null, velocitySwitch),		  5, 5, 2, 1, 3);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 3 * 8 + 3, 0x30), null, velocitySwitch),		  5, 6, 2, 1, 4);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 4 * 8 + 3, 0x30), null, velocitySwitch),		  5, 7, 2, 1, 5);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 5 * 8 + 3, 0x30), null, velocitySwitch),		  5, 8, 2, 1, 6);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 6 * 8 + 3, 0x30), null, velocitySwitch),		  5, 9, 2, 1, 7);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 7 * 8 + 3, 0x30), null, velocitySwitch),		  5, 10, 2, 1, 8);	addWidget(secPane, new LabelWidget("Recv. Ch."), 7, 2, 1, 1, 0);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 0 * 8 + 3, 0x0f), null, channels),		  7, 3, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 1 * 8 + 3, 0x0f), null, channels),		  7, 4, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 2 * 8 + 3, 0x0f), null, channels),		  7, 5, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 3 * 8 + 3, 0x0f), null, channels),		  7, 6, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 4 * 8 + 3, 0x0f), null, channels),		  7, 7, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 5 * 8 + 3, 0x0f), null, channels),		  7, 8, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 6 * 8 + 3, 0x0f), null, channels),		  7, 9, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 7 * 8 + 3, 0x0f), null, channels),		  7, 10, 1, 1, 8);	addWidget(secPane, new LabelWidget("Play Mode"), 9, 2, 2, 1, 0);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 0 * 8 + 4, 0x18), null, mode),		  9, 3, 2, 1, 9);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 1 * 8 + 4, 0x18), null, mode),		  9, 4, 2, 1, 10);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 2 * 8 + 4, 0x18), null, mode),		  9, 5, 2, 1, 11);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 3 * 8 + 4, 0x18), null, mode),		  9, 6, 2, 1, 12);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 4 * 8 + 4, 0x18), null, mode),		  9, 7, 2, 1, 13);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 5 * 8 + 4, 0x18), null, mode),		  9, 8, 2, 1, 14);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 6 * 8 + 4, 0x18), null, mode),		  9, 9, 2, 1, 15);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 7 * 8 + 4, 0x18), null, mode),		  9, 10, 2, 1, 16);	addWidget(secPane, new LabelWidget("Level"), 11, 2, 2, 1, 0);	addWidget(secPane,		  new ScrollBarWidget("", patch, 0, 100, 0, new K4Model(patch, 12 + 0 * 8 + 5), null),		  11, 3, 2, 1, 1);	addWidget(secPane,		  new ScrollBarWidget("", patch, 0, 100, 0, new K4Model(patch, 12 + 1 * 8 + 5), null),		  11, 4, 2, 1, 1);	addWidget(secPane,		  new ScrollBarWidget("", patch, 0, 100, 0, new K4Model(patch, 12 + 2 * 8 + 5), null),		  11, 5, 2, 1, 1);	addWidget(secPane,		  new ScrollBarWidget("", patch, 0, 100, 0, new K4Model(patch, 12 + 3 * 8 + 5), null),		  11, 6, 2, 1, 1);	addWidget(secPane,		  new ScrollBarWidget("", patch, 0, 100, 0, new K4Model(patch, 12 + 4 * 8 + 5), null),		  11, 7, 2, 1, 1);	addWidget(secPane,		  new ScrollBarWidget("", patch, 0, 100, 0, new K4Model(patch, 12 + 5 * 8 + 5), null),		  11, 8, 2, 1, 1);	addWidget(secPane,		  new ScrollBarWidget("", patch, 0, 100, 0, new K4Model(patch, 12 + 6 * 8 + 5), null),		  11, 9, 2, 1, 1);	addWidget(secPane,		  new ScrollBarWidget("", patch, 0, 100, 0, new K4Model(patch, 12 + 7 * 8 + 5), null),		  11, 10, 2, 1, 1);	addWidget(secPane, new LabelWidget("Transpose"), 13, 2, 1, 1, 0);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 0 * 8 + 6), null, transpose),		  13, 3, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 1 * 8 + 6), null, transpose),		  13, 4, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 2 * 8 + 6), null, transpose),		  13, 5, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 3 * 8 + 6), null, transpose),		  13, 6, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 4 * 8 + 6), null, transpose),		  13, 7, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 5 * 8 + 6), null, transpose),		  13, 8, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 6 * 8 + 6), null, transpose),		  13, 9, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 7 * 8 + 6), null, transpose),		  13, 10, 1, 1, 8);	addWidget(secPane, new LabelWidget("Tune"), 14, 2, 1, 1, 0);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 0 * 8 + 7), null, tune),		  14, 3, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 1 * 8 + 7), null, tune),		  14, 4, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 2 * 8 + 7), null, tune),		  14, 5, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 3 * 8 + 7), null, tune),		  14, 6, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 4 * 8 + 7), null, tune),		  14, 7, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 5 * 8 + 7), null, tune),		  14, 8, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 6 * 8 + 7), null, tune),		  14, 9, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 7 * 8 + 7), null, tune),		  14, 10, 1, 1, 8);	addWidget(secPane, new LabelWidget("Submix"), 15, 2, 1, 1, 0);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 0 * 8 + 4, 7), null, submix),		  15, 3, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 1 * 8 + 4, 7), null, submix),		  15, 4, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 2 * 8 + 4, 7), null, submix),		  15, 5, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 3 * 8 + 4, 7), null, submix),		  15, 6, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 4 * 8 + 4, 7), null, submix),		  15, 7, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 5 * 8 + 4, 7), null, submix),		  15, 8, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 6 * 8 + 4, 7), null, submix),		  15, 9, 1, 1, 8);	addWidget(secPane,		  new ComboBoxWidget("", patch, new K4Model(patch, 12 + 7 * 8 + 4, 7), null, submix),		  15, 10, 1, 1, 8);	gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 1; gbc.gridheight = 1;	gbc.fill = GridBagConstraints.NONE; gbc.anchor = GridBagConstraints.NORTHWEST;	scrollPane.add(cmnPane, gbc);	gbc.gridx = 0; gbc.gridy = 1; gbc.gridwidth = 1; gbc.gridheight = 1;	gbc.fill = GridBagConstraints.BOTH; gbc.anchor = GridBagConstraints.NORTHWEST;	scrollPane.add(secPane, gbc);	pack();	show();    }