SourceForge.net Logo Home | Download | Submit | Screenshots | FAQ | SF Project Page | JUDO Help | Contact

View a Program

To run this program in JUDO, select the Program Code with your mouse, click the Edit menu of your browser and Copy. Then click in the code area of JUDO, click the Edit menu of JUDO and then Paste. Then Run the program.

Author Name:Edac Leinad
Program Name:Draw a centered String
Program Description:Hello everyone,

this program is a simple addition to my last one, getStringBounds.
The function that is new here is drawString();

use it the same way you would use JUDO's built in drawString, but there are two extra arguments at the end:

void drawString(... ...boolean centerX, boolean centerY) {

if you set centerX as true, the function will draw the String centered on the x value, same with y.

I hope you do use it! If you do, feel free, however please give credit to original author (me, Edac Leinad).

Thanks,

Edac
 
Program Type:Graphics
Program Code:

Last Modified Sun Dec 22 07:25:00 UTC 2013
Thomas Dunn

Home | Download | Submit | Screenshots | FAQ | SF Project Page | JUDO Help | Contact