🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #1179

Easy TextArea problem PLEASE HELP

#1179
From: Michael Rowlands
Date: Fri, 02 Jul 1999 00:00
16 lines
1391 bytes
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: <930831978.803997@Chaos.es.co.nz>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

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: 113ae9,da84d4e138b1e98f
X-Google-Attributes: gid113ae9,public
X-Google-Thread: 10fd6d,da84d4e138b1e98f
X-Google-Attributes: gid10fd6d,public
X-Google-Thread: 10a146,da84d4e138b1e98f
X-Google-Attributes: gid10a146,public
From: "Michael Rowlands" <michaelrowlands@bigfoot.com>
Subject: Easy TextArea problem PLEASE HELP
Date: 1999/07/02
Message-ID: <930831978.803997@Chaos.es.co.nz>
X-Deja-AN: 495993422
Cache-Post-Path: Chaos.es.co.nz!unknown@p17-max8.dun.ihug.co.nz
Organization: The Internet Group (Dunedin)
X-MSMail-Priority: Normal
X-Priority: 3
X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Newsgroups: aus.computers.java,comp.lang.java.gui,comp.lang.java.help,comp.lang.java.programmer