Prime ideal in $k[x,y]$, which is not maximal, is generated by one element. ($k$ is a field)

Why it is true? I know that dimension of $k[x,y]$ is equal 2 and also that $k[x,y]$ is UFD. I have problems to connect these two facts. I would like any hint.