close server when clicking on back button (#124)
All checks were successful
flavien's git/Projet_JAVA_P2P_STRI2A/pipeline/head This commit looks good

close server when clicking on back button

Co-authored-by: js <auge1@hotmail.fr>
This commit is contained in:
Louis Royer 2020-04-13 14:26:17 +02:00
parent 1335bbf8ad
commit 4e7a91e65d

View File

@ -134,6 +134,8 @@ public class DownloadSelectionGen extends javax.swing.JPanel {
/** Actions to initiate when button "Back" is initiate */
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
smudp.setStop();
smtcp.setStop();
ArgumentsGen a = new ArgumentsGen();
JFrame topFrame = (JFrame) SwingUtilities.getWindowAncestor(this);
topFrame.add(a);