23.11.2017 Views

java_tutorial

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Java<br />

Example<br />

<br />

<br />

<br />

HTML applet Tag<br />

<br />

<br />

<br />

<br />

<br />

<br />

Here is the newClass.<strong>java</strong> file:<br />

import <strong>java</strong>.applet.*;<br />

import <strong>java</strong>.awt.*;<br />

public class newClass extends Applet<br />

{<br />

public void paint (Graphics gh)<br />

{<br />

g.drawString("Tutorialspoint.com", 300, 150);<br />

}<br />

}<br />

This will produce the following result:<br />

Global Attributes<br />

This tag supports all the global attributes described in - HTML Attribute Reference<br />

517

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!