Skip to content

Commit

Permalink
Changed FileTransferDialog from JDialog to JFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Ekerot committed May 15, 2012
1 parent e0ec1bf commit e69ee23
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ChatServer/src/clientgui/FileTransferDialog.java
Expand Up @@ -6,9 +6,8 @@
import java.awt.event.ActionEvent; import java.awt.event.ActionEvent;
import java.awt.event.ActionListener; import java.awt.event.ActionListener;


import javax.swing.BoxLayout;
import javax.swing.JButton; import javax.swing.JButton;
import javax.swing.JDialog; import javax.swing.JFrame;
import javax.swing.JLabel; import javax.swing.JLabel;
import javax.swing.JPanel; import javax.swing.JPanel;
import javax.swing.JProgressBar; import javax.swing.JProgressBar;
Expand All @@ -18,7 +17,7 @@
import client.Client; import client.Client;
import client.FileReceiverThread; import client.FileReceiverThread;


public class FileTransferDialog extends JDialog { public class FileTransferDialog extends JFrame {


private JLabel text; private JLabel text;
private JButton accept; private JButton accept;
Expand All @@ -41,6 +40,8 @@ public FileTransferDialog(Client client, String from, String filename, long size
} }


private void initDialog() { private void initDialog() {
setTitle("File transfer from " + from);

accept = new JButton("Accept"); accept = new JButton("Accept");
accept.addActionListener(new ActionListener() { accept.addActionListener(new ActionListener() {
@Override @Override
Expand Down

0 comments on commit e69ee23

Please sign in to comment.