<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.weweweb.net/wiki/index.php?action=history&amp;feed=atom&amp;title=JAVA_PROGRAMMING_SWING_TEXT</id>
	<title>JAVA PROGRAMMING SWING TEXT - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.weweweb.net/wiki/index.php?action=history&amp;feed=atom&amp;title=JAVA_PROGRAMMING_SWING_TEXT"/>
	<link rel="alternate" type="text/html" href="https://www.weweweb.net/wiki/index.php?title=JAVA_PROGRAMMING_SWING_TEXT&amp;action=history"/>
	<updated>2026-04-09T07:42:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://www.weweweb.net/wiki/index.php?title=JAVA_PROGRAMMING_SWING_TEXT&amp;diff=129&amp;oldid=prev</id>
		<title>Willy: Created page with &quot;StyledDocument insert text:      StyleContext context = new StyleContext();     StyledDocument document = new DefaultStyledDocument(context);       Style style = context.getSt...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.weweweb.net/wiki/index.php?title=JAVA_PROGRAMMING_SWING_TEXT&amp;diff=129&amp;oldid=prev"/>
		<updated>2022-01-27T12:58:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;StyledDocument insert text:      StyleContext context = new StyleContext();     StyledDocument document = new DefaultStyledDocument(context);       Style style = context.getSt...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;StyledDocument insert text:&lt;br /&gt;
&lt;br /&gt;
    StyleContext context = new StyleContext();&lt;br /&gt;
    StyledDocument document = new DefaultStyledDocument(context);&lt;br /&gt;
 &lt;br /&gt;
    Style style = context.getStyle(StyleContext.DEFAULT_STYLE);&lt;br /&gt;
    StyleConstants.setAlignment(style, StyleConstants.ALIGN_RIGHT);&lt;br /&gt;
    StyleConstants.setFontSize(style, 14);&lt;br /&gt;
    StyleConstants.setSpaceAbove(style, 4);&lt;br /&gt;
    StyleConstants.setSpaceBelow(style, 4);&lt;br /&gt;
 &lt;br /&gt;
    // Insert content&lt;br /&gt;
    try {&lt;br /&gt;
      document.insertString(document.getLength(), message, style);&lt;br /&gt;
    } catch (BadLocationException badLocationException) {&lt;br /&gt;
      System.err.println(&amp;quot;Oops&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    SimpleAttributeSet attributes = new SimpleAttributeSet();&lt;br /&gt;
    StyleConstants.setBold(attributes, true);&lt;br /&gt;
    StyleConstants.setItalic(attributes, true);&lt;br /&gt;
 &lt;br /&gt;
    // Insert content&lt;br /&gt;
    try {&lt;br /&gt;
      document.insertString(document.getLength(), &amp;quot;Hello Java&amp;quot;,&lt;br /&gt;
          attributes);&lt;br /&gt;
    } catch (BadLocationException badLocationException) {&lt;br /&gt;
      System.err.println(&amp;quot;Oops&amp;quot;);&lt;br /&gt;
    }&lt;/div&gt;</summary>
		<author><name>Willy</name></author>
	</entry>
</feed>