click here

import java.awt.*;
import java.applet.*;
public class TestParamFnt extends Applet
{
	Font f = new Font("Courier New",Font.BOLD,26);
	String str;
	public void init()
  	{
		str = getParameter("string");
		if (str==null)
			str = "Null value returned";
  	}
  	public void paint(Graphics g)
  	{
		g.setFont(f);
		g.setColor(Color.red);
		g.drawString (str,10,50);
  	}
}

Click here to go back.

Our aim is to provide information to the knowledge seekers. 


comments powered by Disqus
click here






Natural Natural Natural Footer1