🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.help
Article #131

Re: Copying Text from one text box to another

#131
From: GaZ
Date: Sun, 28 Apr 2002 03:24
44 lines
2678 bytes
Thanx mate i worked it out

  String temp = TextField1.getText()

 if (e.getSource() == Copy)
  {
   TextField2.setText(temp);


  }

That was too easy, do you know any usefull java sites whre i can look up
usefull info?
i am new to java and just need a push in the right direction

regards

GaZ

"Sum Ting Wong" <charred@hotmail.com> wrote in message
news:1019931188.442475@dyfi...
>
> "GaZ" <x_gazar_x@hotmail.com> wrote in message
> news:3ccabd92$0$17268$afc38c87@news.optusnet.com.au...
> > Can someone tell me how to create an applet with two text boxes. one
text
> > box contains text in it already and by pressing a button it copies the
> text
> > to the other text box.
> >
> > Regards
> >
> > GaZ
>
> erm.. so you left your uni project till the last minute, and thought to
> solve it by crossposting to 500 newsgroups.. ;)
>
> you need to look up things like:
>
> Button.actionPerformed()
> TextField.getText()
> TextField.setText()
>
>
Technical Details
Message-ID: <3ccb6b69$0$11448$afc38c87@news.optusnet.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!195.40.4.120.MISMATCH!easynet-quince!easynet.net!colt.net!news.maxwell.syr.edu!news1.optus.net.au!optus!spool01.syd.optusnet.com.au!spool.optusnet.com.au!not-for-mail
References: <3ccabd92$0$17268$afc38c87@news.optusnet.com.au> <1019931188.442475@dyfi>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bacc,c3071af052420cec
X-Google-Attributes: gid10bacc,public
X-Google-Thread: 10568c,c3071af052420cec
X-Google-Attributes: gid10568c,public
X-Google-Thread: 113ae9,c3071af052420cec
X-Google-Attributes: gid113ae9,public
X-Google-Thread: 115d3b,c3071af052420cec
X-Google-Attributes: gid115d3b,public
X-Google-Thread: fb99b,c3071af052420cec
X-Google-Attributes: gidfb99b,public
X-Google-Thread: fb3cb,c3071af052420cec
X-Google-Attributes: gidfb3cb,public
X-Google-Thread: 10a146,c3071af052420cec
X-Google-Attributes: gid10a146,public
X-Google-Thread: 107d55,c3071af052420cec
X-Google-Attributes: gid107d55,public
X-Google-ArrivalTime: 2002-04-27 20:25:49 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!195.40.4.120.MISMATCH!easynet-quince!easynet.net!colt.net!news.maxwell.syr.edu!news1.optus.net.au!optus!spool01.syd.optusnet.com.au!spool.optusnet.com.au!not-for-mail
From: "GaZ" <x_gazar_x@hotmail.com>
Newsgroups: comp.lang.java.help,comp.lang.java.javascript,comp.lang.java.programmer,comp.lang.java.security,comp.lang.java.tech,comp.lang.javascript,cz.comp.lang.java,de.comp.lang.java,fj.comp.lang.javascript
References: <3ccabd92$0$17268$afc38c87@news.optusnet.com.au> <1019931188.442475@dyfi>
Subject: Re: Copying Text from one text box to another
Date: Sun, 28 Apr 2002 13:24:29 +1000
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Lines: 46
Message-ID: <3ccb6b69$0$11448$afc38c87@news.optusnet.com.au>
NNTP-Posting-Host: 210.49.128.56
X-Trace: 1019964265  11448 210.49.128.56