private static JPanel createStatsPanel(final EvAJobList jobList, final GenericArrayEditor edi) { // if (logPanel != null) System.err.println("Error: logPanel should be null!!!"); // logPanel = new LogPanel(); // EvAStatisticalEvaluation.statsParams.setGenericAdditionalButtons(getActionButtons(lPan, // jobList, edi)); JParaPanel pan = new JParaPanel(EvAStatisticalEvaluation.statsParams, "Statistics"); // GOEPanel pan = new GOEPanel(EvAStatisticalEvaluation.selectedSingleStats, jobList, // null, new GenericObjectEditor()); JComponent paraPan = pan.makePanel(); JPanel tmpPan = new JPanel(); // tmpPan.setPreferredSize(new Dimension(1200,1200)); tmpPan.add(paraPan); // tmpPan.add(logPanel); return tmpPan; }
private void initProblemDefinition() { this.m_Mocco.m_JPanelParameters.removeAll(); this.m_ProblemChooser = new JComboBox(); JComponent tmpC = new JPanel(); tmpC.setLayout(new BorderLayout()); Class[] altern = null; try { altern = ReflectPackage.getAssignableClassesInPackage( "eva2.server.go.problems", Class.forName("eva2.server.go.problems.InterfaceMultiObjectiveDeNovoProblem"), true, true); } catch (ClassNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } this.m_ProblemChooser.setModel(new DefaultComboBoxModel(altern)); String objectName = (this.m_Mocco.m_State.m_OriginalProblem.getClass().getName()); this.m_ProblemChooser.getModel().setSelectedItem(objectName); this.m_ProblemChooser.addActionListener(problemChanged); JPanel tmpP = new JPanel(); tmpP.setLayout(new GridBagLayout()); GridBagConstraints gbc = new GridBagConstraints(); gbc.fill = GridBagConstraints.HORIZONTAL; gbc.gridx = 0; gbc.gridy = 0; tmpP.add( this.makeHelpText( "Choose and parameterize the optimization problem to solve by means of MOCCO. " + "Please note that it is not necessary to include MOSO converters yet and that only problems complying " + "with the InterfaceMultiObjectiveDeNovoProblem can be optimized using the MOCCO approach."), gbc); gbc.gridx = 0; gbc.gridy = 1; tmpP.add(this.m_ProblemChooser, gbc); this.m_Mocco.m_JPanelParameters.setLayout(new BorderLayout()); this.m_Mocco.m_JPanelParameters.add(tmpP, BorderLayout.NORTH); JParaPanel paraPanel = new JParaPanel(this.m_Mocco.m_State.m_OriginalProblem, "MyGUI"); this.m_Mocco.m_JPanelParameters.add(paraPanel.makePanel(), BorderLayout.CENTER); }