Article View: es.comp.lenguajes.java
Article #715Usar JTextArea o JTextPane...
From: wally23.32
Date: Tue, 30 Jan 2007 11:24
Date: Tue, 30 Jan 2007 11:24
12 lines
1668 bytes
1668 bytes
Antes que nada saludos; estoy empezando a programar en Java, tengo que hacer un editor de texto para un Compilador mi duda es la siguiente: Para genererar un editor con contador de líneas estoy usando la propiedad getLineCount() de un JTextArea, ¿se puede hacer algo similar con la clase JTextPane, es decir, existe alguna propiedad similar a getLineCount() que me indique cuántas líneas tiene el JTextPane? Otra pregunta, para poner el foco a un objeto es correcto miTextArea.requestFocus() o no? Gracias por su ayuda...
Technical Details
Message-ID:
<1170156272.857367.227600@h3g2000cwc.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!h3g2000cwc.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1116f3,a183be017d794e44,start X-Google-Attributes: gid1116f3,public X-Google-Language: SPANISH,ASCII Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!h3g2000cwc.googlegroups.com!not-for-mail From: "wally23.32" <wally23.32@gmail.com> Newsgroups: es.comp.lenguajes.java Subject: Usar JTextArea o JTextPane... Date: 30 Jan 2007 03:24:32 -0800 Organization: http://groups.google.com Lines: 13 Message-ID: <1170156272.857367.227600@h3g2000cwc.googlegroups.com> NNTP-Posting-Host: 200.52.78.2 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1170156279 18380 127.0.0.1 (30 Jan 2007 11:24:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 30 Jan 2007 11:24:39 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: h3g2000cwc.googlegroups.com; posting-host=200.52.78.2; posting-account=Yxr_Dw0AAADLRgx0OE5HrG_KM9EJtQII