Writing Games for the Blackberry

As the Blackberry Storm rolls out this week, I feel like the Blackberry games market will begin to slowly take off. Here is a 6 part tutorial on writing games for the Blackberry from Toni Westbrook. It is pretty easy to follow. I have been doing some programming in JDE 4.7 beta so hopefully I can apply some of the techniques outlined here.

Bookmark and Share

Fixed Width Buttons in Blackberry Applications

I have always struggled with the buttons when developing for the Blackberry. Why? Because they usually come out looking pretty ugly. I have found a class that extends the ButtonField class to provide a way to specify fixed widths so all of your buttons can be a uniform shape. I found the details at Jonathan H. Fisher.


class FixedWidthButtonField extends ButtonField{
private int width;

FixedWidthButtonField( String label, int Width, long style){
super( label, style);
width = Width;
}

public int getPreferredWidth(){
return width;
}
}

Bookmark and Share