diff --git a/plugins/TestingList.java b/plugins/TestingList.java index 717e0d2..72ab7fd 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -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