jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1531701 - /jmeter/trunk/src/core/org/apache/jmeter/gui/LoggerPanel.java
Date Sun, 13 Oct 2013 16:07:19 GMT
Author: pmouawad
Date: Sun Oct 13 16:07:18 2013
New Revision: 1531701

URL: http://svn.apache.org/r1531701
Log:
Replace JTextArea by JSyntaxTextArea

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/LoggerPanel.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/LoggerPanel.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/LoggerPanel.java?rev=1531701&r1=1531700&r2=1531701&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/LoggerPanel.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/LoggerPanel.java Sun Oct 13 16:07:18 2013
@@ -23,10 +23,11 @@ import java.awt.Insets;
 
 import javax.swing.JPanel;
 import javax.swing.JScrollPane;
-import javax.swing.JTextArea;
 import javax.swing.ScrollPaneConstants;
 import javax.swing.SwingUtilities;
 
+import org.apache.jmeter.gui.util.JSyntaxTextArea;
+import org.apache.jmeter.gui.util.JTextScrollPane;
 import org.apache.jmeter.util.JMeterUtils;
 import org.apache.jorphan.logging.LoggingManager;
 import org.apache.log.LogEvent;
@@ -40,7 +41,7 @@ public class LoggerPanel extends JPanel 
 
     private static final long serialVersionUID = 6911128494402594429L;
 
-    private JTextArea textArea;
+    private JSyntaxTextArea textArea;
 
     private final PatternFormatter format;
 
@@ -60,11 +61,12 @@ public class LoggerPanel extends JPanel 
         this.setLayout(new BorderLayout());
 
         // TEXTAREA
-        textArea = new JTextArea();
+        textArea = new JSyntaxTextArea(15, 50, true);
         textArea.setEditable(false);
         textArea.setLineWrap(false);
+        textArea.setLanguage("text");
         textArea.setMargin(new Insets(2, 2, 2, 2)); // space between borders and text
-        JScrollPane areaScrollPane = new JScrollPane(textArea);
+        JScrollPane areaScrollPane = new JTextScrollPane(textArea);
 
         areaScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
         areaScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);



Mime
View raw message