Screen Shot 2019-02-13 at 9.50.58 PM.png
# tornadofx
a
Screen Shot 2019-02-13 at 9.50.58 PM.png
d
Here is the style for the error, which is just a border color.
Copy code
new_category_view__error {
    borderColor += box(
        Color.TRANSPARENT,
        Color.TRANSPARENT,
        Theme.colors.dangerColor,
        Color.TRANSPARENT
    )
}
I'm pretty happy with my design now, it slides the label up on text box focus. I think my original problem was trying to use the
field
label that it gives you instead of creating my own. I was doing that because when you have multiple fields it aligns the labels automatically based on the width of the longest label. But trying to combine field, with adding in an error below would be trciky, unless you do what you mentioned and specify the label width directly, which I was trying to avoid. The new design means I don't really have to worry about that though, so it all worked out. I would agree that it is a bit tricker to do some things, than in the web, but in general TornadoFx is quite intuitive and provides great easy to use features. I'm able to build quickly.
a
Definitely! If anything, it's just a slightly different way of thinking.
😀 1