Ramesh Devendra

Greenhorn
+ Follow
since Mar 30, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ramesh Devendra

i am beginner in java and want to develope client and server
through socket please give me simple code i am fully bor to
solve this problem plese help me.
Sir,
Thanks your kind response,
Q1.Previous day you send code in click event GIF file become
change(So our requiremet is fullfil)but one problem arise that
i want click button in out side of GIF image.please sir give
me response.you send this code

import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.util.*;
public class ImageButtonApplet02 extends Applet implements ActionListener{
private Vector v;
private int numOfImages;
private int currentImage;
private Button b;
public void init()
{
v = new Vector( 10 );
numOfImages = 0;
currentImage = 0;

// The next few lines add three images to the vector
// These were just some images I had laying around
// If you have numbered images it would be much better to
// make a loop that loops through all your images
// or perhaps pass all of them in as parameters to the
// applet... It's your decision.
Image tempImage = getImage(getCodeBase(),"c:/RAMESH/newbanner111.jpeg.jpg" );
v.insertElementAt( tempImage, numOfImages );
numOfImages++;
tempImage = getImage( getCodeBase(), "c:/RAMESH/fman_mainscreen.gif" );
v.insertElementAt( tempImage, numOfImages );
numOfImages++;
tempImage = getImage( getCodeBase(), "c:/RAMESH/mona.jpeg" );
v.insertElementAt( tempImage, numOfImages );
numOfImages++;
(HOW TO DO BUTTON OUT SIDE OF GIF IMAGE)
Button b = new Butto( "Next!" );
b.addActionListener( this );

add( b );
}

public void paint( Graphics g )
{
Image i = ( Image )v.elementAt( currentImage );
g.drawImage( i, 0, 0, this );
}

public void actionPerformed( ActionEvent e )
{
currentImage = (currentImage + 1 ) % numOfImages;
repaint();
}
}
19 years ago
Sir,
Our all GIF file is in Subdirectory and one button is in applet.when every time click event become change image.
How to show in applet every click event changed image.
Please give me code.

IIT,Kanpur
19 years ago
Sir,
Who to display GIF images on click event on the applet
every time on click become change image.
and how can to link the images.

Ramesh Chandra
Project Associate
(IIT,Kanpur)
19 years ago