Request : make CaretComponent width customisable


The caret width is hardcoded to 2 :

void CaretComponent::setCaretPosition (const Rectangle<int>& characterArea)
    startTimer (380);
    setVisible (shouldBeShown());
    setBounds (characterArea.withWidth (2));

But it is waaaaaay much more sexy with 1 !
(perhaps it can also be useful to make it thicker, terminal-like)

Edit : oh, it’s a virtual method actually "You can override this method to customise its size."


I’d still like, for simplicity, a method in CaretComponent to set the caret width.