Revision 32424 branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/creation/panel/AntScriptPanel.java

View differences:

AntScriptPanel.java
30 30
import javax.swing.JEditorPane;
31 31
import javax.swing.JPanel;
32 32
import javax.swing.JScrollPane;
33
import javax.swing.text.StyledEditorKit;
34
import javax.swing.text.ViewFactory;
35
import javax.swing.text.html.HTMLEditorKit;
33 36

  
37
import org.apache.batik.util.gui.xmleditor.XMLEditorKit;
34 38
import org.gvsig.installer.swing.api.SwingInstallerLocator;
35 39
import org.gvsig.installer.swing.impl.DefaultSwingInstallerManager;
36 40

  
......
45 49
	public AntScriptPanel() {
46 50
		super();
47 51
		swingInstallerManager = (DefaultSwingInstallerManager)SwingInstallerLocator.getSwingInstallerManager();
48
		initComponents();
52
		initComponents();		
49 53
	}
50 54

  
51 55
	private void initComponents() {
......
53 57

  
54 58
		scriptScrollPane = new javax.swing.JScrollPane();
55 59
		scriptEditorPane = new javax.swing.JEditorPane();
56

  
60
		scriptEditorPane.setEditorKitForContentType("text/xml", new XMLEditorKit());
61
		scriptEditorPane.setContentType("text/xml");
62
		
57 63
		setLayout(new java.awt.GridBagLayout());
58 64

  
59 65
		scriptScrollPane.setViewportView(scriptEditorPane);

Also available in: Unified diff