245 * <td style="white-space:nowrap">
246 * <div style="background-color: silver;">
247 * <ul style="color: blue;">
248 * <li>List Item</li>
249 * </ul>
250 * </div>
251 * </td>
252 * <!--setOuterHTML-->
253 * <td style="white-space:nowrap">
254 * <ul style="color: blue;">
255 * <li>List Item</li>
256 * </ul>
257 * </td>
258 * </tr>
259 * </table>
260 *
261 * <p><strong>Warning:</strong> Serialized objects of this class will
262 * not be compatible with future Swing releases. The current
263 * serialization support is appropriate for short term storage or RMI
264 * between applications running the same version of Swing. As of 1.4,
265 * support for long term storage of all JavaBeans™
266 * has been added to the
267 * <code>java.beans</code> package. Please see {@link
268 * java.beans.XMLEncoder}.</p>
269 *
270 * @author Timothy Prinzing
271 * @author Scott Violet
272 * @author Sunita Mani
273 */
274 @SuppressWarnings("serial") // Same-version serialization only
275 public class HTMLDocument extends DefaultStyledDocument {
276 /**
277 * Constructs an HTML document using the default buffer size
278 * and a default <code>StyleSheet</code>. This is a convenience
279 * method for the constructor
280 * <code>HTMLDocument(Content, StyleSheet)</code>.
281 */
282 public HTMLDocument() {
283 this(new GapContent(BUFFER_SIZE_DEFAULT), new StyleSheet());
284 }
285
|
245 * <td style="white-space:nowrap">
246 * <div style="background-color: silver;">
247 * <ul style="color: blue;">
248 * <li>List Item</li>
249 * </ul>
250 * </div>
251 * </td>
252 * <!--setOuterHTML-->
253 * <td style="white-space:nowrap">
254 * <ul style="color: blue;">
255 * <li>List Item</li>
256 * </ul>
257 * </td>
258 * </tr>
259 * </table>
260 *
261 * <p><strong>Warning:</strong> Serialized objects of this class will
262 * not be compatible with future Swing releases. The current
263 * serialization support is appropriate for short term storage or RMI
264 * between applications running the same version of Swing. As of 1.4,
265 * support for long term storage of all JavaBeans
266 * has been added to the
267 * <code>java.beans</code> package. Please see {@link
268 * java.beans.XMLEncoder}.</p>
269 *
270 * @author Timothy Prinzing
271 * @author Scott Violet
272 * @author Sunita Mani
273 */
274 @SuppressWarnings("serial") // Same-version serialization only
275 public class HTMLDocument extends DefaultStyledDocument {
276 /**
277 * Constructs an HTML document using the default buffer size
278 * and a default <code>StyleSheet</code>. This is a convenience
279 * method for the constructor
280 * <code>HTMLDocument(Content, StyleSheet)</code>.
281 */
282 public HTMLDocument() {
283 this(new GapContent(BUFFER_SIZE_DEFAULT), new StyleSheet());
284 }
285
|