Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed FileTransferDialog from JDialog to JFrame

  • Loading branch information...
commit e69ee2313778ecf99a6ab65c7013898b5947e27f 1 parent e0ec1bf
Carl Ekerot authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 ChatServer/src/clientgui/FileTransferDialog.java
View
7 ChatServer/src/clientgui/FileTransferDialog.java
@@ -6,9 +6,8 @@
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
-import javax.swing.BoxLayout;
import javax.swing.JButton;
-import javax.swing.JDialog;
+import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JProgressBar;
@@ -18,7 +17,7 @@
import client.Client;
import client.FileReceiverThread;
-public class FileTransferDialog extends JDialog {
+public class FileTransferDialog extends JFrame {
private JLabel text;
private JButton accept;
@@ -41,6 +40,8 @@ public FileTransferDialog(Client client, String from, String filename, long size
}
private void initDialog() {
+ setTitle("File transfer from " + from);
+
accept = new JButton("Accept");
accept.addActionListener(new ActionListener() {
@Override
Please sign in to comment.
Something went wrong with that request. Please try again.