Keyboard LAF ...trigger a redraw...
-
So I have a local LAF on my keybed display for each voice that the key is setup to play it draws a bar across the key:
however... when I apply changes (using a slider to change the range being included/excluded) the keybed display does not update, and I have to roll the mouse over each key to get them to display the correct "bars"
So before I go reinvent the wheel using a panel for this, ugly nasty, ugly....anyone know of a way to get the keybed local LAF to update and repaint itself.
keybed.changed(); isnt it.
-
Does this work?
-
Either that or if you've attached a broadcaster to it you can use
bc.addComponentRefreshListener("MyTile", "repaint")
but it should come down to the same effect. -
@d-healey said in Keyboard LAF ...trigger a redraw...:
Does this work?
yep - that worked like a charm - thank you both.