473,414 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Re: Urgent Java Help Plzzzzzzz

2
import animax.Grafix;
import java.awt.Color;

class FlashingLight extends GrafixFlasher
{

int x = 100, y = 100;
int w = 100, h = 100;

public void draw ()
{
if(state==0) Grafix.out.setColor(Color.red);
if(state==1) Grafix.out.setColor(Color.yellow);

Grafix.out.fillOval(x,y,w,h);
}
}


class Demo17B
{
public static void main (String[]args)

{
FlashingLight light = new FlashingLight();
light.draw();
light.flashContinuosly();

}
}
Apr 2 '08 #1
4 1159
JosAH
11,448 Expert 8TB
Yes, and your question is?

kind regards,

Jos
Apr 2 '08 #2
udug86
2
Yes, and your question is?

kind regards,

Jos

i'm awfully sorry. my question is that i'm tryin to design a traffic light that changes 3 different colors. i have tried everthing but doesnt seem to do . i'm not an expert in java just a beginer
Apr 2 '08 #3
sukatoa
539 512MB
i'm awfully sorry. my question is that i'm tryin to design a traffic light that changes 3 different colors. i have tried everthing but doesnt seem to do . i'm not an expert in java just a beginer
May we know your specific question?

sukatoa...
Apr 3 '08 #4
NitinSawant
270 100+
Hi, try following, I've modified ur program . . .


<Removed by Admin>
1.) Please do not attempt to spoonfeed, it is against the site rules
2.) Use code tags everytime when posting code
Apr 3 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Eyal | last post by:
Hey, I would appriciate if anyone can help on this one: I have a java object/inteface having a method with a boolean parameter. As I'm trying to call this method from a javascript it fails on...
8
by: Mike | last post by:
Hello, I have a few rather urgent questions that I hope someone can help with (I need to figure this out prior to a meeting tomorrow.) First, a bit of background: The company I work for is...
5
by: omri | last post by:
Hi everyody, i have a complex problem (kind of urgent). i wrote a website in asp.net 2.0, one of the classes execute a java class (which is the steady part of the project ) by the way i'm doing...
3
by: pradeepm | last post by:
Hii Anybody have source code for JAVA B+ trees.Pls send me.Very urgent.Thanks in advance.
1
by: kommaraju | last post by:
iam a starter to db2 & jdbc.i have a servlet program which connects to ibm db2 using jdbc.when i run this using apache tomcat 4.1.34 , it is showing a error message of HTTP STATUS 500 my jdbc...
3
by: optionsindia | last post by:
hi partners, we are having a urgent requirement for one of our client cmmi level5 company in hyd if u intrested Kindly mail your responses to gangadhar.sadhu@optionsindia.com Project Lead -...
3
by: optionsindia | last post by:
hi partners, we are having a urgent requirement for java architect with our clients located at chennai,hyderabad and bangalore if u r intrested send u r updated resume mail to:...
5
by: koonda | last post by:
Hi all, I am a student and I have a project due 20th of this month, I mean May 20, 2007 after 8 days. The project is about creating a Connect Four Game. I have found some code examples on the...
6
by: thijo | last post by:
public class Point { private int x; private int y; private int Number;
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.