Archive for May, 2008




9.11

 

.addActionListener(new ActionListener(){

public void actionPerformed(ActionEvent e){

}

});

Add comment May 8, 2008

7.6

1.we should set up a controller in order to do that.

2.If an action listener has been added to a button. The actionlister will interface and packages the code to move the object in an actionPerformed method.

3.The roles and responsibilities of the model of a control class is to obtain a input, convert , reset , and then output the result.

 

 

 

 

Add comment May 6, 2008

6.8

1. you can set up a timer by setting up the initial position of the shape

 and at regular intervals move the object and repaint the panel.

2.the factor that affect the movement of a graphical object is position, velocity, direction. and turn.

3.Flicker is caused by the speed display medium when painting large complex images that must appear to move rapidly.We could elimiate flicker by simple display of constant motion in two dimensions.

4. A moving object has a velocity, which is the distance traveled in a given unit of time, and a direction.

 

 

 

 

 

 

 

 

 

 

 

 

 

Add comment May 1, 2008

Pages

Categories

Links

Meta

Calendar

May 2008
M T W T F S S
« Apr    
 1234
567891011
12131415161718
19202122232425
262728293031  

Posts by Month

Posts by Category