I travelled from Italy into Yugoslavia in 1988 by train and I wouldn't exactly describe it as a pleasant experience - train stopped in the middle of nowhere and was surrounded by soldiers and everyone had to endure a very thorough check of our travel documents. Travelling from Yugoslavia into Hungary on the same trip I don't think the train even stopped.