Article View: aus.computers.java
Article #1180Re: Easy TextArea problem PLEASE HELP
From: Philip Brown
Date: Fri, 02 Jul 1999 00:00
Date: Fri, 02 Jul 1999 00:00
31 lines
1806 bytes
1806 bytes
On Thu, 01 Jul 1999 23:41:18 GMT, grifftor@my-deja.com wrote: >In article <930831978.803997@Chaos.es.co.nz>, > "Michael Rowlands" <michaelrowlands@bigfoot.com> wrote: >> 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)); >>... >Try this > >textArea.getSelectedText().setFont(new Font(ari, Font.PLAIN, 12)); > huh? do try things out before you post them. That is equivalent to "Heres a string".setFont(....); and besides which, you can't have multiple fonts in a TextArea -- [Trim the no-bots from my address to reply to me by email!] [ Do NOT email-CC me on posts. Pick one or the other.] -------------------------------------------------- The word of the day is mispergitude
Technical Details
Message-ID:
<slrn7npur0.3qt.phil+s3@shell3.ba.best.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<930831978.803997@Chaos.es.co.nz> <7lguas$s7u$1@nnrp1.deja.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113ae9,da84d4e138b1e98f X-Google-Attributes: gid113ae9,public X-Google-Thread: 10fd6d,da84d4e138b1e98f X-Google-Attributes: gid10fd6d,public X-Google-Thread: 10d6db,da84d4e138b1e98f X-Google-Attributes: gid10d6db,public X-Google-Thread: 10a146,da84d4e138b1e98f X-Google-Attributes: gid10a146,public From: phil+s3@bolthole.no-bots.com (Philip Brown) Subject: Re: Easy TextArea problem PLEASE HELP Date: 1999/07/02 Message-ID: <slrn7npur0.3qt.phil+s3@shell3.ba.best.com> X-Deja-AN: 496496778 References: <930831978.803997@Chaos.es.co.nz> <7lguas$s7u$1@nnrp1.deja.com> X-Trace: nntp1.ba.best.com 930937696 203 bolthole@206.184.139.134 Organization: Phil's Software User-Agent: slrn/0.9.5.3 (UNIX) Reply-To: phil+s3@bolthole.no-bots.com Newsgroups: aus.computers.java,comp.lang.java.gui,comp.lang.java.help,comp.lang.java.programmer