in my screen , i want to create/add button with an icon and under this icon i want to write the title of this button
Create a custom Field
.
For instance, here is an idea of what to do. Your bitmap could alreay contain a label, or to have a String
label freely "assignable" to this button you can extend that example (by adding the code to draw the label in paint(Graphics graphics)
, check the API of Graphics
- it is possible to write a text on it).