aboutsummaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/vncviewer/ClipboardDialog.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix for issue 1215Brian P. Hinz2021-03-111-13/+14
|
* Whitespace cleanupBrian P. Hinz2016-12-101-7/+6
|
* Make all viewer parameters static. Viewer instances are isolated from each ↵Brian P. Hinz2016-08-271-69/+135
| | | | other by spawning a completely new process for each viewer, rather than simply starting a new thread. All dialogs were redesigned to better match the look of the native viewer, and also to be more tolerant of sizing differences between platforms.
* Various fixes to Java viewer UIBrian P. Hinz2016-03-171-4/+2
| | | | | | | | Significant improvements to the Java viewer UI to make it more robust and tolerant of new tabs, fonts, etc. TextFields and editable ComboBoxes that are specific to integer values now only accept integer input.
* More Java viewer clipboard handler fixesBrian P. Hinz2014-11-191-4/+9
| | | | | | | | | * Override TransferHandler.exportToClipboard method to ensure that serverCutText updates get sent to the system clipboard. This wasn't always happening when relying on the super class' paste() method alone. * Removed some unnecessary setText() statements and one check for whether sending client cut text is enabled.
* Major rework of Java viewer clipboard handlingBrian P. Hinz2014-11-191-40/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Clipboard dialog UI significantly improved. - Fixes issue where scrollpane size did not track dialog size - Removed unnecessary JPanel - Adjusted default size of dialog to something more appropriate. * Clipboard dialog is now a pure clipboard viewer - Window title now reflects thati fact. - Eliminates problems with concurrency and updating contents. - Clipboard dialog now updates contents if a clipbard transfer occurs and the dialog is visible. - Prevents possible loop condition when text in the scrollpane is selected (ie: selection buffer triggers clipboard updates). * Custom TransferHandler implemented. - Limits the size of outbound clipboard transfers. - On Windows and Linux this implementation does not appear to provoke huge memory spike issue when the transferable is accessed. Unfortunately, the OSX implemenation still suffers from this problem, but that is a JRE issue. For the time being, this at least minimizes the problem. Additionaly, if an OutOfMemoryError is thrown, it's now caught and an error is logged rather than the viewer bailing out. - Vastly simpler implementation - the copy/paste methods inherent in the JTextArea are utilized for interfacing with the system clipboard. This eliminates the need for checking permissions, as well as streamlining the code quite a bit.
* r5138 did not completely resolve the problem with clipboard data consuming ↵Brian Hinz2014-01-111-0/+5
| | | | | | too much heap space. Large amounts of clipboard data could still cause the heap size to grow to huge sizes. This patch tries to address the problem by opening a Reader to the underlying IO stream and then reading only up to MaxCutText characters. The garbage collector is invoked manually rather than waiting for the JVM to do it in order to prevent the heap size from growing in between JVM invoked garbage collections. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5155 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Fixes a condition where too much data on the local clipboard causes the ↵Brian Hinz2013-11-231-15/+9
| | | | | | client to exceed the max heap size and exit. Since the server will, by default, discard clipboard transfers greater than 256KB anyway, a parameter was added which sets the default max clipboard size that the client will hold to 256KB also. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5138 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Whitespace cleanup onlyBrian Hinz2013-05-121-5/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5097 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Forces all dialogs except for the clipboard to be modal. Fixes cases where ↵Brian Hinz2012-09-011-2/+0
| | | | | | dialogs are not brought to the front while in fullscreen mode. Corrects a few corner cases where viewer did not exit properly. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4988 3789f03b-4d11-0410-bbf8-ca57d06f2519
* improve the look & functionality of the clipboard dialogBrian Hinz2012-08-301-1/+8
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4984 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Update address of FSF and copyright notices to assign proper credit.Brian Hinz2012-04-111-1/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4888 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Move Java source up one level and allow Java viewer to be built as a ↵DRC2011-10-071-0/+107
standalone project (per community request) git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4715 3789f03b-4d11-0410-bbf8-ca57d06f2519