🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #1185

Re: Easy TextArea problem PLEASE HELP

#1185
From: NIR
Date: Sun, 04 Jul 1999 00:00
25 lines
1531 bytes
Very easy answer, You can't do that with TextArea.

Michael Rowlands <michaelrowlands@bigfoot.com> wrote in message
news:930831978.803997@Chaos.es.co.nz...
> Hi I am making a simple text editor and am trying to implemented a font
> change when a user uses a drop down menu and selects the font i.e. Arial
the
> way I have it now is
>
> textArea.setFont(new Font(ari, Font.PLAIN, 12));
>
> // ari is defined by "private String ari = new String("Arial");"
>
> The program changes fonts but changes the whole textArea, when I only want
> to change the user selection in the textArea.
>
> How do I do this?
>
> Many thanks
>
> Michael Rowlands
>
>
>
>
Technical Details
Message-ID: <377ef466.0@news.barak.net.il>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <930831978.803997@Chaos.es.co.nz>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,da84d4e138b1e98f
X-Google-Attributes: gid10d6db,public
X-Google-Thread: 10a146,da84d4e138b1e98f
X-Google-Attributes: gid10a146,public
X-Google-Thread: 10fd6d,da84d4e138b1e98f
X-Google-Attributes: gid10fd6d,public
X-Google-Thread: 113ae9,da84d4e138b1e98f
X-Google-Attributes: gid113ae9,public
From: "NIR" <nirm@radware.com>
Subject: Re: Easy TextArea problem PLEASE HELP
Date: 1999/07/04
Message-ID: <377ef466.0@news.barak.net.il>
X-Deja-AN: 496960697
X-NNTP-Posting-Host: 209.88.177.2
References: <930831978.803997@Chaos.es.co.nz>
X-Trace: 4 Jul 1999 08:43:02 +0200, 209.88.177.2
X-MSMail-Priority: Normal
X-Priority: 3
Newsgroups: aus.computers.java,comp.lang.java.gui,comp.lang.java.help,comp.lang.java.programmer
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211