Search:

Type: Posts; User: rtucker1023

Search: Search took 0.35 seconds.

  1. Replies
    1
    Views
    147

    Please help with Arrow Keys

    I don't know what is going on - I cannot get my arrow keys to affect the program to change the speed of the car.



    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;

    ...
  2. Code will not work to change speed with the up and down arrow keys

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;


    @SuppressWarnings("serial")
    public class RacingCar extends JFrame {

    public RacingCar() {
    add(new CarImage());
Results 1 to 2 of 3