Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #3797

Re: JTextPane - add tabul

From "John B. Matthews" <john.b..matthews@THRWHITE.remove-dii-this>
Subject Re: JTextPane - add tabul
Message-ID <nospam-882D42.23214519072008@aioe.org> (permalink)
Newsgroups comp.lang.java.gui
References <g5tsdk$ldo$02$1@news.t-online.com>
Date 2011-04-27 15:46 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
In article <g5tsdk$ldo$02$1@news.t-online.com>,
 Manuel Blanquett <msn@mac-useless.de> wrote:

> Hello Community,
> 
> I was wondering if it is possible to setup a character that will be 
> inserted afer a line wrap within a JTextPane.
> 
> Example:
> 
> 09:40:32 user: hello im writing a long text, now comes the new line
>                 and here the text continues!
> 
> Something like a \t character.

Use JTextPane's setText() method, inherited from JEditorPane, to display 
HTML formatted text. Use the ClassLoader's getSystemResources() method 
to get the text from your jar.

<http://java.sun.com/javase/6/docs/api/javax/swing/JTextPane.html>
<http://java.sun.com/docs/books/tutorial/uiswing/components/editorpane.ht
ml#recap>

-- 
John B. Matthews
trashgod at gmail dot com
home dot woh dot rr dot com slash jbmatthews

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

JTextPane - add tabulator "Manuel Blanquett" <manuel.blanquett@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
  Re: JTextPane - add tabul "John B. Matthews" <john.b..matthews@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
  Re: JTextPane - add tabul "Jeff Higgins" <jeff.higgins@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
    Re: JTextPane - add tabul "Jeff Higgins" <jeff.higgins@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000

csiph-web