Skip to content

Instantly share code, notes, and snippets.

@soulfly
Created November 27, 2012 10:15
Show Gist options
  • Save soulfly/4153469 to your computer and use it in GitHub Desktop.
Save soulfly/4153469 to your computer and use it in GitHub Desktop.
BlackBerry 5,6,7 Messages sample: Review the notifications
LabelField pushressievedLabel = new LabelField("Message ressieved on:") {
public void paint(Graphics g) {
g.setColor(0xffffff);
super.paint(g);
}
};
pushressievedLabel.setPadding(5, 5, 0, 5);
pushressievedLabel.setFont(pushressievedLabel.getFont().derive(Font.BOLD));
add(pushressievedLabel);
// creating time of message
LabelField pustTimeLabel = new LabelField(pNO.getCreationTime()) {
public void paint(Graphics g) {
g.setColor(0xffffff);
super.paint(g);
}
};
pustTimeLabel.setPadding(5, 5, 0, 5);
add(pustTimeLabel);
// text of message
LabelField pushTextLabel = new LabelField("Message text:") {
public void paint(Graphics g) {
g.setColor(0xffffff);
super.paint(g);8
}
};
pushTextLabel.setPadding(5, 5, 0, 5);
pushTextLabel.setFont(pushTextLabel.getFont().derive(Font.BOLD));
add(pushTextLabel);
LabelField pusDescriptionLabel = new LabelField(pNO.getDescription()) {
public void paint(Graphics g) {
g.setColor(0xffffff);
super.paint(g);
}
};
pusDescriptionLabel.setPadding(5, 5, 0, 5);
add(pusDescriptionLabel);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment