connection button not working
===

Whenever I click the event button the program becomes unresponsive Is there something wrong with my code?
` 	void btnConnectActionPerformed(java.awt.event.ActionEvent evt){
		
		try{
			btnSend.setEnabled(true);
			ServerSocket serverSocket = new ServerSocket(4446);
			Scanner serverType = new Scanner(chatTxt.getText());
			Socket clientSocket = serverSocket.accept();
			InputStreamReader isr = new InputStreamReader(clientSocket.getInputStream());
			BufferedReader br = new BufferedReader(isr);
			PrintStream ps = new PrintStream(clientSocket.getOutputStream());


		}catch (Exception ex){ex.printStackTrace();}
		} `