Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 04-04-2009
Member
 
Join Date: Dec 2008
Posts: 25
Clickable image in frame

good evening ,

I want to develop a Webpage and , Was Stuck With the Image Behaviour that i could not Resolved Can You tell me how can we put a picture in a frame and make it clickable Thanks you in Advance for your replies ,
Reply With Quote
  #2  
Old 04-04-2009
Member
 
Join Date: May 2008
Posts: 115
Re: Clickable image in frame

Hello , to put an image in a JFrame just put it in a label First you copy the desired image in the package that you then you go to the properties of the label and icon you select your image then in the mouseClicked event of the label tells you the page that should display after clicking the following example

Code:
JFrame j = new Home (); 

j.setVisible (true);
and to get the little hand when you pose the cursor on the image you go in the event MouseEntered from the same label and you put the code


Code:
jLabel1.setCursor (new Cursor (Cursor.HAND_CURSOR));

and then good luck
Reply With Quote
  #3  
Old 04-04-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: Clickable image in frame

Hello , Check this Three Html Codes Saved them in Three Different Files

Code:
<HTML><HEAD><TITLE>frame_map.html</TITLE></HEAD>
<FRAMESET COLS = "50%,*">
  <FRAME SRC = "frame_map1.html" NAME = "MAP1">
  <FRAME SRC = "frame_map2.html" NAME = "MAP2">
</FRAMESET>
</HTML>
---------------------------------------------------------------

Code:
<HTML><HEAD><TITLE>frame_map1.html</TITLE></HEAD>
<HR>
<IMG SRC="Image/mymap.gif" USEMAP="#shapes">
<MAP NAME = "shapes">
  <AREA SHAPE="POLY" COORDS= 
      "32,36 32,188 93,188 65,136 133,124 82,36" TARGET=MAP2
      HREF="Image/leftp.gif">
  <AREA SHAPE="POLY" COORDS=
      "93,188 245,188 244,36 82,36 133,124 65,136" TARGET=MAP2
      HREF="Image/rightp.gif">
  <AREA SHAPE="DEFAULT"  TARGET=MAP2 HREF="Image/defp.gif">
</MAP>
<P>
<HR> 
</HTML>
---------------------------------------------------------------

Code:
<HTML><HEAD><TITLE> frame_map2.html 
</TITLE></HEAD>
<HR> <H1> This is the initial frame </H1>
<HR> 
</HTML>
Reply With Quote
  #4  
Old 04-04-2009
Member
 
Join Date: Feb 2008
Posts: 1,848
Re: Clickable image in frame

A clickable image map is one that links to different places depending on where you click on the image. The image is divided into regions whose boundaries may or may not be visible. For example, a map of the United States with state boundaries might contain links to information about each state, and these links are activated when you click within a state boundary.

In order to create a clickable image map you need to:
  • Obtain the image you want in GIF or JPEG format and store it in your public_html directory or some sub-directory therein
  • Create lists of the coordinates, in pixel values, that define each clickable region in the image
  • Create the necessary HTML code to specify the image, the regions in the image that you may click on, and the places (links) that you are sent when you click on them.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Clickable image in frame"
Thread Thread Starter Forum Replies Last Post
Need help with Clickable Comment Url Metoac Technology & Internet 6 24-06-2010 01:11 AM
Any way to get Windows Media Player to advance/reverse frame by frame Wamil Windows Software 4 29-04-2010 04:55 AM
Email links on Blackberry not clickable Gavisht Portable Devices 7 27-04-2010 05:01 AM
Creating a Clickable URL in Textbox D_chapple Software Development 5 23-02-2010 09:52 PM
How to make pictures clickable? mellisahi Windows Software 2 27-07-2009 09:49 PM


All times are GMT +5.5. The time now is 12:01 PM.