Latest Tutorials| Questions and Answers|Ask Questions?|Site Map

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

View Questions and Answers by Category


Have Programming Question? Ask it here!

Ganesh Gothi
Problem in show card in applet.
0 Answer(s)      2 years and 6 months ago
Posted in : Java Beginners

The following link contained the card demo with applet.

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, and in com.progresso Package. 3)Past folder of cards(All the Cards contained) in suitable place. 4) now I am running 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

Thanks in advanced.

View Answers

Related Tutorials/Questions & Answers:
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
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
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...--> please friends how can i resolve that problem
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
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
Moving Applet Problem
Moving Applet Problem  When image scroll in applet then a blinking on image is continuously to remove this blinking.. import... java.awt.Image; public class PlaneAnimation extends Applet implements Runnable
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
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
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
Shoping Card
Shoping Card  Complete coding for online shoping card
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
Credit Card Validation Application
Credit Card Validation Application   Write a c program that reads a credit card number from the user. The c program will display: ΓΆβ?¬ΒΆ Valid: if the credit card is valid ΓΆβ?¬ΒΆ Invalid: if the credit card is invalid
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  Write an applet to display a string in an applet. String should be passed as a parameter to an applet
Applet  Give the class hierarchy of an Applet class
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  how to run an applet on a web browser
applet  What is the immediate superclass of the Applet class
complete coding for shopping card
complete coding for shopping card  complete coding for shopping card   Please visit the following link: Shopping Cart Application
Applet  Write a ava applet that sets blue color foreground and yellow color background at the start of an 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
Applet  I have a java applet that has a button. On clicking the button it should disappear and another applet should appear. How to write this code???? Also in login applet after successful login it should display admin applet
Applet  Write a short note on applet life cycle
credit card validation
credit card validation   Double every second digit from right to left... digits in the odd places from right to left in the card number. 6 + 6 + 0 + 8 + 0... is between 13 and 16, then the card number is valid; otherwise, it is invalid. i
Applet  Draw the class hierarchy of an Applet class. Also explain how to set background and forground colors in java
applet  what is applet in java   An applet is a small program that can be sent along with a Web page to a user. Java applets can perform... the following link: Applet Tutorials
Applet  Write a Java applet that drwas a line between 2 points. The co-ordinates of 2 points should be passed as parametrs from html file. The color of the line should be red
applet  applet to open new tab not's my code import java.applet.*; import java.awt.*; import*; import java.awt.event.*; public class NewURL extends Applet implements ActionListener{ public void init
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