Home Answers Viewqa Java-Beginners Problem in show card in applet.

 
 


Ganesh Gothi
Problem in show card in applet.
0 Answer(s)      a year and a month ago
Posted in : Java Beginners

The following link contained the card demo with applet. http://www.roseindia.net/java/java-tips/45examples/30graphics/cardDemo/cardDemo.shtml

Now I am trying to run this code in eclipse but Not show card in the applet, then I add a code in paintComponent method like- "g.drawImage(c.image,c.x, c.y,100,100,this);" but error occure. Error is-

"The method drawImage(Image, int, int, int, int, ImageObserver) in the type Graphics is not applicable for the arguments (ImageIcon, int, int, int, int, CardDemoGUI)"

I have tried to solve this error but finally I am not solving, Please help me how can I show all the card in the applet.

Work I have done:- 1) Create Dynamic web project in eclipse. 2) create three class the you have given Card.java, CardDemo.java and CardDemoGUI.java in com.progresso Package. 3)Past folder of cards(All the Cards contained) in suitable place. 4) now I am running CardDemo.java file On Run as Java Applet then only show the Applet, not show any one card,hence any other code will be add in the example or how can I solve my problem. please help me its very urgent for me. or mail me ganesh.gothi@gmail.com

Thanks in advanced.

View Answers









