From 49382963c5d1e2b0d7f2baa17c8214ebf09e4b0e Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Thu, 8 Oct 2015 11:34:17 +0200 Subject: [PATCH] Startup --- plugins/TestingList.java | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) 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