how could i create a custom ButtonField with no border in Blackberry... any help will be appreciated
Asked
Active
Viewed 946 times
4 Answers
3
bingo, just add the applyTheme() method
class BitmapButtonField extends ButtonField {
protected void applyTheme()
{
}
}
Arhimed & Rafael, thanks for you help!

Jorgesys
- 124,308
- 23
- 334
- 268
2
Use this tutorial to create your own custom field.
Control the appearance of your field in paint() method.
2
Yes, this is possible by extending Field
. You just need to create 2 images (one for a focused state and one for an unfocused state). Just don't draw the border on those images.
A sample implementation can be found here.

Vit Khudenko
- 28,288
- 10
- 63
- 91
1
As Arhimed said, you should extend Field
. This will give you the maximum amount of customization over how the button looks.
Here's an example of a customizable button I've created: https://github.com/HeshamMegid/BlackBerry-Custom-Controls
You could use it as it is or modify the code further to suit your needs.

Hesham
- 5,294
- 3
- 34
- 48