The Artima Developer Community
Sponsored Link

Java Answers Forum
email address in applet

4 replies on 1 page. Most recent reply: Aug 30, 2002 3:57 AM by Satish

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 4 replies on 1 page
jim wesneski

Posts: 2
Nickname: jwesneski
Registered: Aug, 2002

email address in applet Posted: Aug 28, 2002 1:41 PM
Reply to this message Reply
Advertisement
hi, new to applets. how do i embed a clickable email address IN THE APPLET, not the HTML (which i can do)?

thanks


Swaraj

Posts: 24
Nickname: swaraj
Registered: Mar, 2002

Re: email address in applet Posted: Aug 29, 2002 3:57 AM
Reply to this message Reply
Hi

Implement the mouselistener on your applet. This will allow you to create a clickable email address link on your Applet.

Thanks
Swaraj

jim wesneski

Posts: 2
Nickname: jwesneski
Registered: Aug, 2002

Re: email address in applet Posted: Aug 29, 2002 7:10 AM
Reply to this message Reply
thanks. you've provided the answer. now: how to implement it? i only use a simple line of code to place the email address on the applet:

p.drawString("emailaddress@yahoo.com",517,407);

how do i register this text string as the listener
though? and what additional code is needed to have
the browser bring up the mail program?

thanks for your patience

Swaraj

Posts: 24
Nickname: swaraj
Registered: Mar, 2002

Re: email address in applet Posted: Aug 29, 2002 9:57 PM
Reply to this message Reply
Hi

This is not a small thing, go through some java event management codes, where you will come across MouseListeners, you will have plenty of things to learn about, otherwise if you get the code done by someone for this, you will never learn how to, but know only how to copy and paste code snippets.

Swaraj

Satish

Posts: 4
Nickname: satish
Registered: Aug, 2002

Re: email address in applet Posted: Aug 30, 2002 3:57 AM
Reply to this message Reply
> hi, new to applets. how do i embed a clickable email
> address IN THE APPLET, not the HTML (which i can
> do)?
>
> thanks

instade of drawString function better use Label and on label u put any string and use mouselistener then you can easily achive what you wanted

Flat View: This topic has 4 replies on 1 page
Topic: chat room Previous Topic   Next Topic Topic: MVC architecture

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use