Related Pages:
Problem in show card in applet.
Problem in show card in applet.  The following link contained... but Not show card in the applet, then I add a code in paintComponent method like... can I show all the card in the applet. Work I have done:- 1) Create Dynamic web
Problem in card demo example.
for this, now It's OK, but i have done drag-drop of card and move in the applet, but my problem is when I drag of card that show on top, since all the 52 cards...Problem in card demo example.  Hi, I have successfully shows
Applet run with appletviewer but not in browser, any code problem.
Applet run with appletviewer but not in browser, any code problem.  Hi,My problem is when I am running my applet in appletviewer index.html, Its work... the 52 cards will be show in browser as by "appletviewer" and run as "java applet" I
credit card problem - Java Beginners
credit card problem  Say that you owe the credit card company $1000.00. The company charges you 1.5% per month on the unpaid balance. You have decided to stop using the card and to pay off the debt by making a monthly payment
applet problem - Applet
applet problem  How can I create a file in client side by a java applet . Surely it will need a signed applet .But how can a signed applet create a file in the client side
problem with applet plugin - Applet
problem with applet plugin  hello friends, iam using Eclipse IDE. i created one applet and i want to plugin that applet into webpage.. when i am...-->com.ezsoft.applets.Upload.java please friends how can i resolve that problem
java applet problem - Applet
java applet problem  i was doing a program using java applet. I want... and to exit from the applet respectively.Now i want to display a message when...*; import java.awt.*; public class Calculator extends Applet implements
Problem In applet Its run on browser but hang and blinking when image is draging some where.
Problem In applet Its run on browser but hang and blinking when image.... In my applet 52 card images is draw and drage and move on the applet, but when I am draging one card, applet is refreshing and blinking continue when I am moving
Problem with display of images in applets - Applet
Problem with display of images in applets  Hi all, When I run... java.applet.*; public class image extends Applet { Image img; public... in figuring out the problem....  Hi frined, import java.applet.*; import
applet program code - Applet
applet program code  hello sir, i did't get the code for below problem... please help me... 1.An applet program to draw a line graph for y=2x+5.[for suitable values of x & y
how to run applet - Applet
in applet program. this is executed successfully with appletviewer command >...://www.roseindia.net/java/example/java/applet/ http://www.roseindia.net/java/example/java/applet/FirstApplet.shtml Hope that it will be helpful for you.Even
applet servlet communication - Applet
applet servlet communication  Can anybody tell me applet - servlet... project in eclipse and writing the applet code in ajava file which is present in src... that the applet class is not found, but if I am copying t=all the classes
applet not initalized - Applet
*; /* */ public class card extends Applet implements ActionListener,ItemListener... java.awt.event.*; public class card extends Applet implements ActionListener,ItemListener...applet not initalized  I HAVE TRIED MY HEART OUT BUT THIS APPLET
Card Demo
an application or applet. Card.java represents a single card... - Dragging card images example dual application/applet. <ul> <li>TODO... Java: Example - Card Demo This program reads in a bunch of images (cards
Programming with applet and oracle - Applet
Programming with applet and oracle  Develop an Online Examination software in java using applets as front end and oracle as back end. Software should... before the time given to them is over. Candidates receive their score card after
animation in applet - Applet
animation in applet  Hello sir, your code is ok but what happend to this code can you modify this an tell me problem please code: import... Moveplane extends Applet { public void paint(Graphics g) { Font f=new Font("Arial
Applet issue
Applet issue  Hello, Can there be any problem in writing a file to the temp directory from a url using applet??? If some security problems are there please do post it for me
Applet
for you and and it should show output like Welcome in Passing parameter in java applet... Applet       Introduction Applet is java program that can be embedded into HTML pages. Java applets
Shoping Card
Shoping Card  Complete coding for online shoping card
Applet - spell check program - Applet
Applet - spell check program  hi, i am writing a applet program -say... a textArea and displayed the contents of file. Problem: HOW SHALL I... ALSO ATTACH THE APPLET PROGRAM I HAVE ALREADY DEVELOPED IF PERMITED
unable to see the output of applet. - Applet
://www.roseindia.net/java/example/java/applet/FirstApplet.html but the problem...unable to see the output of applet.  Sir, I was going through the following tutorial http://www.roseindia.net/java/example/java/applet
Show Balance
Show Balance  Hi I have a simple program I put together and it runs... and subtract num2 from num1 and show the remaining balance.... any help in this little problem is greatly appreciated.. NewGuy...   import java.awt.
problem of writing to a local file ( JApplet ) - Applet
problem of writing to a local file ( JApplet )  Dear All, I want to program a guestbook using java applets but now I have problem of writing to a file from JApplet. it is working without any problem if i run the program using
Swing - Applet
Swing  Hello, I am creating a swing gui applet, which is trying to output all the numbers between a given number and add them up. For example... on in order to retrieve the result. The problem i have is that i think the solution
Applet In Jsp
Applet In Jsp          In this example we are going to show you how you can use an applet in jsp. Before going deep into this program it is important to understand
Applet - Passing Parameter in Java Applet
appletParameter.html Appletviewer will run the applet for you and and it should show output... Applet - Passing Parameter in Java Applet       Introduction Java applet has the feature
Use an application and applet together
Use an application and applet together  i have a project in my school in which i am making a game. i have a problem that i have an applet... in the applet viewer. Please help. extremely important
Use an application and applet together
Use an application and applet together  i have a project in my school in which i am making a game. i have a problem that i have an applet... in the applet viewer. Please help. extremely important
Swing Applet Example in java
Java - Swing Applet Example in java       Introduction In this section we will show you about using swing in an applet. In this example, you will see that how resources of swing
Applet ... - Date Calendar
Applet ...  program to create an applet that displays d current time... ClockAppletDemo extends Applet implements Runnable { protected Thread...; timerThread = null; } //Show the time, and wait a while public void run
java applet run time error - Applet
java applet run time error  Hi, Im new to java applet.please help me. i have create a MPEG movie player in applet. when i run that program it show the error that,"javax.media.NoPlayerException: Error instantiating class
Applet
Applet  Write an applet to display a string in an applet. String should be passed as a parameter to an applet
What is Java Card ?
What is Java Card ?  hii, What is Java Card ?   hello, The Java Card specification allows Java technology to run on smart cards and other small devices
applet
applet  What is the immediate superclass of the Applet class
Applet
Applet  how to run an applet on a web browser
applet
applet  Explain different stages in the lifecycle of an applet with figure.   Stages of Applet: Life cycle of an Applet: init(): This method is called to initialized an applet start(): This method is called after
Applet
Applet  Give the class hierarchy of an Applet class
Loading JApplet into Servlet - Applet
, Mozilla 1.7... Could you let me know the procedure to load applet into servlet... the problem. Thanks, Desu
Applet
Applet  Write a ava applet that sets blue color foreground and yellow color background at the start of an applet
core java - Applet
core java   Namaste sir , how can draw a line in Applet. I want when I press mouse button and moves any way then show the line . i, working...; Hi Friend, Create an applet 'SimpleDrawLine.java': import java.awt.
Applet
Applet  Explain the start() and stop() methods of applet life cycle.   Start and Start method of Applet Life Cycle Start () method: The start method of an applet is called after the initialization method init
need a login applet in java
need a login applet in java  i'm java beginner. Can some java master teach me how to write a login applet? combine with my coding import... java.text.*; import java.awt.event.*; public class BoatRental extends Applet implements
need a login applet in java
need a login applet in java  i'm java beginner. Can some java master teach me how to write a login applet? combine with my coding import... java.text.*; import java.awt.event.*; public class BoatRental extends Applet implements
Applet
Applet  Write a short note on applet life cycle
complete coding for shopping card
complete coding for shopping card  complete coding for shopping card   Please visit the following link: Shopping Cart Application
Applet
Applet  Draw the class hierarchy of an Applet class. Also explain how to set background and forground colors in java
Animation in Applets - Applet
is for moving a plane in an applet,but unfortunatly this code is not working .can you kindly help me out to solve this problem. code: import... extends Applet { public void paint(Graphics g) { Font f=new Font("Arial
Java - Read file Applet
Java - Read file Applet       Introduction In this program we will show you about the concept of the reading file from an applet. This program illustrates you how an applet
integration of webcam - Applet
integration of webcam  Hello sir, I have a small problem...*; public class JavaCam extends Applet implements Runnable{ boolean boolean...){ trace("Image get exception:"+e.toString()); showStatus("Problem getting

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.