if(e.getSource() == btnNxt). Use "==" here instead of "=" otherwise it won't work.

it should be if(e.getSource() == btnNxt)
{
Car mycar = new Car() //This is the new window that you want to...