Skip to content

Tag: java

Unable to delete .mp3 file due to javaFx MediaPlayer

I am working on my Hhighschool capstone. It is a program where the user can download songs from the internet and store them in an organized manner and play them. My program must contain a feature where the user may delete a specified .mp3 file by simply pressing a button. I have tried the .dispose() method on…

Why are multiple sockets created by one client

Multiple sockets created by one client The task is to create a server-client communication with sockets. The client is the browser and it requests an html file. The server listens and accepts the connection if a request is made. I would like to create one thread/client (persisten connection), but can’t …