aspose file tools*
The moose likes Java Micro Edition and the fly likes how to highlight a string in canvas Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "how to highlight a string in canvas" Watch "how to highlight a string in canvas" New topic
Author

how to highlight a string in canvas

mani senthil
Greenhorn

Joined: Jan 18, 2007
Posts: 17
i drawn a string on canvas. i need to highlight a word in that string. is there any possibility?. Here is the same

protected void paint(Graphics g) {
g.setColor(255, 255, 255);
g.fillRect(0, 0, getWidth(), getHeight());
g.setColor(255, 0, 0);
g.drawString("Need to highlight any word in this string", 0, 0, Graphics.TOP | Graphics.LEFT);
}
 
Consider Paul's rocket mass heater.
 
subject: how to highlight a string in canvas
 
Similar Threads
null pointer again!
Detect "dial" button pressed from J2ME program
KeyPressed event in canvas using j2me
Trying to fade out a font
Help on KeyPressed()?