Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 08:23, 21 November 2007.

How to Draw a circle in Java ME

From Forum Nokia Wiki


Following is the paint method of a canvas class which helps to draw a circle in Java ME

protected void paint(Graphics graphics)
  {
    graphics.setColor(255,255,255);
    graphics.fillRect(0, 0, getWidth(), getHeight());
    graphics.setColor(255,0,0);
    graphics.drawArc(0, 0, getWidth(), getHeight(), 0, 360); 
 }
Related Discussions
Thread Thread Starter Forum Replies Last Post
Smart mbm microsoft2 Symbian User Interface 1 2006-04-19 14:42
components problem nicholasgaye Symbian User Interface 4 2005-04-11 12:04
Really simple drawing problem NavaronSoftware Mobile Java Media (Graphics & Sounds) 1 2004-01-16 09:59
how to stretch a Bitmap? anurag_iit2k Symbian Media (Graphics & Sounds) 4 2007-10-22 11:40
Draw and save image shyam9 General Symbian C++ 10 2008-04-08 11:31
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZjavaQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX