Sunday, September 19, 2010

CrazyEngineers Forum

CrazyEngineers Forum


how to make button move in a sigle row

Posted: 19 Sep 2010 10:51 AM PDT

Quote:


import java.awt.*;
import java.applet.*;


public class fi extends Applet implements Runnable
{
Button b[] = new Button[1];
int x1=0;
Thread t;
public void init()
{
for(int i=0;i<1;i++)
{
setLayout(new FlowLayout());
b[i] = new Button();
add(b[i]);
}
}
public void start()
{
t = new Thread(this);
t.start();
}
public void run()
{
Thread t1=Thread.currentThread();
while(t==t1)
{

try
{
repaint();
Thread.sleep(1000);
setBackground(Color.blue);
}
catch(Exception e){}
}
}
public void paint(Graphics g)
{
for (int j=0;j<1;j++)
{
b[j].setSize(15,6);
x1=(x1+3)%200;
b[j].setLocation(x1,100);
}

}
}
/*<applet code="fi.class" width="300" height="400"></applet>*/

Here is my code for moving button in a single row , but the problem i m facing is that it is moving very fast i want that to move per second means button move forward after each second...
Is this my code correct or need some more implementation or us there any another way to approach this...

gsm controlled robot

Posted: 19 Sep 2010 10:30 AM PDT

please provide me the specification of gsm controlled robot

Howdy!

Posted: 19 Sep 2010 10:30 AM PDT

Hello folks!

Name is PM.
Currently, 4th year electrical engineer with comp sci minor ;)

Int'l Talk like a pirate day

Posted: 19 Sep 2010 10:10 AM PDT

Avast me mates, today be ye ole International Talk Like A Pyrate day. Arr.

The Official site for International Talk Like A Pirate Day - September 19

Is that is the virus?

Posted: 19 Sep 2010 09:52 AM PDT

Hi friends!! i got to ask some doubts.Let me ask now.
Whenever i open a word file another word file is created as ~$file name.When i close the word file the another wordfile which was created also closes..i tried to open the another word file keeping the first file opened it says the file cannot be opened coz there are some problems with the contents..Is that is the virus?y the another word file is created whenever i open a word file?

give your suggestions for buying a laptop with good configuration

Posted: 19 Sep 2010 07:22 AM PDT

my budget is 30000 to 40000. I want to know what are all features that I should ask to sales man,which are all essential .bcoz, I dont know which ram type is best like ddr or some other and also I dont know which is best processor type.and which one is good for the following purposes and which one is advanced.
I want the laptop to browse and for programming and some entertainment fun too :),not for playing games..

my friends suggesting me to get laptop on Dell..tell me whether it is good or not?

Gear Casting.

Posted: 19 Sep 2010 06:22 AM PDT

Hey Friends,

How the gears are casted for any machine???

Regards,
VIPUL

HUB Vs Star

Posted: 19 Sep 2010 06:15 AM PDT

Hey Friends,

Please help me in deciding which network to use at my Home Group.

Give me your suggestion Please.

Regards,
Vipul

Which are the softwares used for ELECTRICAL NETWORKS???

Posted: 19 Sep 2010 05:49 AM PDT

Which are the softwares used for ELECTRICAL NETWORKS???

Hey Friends,
Please suggest me some software and if you have any manual u can provide it here too......

Regards,
VIPUL

New CE T-shirt Design

Posted: 19 Sep 2010 02:13 AM PDT

I just saw the thread on Crazy T-shirt Contest held in 2008.Here I have designed one hope you like this.

T-shirt

Front :My Crazy Heart is enough to become an engineer.

Crazy T.JPG


Back: but I wanna be a Crazyengineer@CE

Crazy T back.JPG

Tutorial for Image processing using Matlab?

Posted: 19 Sep 2010 12:47 AM PDT

I am very interested in doing image processing projects using Matlab. How do I go about learning them???I know some basic Matlab. I will be very happy if someone could guide me on learning the basics of image processing through matlab. Kindly help.

Computer networks

Posted: 18 Sep 2010 11:40 PM PDT

Hello CEans
what is meant by IP address of switch,and port number and how does it works??please explain

Physical and Logical Memory

Posted: 18 Sep 2010 09:20 PM PDT

Please explain me clearly the concept of physical and logical memory in computer?

Welcome our New Mods!

Posted: 18 Sep 2010 09:16 PM PDT

Bow Before The New Mods!

Posted: 18 Sep 2010 09:15 PM PDT

CEans,

CE's growing exponentially and becoming a prime target for spammers too. We are therefore expanding CE's Mod Squad with CEan Durga (from Australia) & CEan English-Scared (from India).

They of course do not need any introduction.

You may contact them for any help related to CE or contact them through PM/Visitor Message on their profile if you spot spam.

Welcome to the Mod Squad, Durga & E-S!

Comments on this announcement in following thread: http://www.crazyengineers.com/forum/...tml#post128841

No comments:

Post a Comment