Mercurial > cgi-bin > hgweb.cgi > ClipMan
comparison src/name/blackcap/clipman/PasteboardView.kt @ 31:0c6c18a733b7
Compiles, new menu still a mess.
author | David Barts <n5jrn@me.com> |
---|---|
date | Thu, 30 Jan 2020 16:01:51 -0800 |
parents | c4f53bc01732 |
children | 19d9da731c43 |
comparison
equal
deleted
inserted
replaced
30:0e88c6bed11e | 31:0c6c18a733b7 |
---|---|
16 val MARGIN_BORDER = 3 | 16 val MARGIN_BORDER = 3 |
17 | 17 |
18 /** | 18 /** |
19 * What we use to display the text that is or was in the clipboard. | 19 * What we use to display the text that is or was in the clipboard. |
20 */ | 20 */ |
21 class ClipText: JTextPane() { | 21 class ClipText(val basedOn: PasteboardItem): JTextPane() { |
22 private val normalBorder = BorderFactory.createCompoundBorder( | 22 private val normalBorder = BorderFactory.createCompoundBorder( |
23 BorderFactory.createLineBorder(Color.GRAY, INNER_BORDER), | 23 BorderFactory.createLineBorder(Color.GRAY, INNER_BORDER), |
24 BorderFactory.createEmptyBorder(MARGIN_BORDER, MARGIN_BORDER, MARGIN_BORDER, MARGIN_BORDER)) | 24 BorderFactory.createEmptyBorder(MARGIN_BORDER, MARGIN_BORDER, MARGIN_BORDER, MARGIN_BORDER)) |
25 private val selectedBorder = BorderFactory.createCompoundBorder( | 25 private val selectedBorder = BorderFactory.createCompoundBorder( |
26 BorderFactory.createLineBorder(Color.BLACK, INNER_BORDER+1), | 26 BorderFactory.createLineBorder(Color.BLACK, INNER_BORDER+1), |