import javax.swing.*;
import java.awt.*;

public class FunFont2 extends JFrame {
    private Font font = new Font("Serif", Font.BOLD, 140);
    private String string = "IBM";
    private Point point = new Point(50,150);
    private Color color = Color.white;
    private Color backColor = Color.blue;
    private int stripeThinkness = 5;
    
    public void paint(Graphics g) {
	setBackground(backColor);
	g.setFont(font);
	g.setColor(color);
	int x = point.x;
	int y = point.y;
        g.drawString(string,x,y);
	drawStripe(g);
   }

   private void drawStripe(Graphics g) {
       Dimension dim = getSize();
       int height  = dim.height;
       int width = dim.width;
       g.setColor(backColor);
       for(int h = 0; h < height; h+=(2*stripeThinkness)) {
	   g.fillRect(0,h,width,stripeThinkness);
       }
   }
       
   
   public static void main(String[] args) {
        FunFont2 f = new FunFont2();
	f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	f.setSize(350,200);
	f.setVisible(true);
    }
}	
