Total members 11609 |It is currently Tue Feb 21, 2017 3:48 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka

All times are UTC [ DST ]



  Positions X-Y parameters to text drawing methods
Thu Feb 07, 2013 8:55 pm 

Positions X-Y parameters to text drawing methods
java code
import java.awt.*;
import java.applet.Applet;

/*
* Very simple applet that illustrates parameters to text-drawing methods.
*/

public class TextXY extends Applet {

public void init() {
validate();
}

public void paint(Graphics g) {
Dimension d = size();

g.drawString("My Text at (4, 6)", 4, 6);
g.drawString("My Text at (3, 31)", 3, 31);
g.drawString("My Text at (3, height)", 3, d.height);
}
}



_________________
Please recommend / share my post if you found it helpful.


Author:
Mastermind
User avatar Posts: 2702
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : Positions X-Y parameters to text drawing methods
 Able to Copy Text from Uneditable Text Boxes(JTextfields)     -  
 Which methods is best for SEO?     -  
 Reference Parameters     -  
 Encoding parameters in URL     -  
 What Are Constructor Methods?     -  
 Static Methods and Variables     -  
 Method Parameters,,,is it by value or reference???     -  
 Send parameters using HTTP GET     -  
 Post parameters using JQuery     -  
 Function with default parameters     -  

All times are UTC [ DST ]



Topic Tags

Java Graphics






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team