This commit is contained in:
boccioli_m
2015-10-08 11:34:17 +02:00
parent d8c7e735cd
commit 49382963c5

View File

@@ -315,8 +315,27 @@ public class TestingList extends Panel {
* add custom panel if specified
*/
private void addCustomPanel(){
Kollimators panel = new Kollimators();
this.jPanelCustom.add(panel);
try {
Kollimators panel = new Kollimators();
this.jPanelCustom.add(panel);
//create a class to visualise the details panel
Class testingListDetailsClass = getController().getClassByName("Kollimators");
JPanel detailsPanel = (JPanel) testingListDetailsClass.getConstructor(null).newInstance(new Object[]{null});
} catch (ClassNotFoundException ex) {
Logger.getLogger(TestingList.class.getName()).log(Level.SEVERE, null, ex);
} catch (NoSuchMethodException ex) {
Logger.getLogger(TestingList.class.getName()).log(Level.SEVERE, null, ex);
} catch (SecurityException ex) {
Logger.getLogger(TestingList.class.getName()).log(Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
Logger.getLogger(TestingList.class.getName()).log(Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
Logger.getLogger(TestingList.class.getName()).log(Level.SEVERE, null, ex);
} catch (IllegalArgumentException ex) {
Logger.getLogger(TestingList.class.getName()).log(Level.SEVERE, null, ex);
} catch (InvocationTargetException ex) {
Logger.getLogger(TestingList.class.getName()).log(Level.SEVERE, null, ex);
}
}
/**
* write info into a log file