comparison src/name/blackcap/clipman/Misc.kt @ 41:33fbe3a78d84

Got the settings stuff compiling (untested).
author David Barts <n5jrn@me.com>
date Sat, 08 Feb 2020 22:10:01 -0700
parents 0c6c18a733b7
children 19d9da731c43
comparison
equal deleted inserted replaced
40:c803a2c89ea0 41:33fbe3a78d84
3 */ 3 */
4 package name.blackcap.clipman 4 package name.blackcap.clipman
5 5
6 import java.awt.Dimension 6 import java.awt.Dimension
7 import java.awt.Toolkit 7 import java.awt.Toolkit
8 import java.nio.charset.Charset
8 import javax.swing.* 9 import javax.swing.*
9 import javax.swing.text.JTextComponent 10 import javax.swing.text.JTextComponent
10 11
11 /** 12 /**
12 * Name of the character set (encoding) we preferentially use for many 13 * Name of the character set (encoding) we preferentially use for many
13 * things. 14 * things.
14 */ 15 */
15 val CHARSET_NAME = "UTF-8" 16 val CHARSET_NAME = "UTF-8"
17 val CHARSET = Charset.forName(CHARSET_NAME)
16 18
17 /** 19 /**
18 * Allows a val to have lateinit functionality. It is an error to attempt 20 * Allows a val to have lateinit functionality. It is an error to attempt
19 * to retrieve this object's value unless it has been set, and it is an 21 * to retrieve this object's value unless it has been set, and it is an
20 * error to attempt to set the value of an already-set object. 22 * error to attempt to set the value of an already-set object.