Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 2
Registered: ‎09-03-2008
My Device: Not Specified
Accepted Solution

How to operate a ButtonField by 8700's trackwheel

by default a CheckboxField and a RadioButtonField are checked or unchecked with the trackball of 8300+

I want to do it with the trackwheel of 8700, or use the space key to checked or unchecked

If anybody knows how to do that, plz post it..

thank u verrrrrrrry much

My code:
RadioButtonGroup rbg = new RadioButtonGroup();
for (int j = 0; j < userVector.size(); j++) {
RadioButtonField r = new RadioButtonField(
((user) userVector.elementAt(j)).name);
}
New Developer
Posts: 2
Registered: ‎09-03-2008
My Device: Not Specified

Re: How to operate a ButtonField by 8700's trackwheel

RadioButtonGroup rbg = new RadioButtonGroup(); for (int j = 0; j < userVector.size(); j++) { RadioButtonField r = new RadioButtonField( ((user) userVector.elementAt(j)).name) { protected boolean trackwheelClick(int status, int time) { this.setSelected(true); return true; } }; }