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


Groups > comp.lang.java.gui > #3796 > unrolled thread

JTextPane - add tabulator

Started by"Manuel Blanquett" <manuel.blanquett@THRWHITE.remove-dii-this>
First post2011-04-27 15:46 +0000
Last post2011-04-27 15:46 +0000
Articles 4 — 3 participants

Back to article view | Back to comp.lang.java.gui


Contents

  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

#3796 — JTextPane - add tabulator

From"Manuel Blanquett" <manuel.blanquett@THRWHITE.remove-dii-this>
Date2011-04-27 15:46 +0000
SubjectJTextPane - add tabulator
Message-ID<g5tsdk$ldo$02$1@news.t-online.com>
  To: comp.lang.java.gui
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.

Yours, Manuel

---
 * 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

[toc] | [next] | [standalone]


#3797 — Re: JTextPane - add tabul

From"John B. Matthews" <john.b..matthews@THRWHITE.remove-dii-this>
Date2011-04-27 15:46 +0000
SubjectRe: JTextPane - add tabul
Message-ID<nospam-882D42.23214519072008@aioe.org>
In reply to#3796
  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

[toc] | [prev] | [next] | [standalone]


#3798 — Re: JTextPane - add tabul

From"Jeff Higgins" <jeff.higgins@THRWHITE.remove-dii-this>
Date2011-04-27 15:46 +0000
SubjectRe: JTextPane - add tabul
Message-ID<48832024$0$4047$bbae4d71@news.suddenlink.net>
In reply to#3796
  To: comp.lang.java.gui

Manuel Blanquett 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.

Maybe this article will help.
<http://java-sl.com/wrap.html>

>
> 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.
>
> Yours, Manuel

---
 * 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

[toc] | [prev] | [next] | [standalone]


#3799 — Re: JTextPane - add tabul

From"Jeff Higgins" <jeff.higgins@THRWHITE.remove-dii-this>
Date2011-04-27 15:46 +0000
SubjectRe: JTextPane - add tabul
Message-ID<4883259d$0$4034$bbae4d71@news.suddenlink.net>
In reply to#3798
  To: comp.lang.java.gui

"Jeff Higgins" <oohiggins@yahoo.com> wrote in message 
news:48832024$0$4047$bbae4d71@news.suddenlink.net...
>
> Manuel Blanquett 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.
>
> Maybe this article will help.
> <http://java-sl.com/wrap.html>
>
>>
>> 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.
>>
>> Yours, Manuel
>
>

Or, maybe use JTable instead of JTextPane.

---------------|----------------------------
09:40:32 user: | hello im writing a long text,
               | now comes the new line
               | and here the text continues!

---
 * 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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web