london-G Light Poster

We have a site which unfortuntely is not responsive.

I was asked to make it responsive, however I am faced with a few options

  1. Develop/design a new site espacially for mobile use and redirect it when needed
  2. It seems that I can use CSS to make the website appear diffrently when on a mobile phone

What would you think is the best approach for this?

london-G Light Poster

Hello,

I havr created a program in which there are two classes. One ship, and shooter. However it is not working.

Any idea?

[CODE]
package shooter;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.event.KeyEvent;

public class Ship implements Runnable {

int x, y, xDirection;

boolean shoot = false;

boolean ready = false;
int bullX;
int bullY;
Rectangle bullet;

public Ship(){
    x = 175;
    y = 275;
}

public void draw(Graphics g){
    g.setColor(Color.BLUE);
    g.fillRect(x, y, 40, 10);
    g.fillRect(x+18, y-7, 4, 7);
    if (shoot)
    {
        g.setColor(Color.BLACK);
        g.fillRect(bullet.x, bullet.height, bullet.width, bullet.height);
    }
}

public void move(){
    x += xDirection;
    if(x <= 0)
        x = 0;
    if(x >= 360)
        x = 360;
}

public void setXDirection(int xdir){
    xDirection = xdir;
}

public void keyPressed(KeyEvent e){
    int keyCode = e.getKeyCode();
    if(keyCode == e.VK_LEFT){
        setXDirection(-1);
    }
    if(keyCode == e.VK_RIGHT){
        setXDirection(1);
    }

     if(keyCode == e.VK_SPACE){
      if(bullet == null)
          ready = true;
      if (ready)

            bullY = y-7;
            bullX = x + 18;
            bullet = new Rectangle(bullX, bullY, 3 , 5); // 3 and 5 width and height
            shoot = true;

    }
}

public void keyReleased(KeyEvent e){
    int keyCode = e.getKeyCode();
    if(keyCode == e.VK_LEFT){
        setXDirection(0);
    }
    if(keyCode == e.VK_RIGHT){
        setXDirection(0);
    }
    if(keyCode == e.VK_SPACE){

        ready = false;
        if(bullet.y <=-5)
            bullet = new Rectangle(0,0,0,0);
        shoot = false;

    }
}

public void shoot(){
    if(shoot)
    {
        bullet.y--;

    }   
}

@Override
public void run(){
    try{
        while(true){
            move();
            Thread.sleep(5);
        }
    }catch(Exception e){System.err.println(e.getMessage());}
}

}
[/CODE]

My second class

[CODE]
package shooter;

import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import javax.swing.JFrame;

public class Shooter ...