Saturday, September 25, 2010

CrazyEngineers Forum - Computer Science & IT Engineering

CrazyEngineers Forum - Computer Science & IT Engineering


How to make GUI from java source code before execution?

Posted: 24 Sep 2010 10:21 PM PDT

Hello guys

I have a java source code (Jpcapdumper) and it has GUI interface but the programmer did not use the java GUI components for developing this program. and wrote whole program with code and no gui component.

Now I d like to know that is there any way to see the GUI and work on that before executing the entire code?

thanks in advance.

what is HPFS

Posted: 24 Sep 2010 08:08 PM PDT

hello friends,

I want to know that why HPFS is not recommended in small systems with less then 16 MB of RAM?
HPFS stands for High Performance File System.

opensuse

Posted: 24 Sep 2010 01:55 PM PDT

One of my friend has brought an OS named as 'opensuse'. It is an OS of linux, but it is entirely different from others, it is not supporting either NTFS or FAT.
I am trying to understand this OS ...

virtual memory

Posted: 24 Sep 2010 07:27 AM PDT

dear friends,
what is meant by virtual memory can anybody explain me.

programming challenge in java-2

Posted: 24 Sep 2010 02:20 AM PDT

hello friend's,
check out this code
Quote:

import java.applet.*;
import java.awt.*;
/*<APPLET CODE="k.class" HEIGHT=400 WIDTH=900></APPLET>*/
public class k extends Applet implements Runnable
{
Image img,im,p;
int x=0,y=0;
Thread t,t1;
public void init()
{
img=getImage(getDocumentBase(),"cc.gif");
}
public void start()
{
t=new Thread(this);
t.start();
}
public void run()
{
try
{
for(int i=0;i<=20;i++)
{
p=img;
repaint();
t.sleep(50);
x=x+20;
}
}
catch(InterruptedException e)
{
System.out.println("interrupted exception ");
}
}
public void paint(Graphics g)
{
g.drawImage(p,x,20,100,100,this);
}
}
This is a program which move an image and stop at some distance.
You have to edit it in this way that after 1st image stop 2nd image start to move from same position and stop just before 1st one.
.
:cean::cean:

No comments:

Post a Comment