diff options
author | Brian Hinz <bphinz@users.sourceforge.net> | 2012-08-30 01:39:33 +0000 |
---|---|---|
committer | Brian Hinz <bphinz@users.sourceforge.net> | 2012-08-30 01:39:33 +0000 |
commit | d6d6187c7c748f4fb36f7b4f7b5894317876915f (patch) | |
tree | bded3899e1d5b7680074c7a7a569ee6eba243226 /java | |
parent | 314f74d5848155f7c2d7c64544ff76c330d61f37 (diff) | |
download | tigervnc-d6d6187c7c748f4fb36f7b4f7b5894317876915f.tar.gz tigervnc-d6d6187c7c748f4fb36f7b4f7b5894317876915f.zip |
improve the look & functionality of the clipboard dialog
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4984 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java')
-rw-r--r-- | java/com/tigervnc/vncviewer/ClipboardDialog.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/java/com/tigervnc/vncviewer/ClipboardDialog.java b/java/com/tigervnc/vncviewer/ClipboardDialog.java index 8edf842b..69fc7114 100644 --- a/java/com/tigervnc/vncviewer/ClipboardDialog.java +++ b/java/com/tigervnc/vncviewer/ClipboardDialog.java @@ -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"); |