Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
import java.awt.*;
import java.applet.*;
public class AppletTest extends Applet{

    String str;
    int x,y;
    public void init(){
        x=y=40;
        str="HelloText";
    }
    public void paint (Graphics g){
    Font f = new Font("Segoe UI",Font.BOLD,25);
        g.setFont(f);
        g.setColor(Color.blue);
        g.drawString(str,x,y);
    }
}


this file is UTF 8 so how can I javac this file?

thanks in advance
Posted
Updated 27-Mar-12 22:53pm
v2
Comments
Richard MacCutchan 28-Mar-12 4:53am    
What happens when you try?
TorstenH. 28-Mar-12 7:28am    
??? what is the problem?

Anyway, please use an IDE like Eclipse or Netbeans. Both are free and there is no excuse for not using one of them. You still need to write the code yourself - they just highlight failures and make the work productive.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900