04-24-2010 06:59 AM
Hi,
I have this code from Java
gc.drawOval(10,10,50,50);
gc.drawLine(10 + 25, 10+25, 10+25, 10);
which will draw Oval and draw a straight line in the oval. The original code is using canvas. I don't need to do anything fancy, just a screen that draw this oval and a line inside it. I have no clue on how to achieve this on bb.
How should i translate this into BlackBerry?
Solved! Go to Solution.
04-24-2010 07:45 AM - edited 04-24-2010 07:46 AM
drawOval(10,10,50,50)->drawArc(10,10,50,50,0,360).
drawLine stays the same.
Simple as that, works for MIDLets and RIMlets.
04-24-2010 07:50 AM
Thank you rcmaniac25!
What library should I import? Is there any working example that I can refer to?
04-24-2010 02:52 PM
You can use either "javax.microedition.lcdui.Graphics" or "net.rim.device.api.ui.Graphics", both will work. If that was all you needed then mark the thread as solved.