Radhika Srinivasan

Ranch Hand
+ Follow
since Jul 28, 2009
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Radhika Srinivasan

Thank you Bear for the advice. I shall change the name. I haven't put up the actual code I am working on since it is for a project. I have given proper naming there. I just wanted to get the logic to get this working. Thank you once again.
I have two radio groups. Say one for food option and the other one for toppings.
I want to enable toppings radio group to appear only after food option is selected.

This is a Math quiz program I am able to draw question & answer....... Once the user answers question below that I would like to display whether the answered answer is correct or incorrect I am unable to display that since it comes under if else loop in itemStateChanged method would any of them help me with it





I would like to know how do I use Labels to display the output which comes under this method at a particular location





Many thanks,
Radhika
12 years ago
The first applet should draw yoyo one and part of the stick figure arm. The second applet should draw the stick figure connecting the arms to the first and third applet. The third applet should draw yoyo two and part of the stick figure arm.

All I had to do is : I had to remove a thread in yoyo.java, just graphics.

.
12 years ago
I'm done with this program ............ Thank you all ...........
12 years ago
It's appears broken only partially oval appears the complete body of YoYo doll doesn't appear
12 years ago
Thank you for the reply, I mean in YoYo.java program doll appears when I run it in Internet Explorer......

Below lines which I've marked it from YoYoB.java appears broken when I run in Internet Explorer........[meaning when I run both programs YoYoA.java and YoYoB.java the YoYo doll appears broken]

public void paint(Graphics g)
{
setBackground(Color.white);
/*
g.setColor(Color.red);
g.drawLine(x,100,x,y);
g.setColor(Color.green);
g.fillOval(x-10,y,20,20);
*/
[b] [/b]
try
{
Thread.sleep(sleep);
}
catch(InterruptedException e)
{}
repaint();


}
}
12 years ago

Radhika Srinivasan wrote:Write an applet that implements . . .
[deleted]
Many thanks,
Radhika

[edit]The deleted text appears identical to the first post.[/edit]
12 years ago
Write an applet that implements Runnable that simulates a yoyo going up and down on a string. Reduce flicker by only repainting the string and yoyo in the background color.



<html>
<head>
<title>YoYo Applet</title>
</head>
<body>
<applet code="YoYo" height="400" width="400">
</applet>
</body></html>



Modify program so that you have two yoyos of different colors and speeds. Create an HTML file that will put both of these yoyos side by side with appropriate headings.







Many thanks,
Radhika
12 years ago
Could you give me an example as to, how do I use a text element??

Thanks,
Radhika
12 years ago


Many thanks,
Radhika
12 years ago
Check boxes along with answers doesn't appear on the screen.
12 years ago
I got rid of the problem "Illegal start of expression" by including

import java.awt.event.*;

as well I removed the methods which were inside the main method.

Presently I'm having problem with "the checkboxes along with the answers" appearing on the screen to select the choices of answers from the quiz question.

Thanks,
Radhika
12 years ago
This is my 1st project when I execute it works this way in commad prompt mode, in the present project I've modified it to work in applet.
----jGRASP exec: java MathTest

1. 7+2 = ? a.6 b.8 c.9 d.10
Enter Your Answer:
c
Correct
2. 9-5 = ? a.2 b.4 c.6 d.8
Enter Your Answer:
b
Correct
3. 144/12 = ? a.10 b.12 c.14 d.16
Enter Your Answer:
b
Correct
4. 5*5 = ? a.10 b.20 c.25 d.125
Enter Your Answer:
c
Correct
5. 2+3+5 = ? a.7 b.8 c.9 d.10
Enter Your Answer:
d
Correct

You had 5 question correct.

Congratulations,you passed with a score of 100%


----jGRASP: operation complete.
I have included my 1st project :
12 years ago