FontsDisplayed - g.drawString"Arial plain 30pt...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//FontsDisplayed Applet / import java.awt.*; import javax.swing.JApplet; i public class FontsDisplayed extends JApplet { public void paint(Graphics g) { super.paint(g); g.setFont(new Font("Courier", Font.BOLD, 24)); g.drawString("Courier bold 24pt font", 30, 36); g.setFont(new Font("Arial", Font.PLAIN, 30));
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: g.drawString("Arial plain 30pt font", 30, 70); g.setFont(new Font("Dialog", Font.BOLD + Font.ITALIC, 36)); g.drawString("Dialog italic bold 36pt font", 30, 110); g.setFont(new Font("Serif", Font.ITALIC, 30)); g.drawString("Serif italic 42pt font", 30, 156); } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online