@Override
	public void deinstall( JTextComponent c ) {
		// remember dot and mark (the selection) when switching theme
		c.putClientProperty( KEY_CARET_INFO, new long[] {
			getDot(),
			getMark(),
			getBlinkRate(),
			System.currentTimeMillis(),
			wasFocused ? 1 : 0,
		} );

		super.deinstall( c );
	}
Caret that can select all text on focus gained.
Also fixes Swing's double-click-and-drag behavior so that dragging after
a double-click extends selection by whole words.

@author Karl Tauber
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatCaret.java