makeGlobalPanel();
globalPanel.addComponentListener(this);
}
protected void makeGlobalPanel() throws ZDeviceNotRunningException {
ParameterContext ppc = preset.getDeviceParameterContext().getPresetContext();
List cats = ppc.getCategories();
globalTables = new PresetParameterTable[cats.size()];
Collections.sort(cats);
globalPanel = new JPanel() {
public Color getBackground() {
return UIColors.getDefaultBG();
}
};
globalPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 10, 10));
for (int i = 0,n = cats.size(); i < n; i++) {
List ids = ppc.getIdsForCategory((String) cats.get(i));
ArrayList models = new ArrayList();
for (int j = 0,k = ids.size(); j < k; j++)
try {
models.add(preset.getParameterModel((Integer) ids.get(j)));
} catch (IllegalParameterIdException e) {