Java examples for Swing:JEditorPane
Custom creation method for JEditorPane .
//package com.java2s; import javax.swing.JEditorPane; public class Main { /**/*from w w w .j av a 2 s . c om*/ * Custom creation method for {@link JEditorPane}. */ public static JEditorPane createReadOnlyHtmlEditorPane() { final JEditorPane jEditorPane = new JEditorPane(); jEditorPane.setContentType("text/html"); jEditorPane.setEditable(false); return jEditorPane; } }