Serial problems between Arduino and Processing...

here is your code with print statements added to display the pot value when a newline is received. I have commented out the print of the int value for testing so you should only see the incoming string

You may also want to increase the delay in the Arduino sketch to 100ms so it doesn't flood with print statements

import processing.serial.*;

Serial port;  
String pot = "";      // Data received from the serial port
int val;
int NEWLINE = 10;

void setup()
{
  size(200, 200);
  String portName = Serial.list()[0];
  port = new Serial(this, portName, 9600);
}

void draw()
{
  if ( port.available() > 0) {  // If data is available,
   serialEvent(port.read());
  }

//  print(val);
//  print("  /  ");
  
 }

void serialEvent(int serial)
{

 if(serial != NEWLINE){

   pot += char(serial);

 } else {
  print("got ");
  print(pot);
  pot = pot.substring(0, pot.length()-1);
  val = Integer.parseInt(pot);
  print("val = ");
  println(val);
  pot = "";
 }
}