]> source.dussan.org Git - tigervnc.git/commitdiff
improve the look & functionality of the clipboard dialog
authorBrian Hinz <bphinz@users.sourceforge.net>
Thu, 30 Aug 2012 01:39:33 +0000 (01:39 +0000)
committerBrian Hinz <bphinz@users.sourceforge.net>
Thu, 30 Aug 2012 01:39:33 +0000 (01:39 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4984 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/com/tigervnc/vncviewer/ClipboardDialog.java

index 8edf842b600dd9ba998573d6eae407cf30aec6f0..69fc7114e3b6c06d0273a0eb349b085a3dba8b3f 100644 (file)
@@ -24,6 +24,7 @@ import java.awt.event.*;
 import java.awt.datatransfer.Clipboard;
 import java.awt.datatransfer.StringSelection;
 import javax.swing.*;
+import javax.swing.border.*;
 import com.tigervnc.rfb.LogWriter;
 
 class ClipboardDialog extends Dialog implements ActionListener {
@@ -32,8 +33,14 @@ class ClipboardDialog extends Dialog implements ActionListener {
     super(false);
     cc = cc_;
     setTitle("VNC clipboard");
+    JPanel pt = new JPanel();
     textArea = new JTextArea(5,50);
-    getContentPane().add("Center", textArea);
+    textArea.setBorder(BorderFactory.createLineBorder(Color.gray));
+    textArea.setLineWrap(true);
+    textArea.setWrapStyleWord(true);
+    JScrollPane sp = new JScrollPane(textArea);
+    pt.add(sp, BorderLayout.CENTER);
+    getContentPane().add("North", pt);
 
     JPanel pb = new JPanel();
     clearButton = new JButton("Clear");