Moving Objects On Button Click
i was just woundering how to make an object e.g. (Rectangle Block) move on the click of a button
privatevoid btn_MoveLeftMouseClicked(java.awt.event.MouseEvent evt){
//move left
}
Thanks Rich
i was just woundering how to make an object e.g. (Rectangle Block) move on the click of a button
privatevoid btn_MoveLeftMouseClicked(java.awt.event.MouseEvent evt){
//move left
}
Thanks Rich
> 1) how to make an object move
> 2) how to capture button events
> 3) how to invoke the object-moving code from
> event-capturing code
4) Don't assume that whatever you painted somewhere can be picked up and modified. You can't do that with a real piece of paper, either. You need to draw it again from the start.