Skip to content

Commit

Permalink
receiverside author name problem solved.
Browse files Browse the repository at this point in the history
  • Loading branch information
urvesh254 committed Jun 19, 2021
1 parent 3ae6b4c commit 95e83e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ public void run() {
}
}

// private BufferedOutputStream fileOut = null;
private BufferedOutputStream fileOut = null;
private Message fileSendMsg = null;

Expand Down
2 changes: 1 addition & 1 deletion com/ukpatel/layouts/MessagePanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private JPanel getFileReceivePanel() {
JPanel receivePanel = new JPanel();
receivePanel.setLayout(new BorderLayout());

JLabel authorLabel = new JLabel("Urvesh Patel");
JLabel authorLabel = new JLabel(message.getAuthor());
authorLabel.setOpaque(true);
authorLabel.setBorder(new EmptyBorder(2, 2, 0, 0));
authorLabel.setForeground(Color.WHITE);
Expand Down

0 comments on commit 95e83e4

Please sign in to comment.