diff --git a/view-simulation-results/src/main/java/org/vcell/N5/UI/HelpExplanation.java b/view-simulation-results/src/main/java/org/vcell/N5/UI/HelpExplanation.java index b10833c..94fec83 100644 --- a/view-simulation-results/src/main/java/org/vcell/N5/UI/HelpExplanation.java +++ b/view-simulation-results/src/main/java/org/vcell/N5/UI/HelpExplanation.java @@ -20,7 +20,7 @@ public HelpExplanation(){ int width = 700; JPanel helperPanel = new JPanel(); - JTextPane textArea = new JTextPane(); + JTextPane textPane = new JTextPane(); Parser parser = Parser.builder().build(); String md; @@ -33,15 +33,13 @@ public HelpExplanation(){ Node node = parser.parse(md); HtmlRenderer renderer = HtmlRenderer.builder().build(); String text = renderer.render(node); -// textArea.setText("Intro: \n" + intro + "Accessing Simulation Results: \n" + accessingSimulationResults + "N5 and Datasets: \n" + n5AndDataSet); - textArea.setContentType("text/html"); - textArea.setSize(width, height); - textArea.setPreferredSize(new Dimension(width, height)); - textArea.setText(text); - textArea.setEditable(false); -// textArea.setLineWrap(true); -// textArea.setWrapStyleWord(true); - JScrollPane scrollPane = new JScrollPane(textArea); + textPane.setContentType("text/html"); + textPane.setSize(width, height); + textPane.setPreferredSize(new Dimension(width, height)); + textPane.setText(text); + textPane.setEditable(false); + + JScrollPane scrollPane = new JScrollPane(textPane); scrollPane.setSize(width, height); helperPanel.setSize(width, height); helperPanel.add(scrollPane); @@ -51,7 +49,6 @@ public HelpExplanation(){ jDialog = pane.createDialog("Helper Menu"); jDialog.setModal(false); jDialog.setPreferredSize(new Dimension(width, height)); -// jDialog.setResizable(true); } public void displayHelpMenu(){