Show note on the keyboard component

I want to show my note on the keyboard
like when press C4 it show C4 and E4 on the keyboard
but I do not need E4 note send back to the program
PLS help Thank you

Hmmm, could you post some code to give us a better understanding?

I read the keyboard note when the user press it, then I harmonize it. now I want to show the harmonize note on the keyboard
E3 on the keyboard will paint when C4 press

You can make you’re own custom class inheriting from MidiKeyboardComponent then override drawWhiteNote() and drawBlackNote() to draw each note any way you like.

Thank you for your reply but I am not very familiar with this two function
Can you give me examples of this two when note on and note off please?
Thank you so much