Java Tutorial

 
 
 
 
import java.awt.*;
import java.applet.*;

public class DynamicString extends Applet
{
        String str;
        public void init()
        {
            str=getParameter(\"string\");
            if (str==null)
            {
                str=\"Java\";
            }
            str=\"Hello\" + str;
        }

        public void paint(Graphics g)
            {
                  g.drawString(str,10,100);
            }
};

    Related Post:
  1. An applet program to display Horizontal Color Bar

  2. Program to convert the given temperature in faherenhiet to celsius using the following conversion formula C= F- 32/1.8

  3. Program for calculating area of a circle on server side,when a client sends request along with given radius and then displaying result on client side

  4. Simple Applet which will show life cycle of an Applet

  5. Develop a RMI based application for addition of two complex numbers

  6. An applet program to display Vertical Color Bar

  7. Program to show an example of using a Static Nested Class outside the Top-Level Class

  8. Program of creating a file using text fields in windows

  9. An applet program to draw concentric circle in center of the canvas

  10. Program sets up a String variable containing a paragraph of text of your choice. Extract the words from the text and sort them into alphabetical order

  11. Program to show an example of extraction of characters from a StringBuffer objects

  12. An applet program to perform selection sort

  13. Program to show the use of Labeled Continue Statement

  14. Program using Switch case to compute the net amount to be paid by a customer

  15. Encrypt the text that you want to send on the client side. The server side decrypts it after receiving. Append server time after each word in the sent

  16. Program to show the use of Increment and Decrement Operators

  17. Program which simulate the dictionary in java

  18. Corba program to encrypt the text that you want to send on the client side. The server side decrypts it after receiving. Append server time.

  19. An applet program to add two numbers where data is entered in TextField

  20. Program to show the use of some Math Methods

 
 
Didn't find what you were looking for? Find more on An applet program that creates string dynamically and displays it