Created
November 27, 2012 10:15
-
-
Save soulfly/4153469 to your computer and use it in GitHub Desktop.
BlackBerry 5,6,7 Messages sample: Review the notifications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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