/**
*Text generated by Simple GUI Extension for BlueJ
*Update by Jeff Borland
*
*
**/
import javax.swing.UIManager.LookAndFeelInfo;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;
import javax.swing.border.Border;
import java.awt.image.*;
import java.util.Scanner;
import javax.swing.*;
/**
*Description of project goes here
*Author
*
*
**/
public class HWJ10_Text extends BorlandBase {
int textX=30;
int textY=200;
Color textColor=Color.red;
int textSpeed=3;
//Constructor
public void initialize(){
setWidth(500);
setHeight(400);
setScreenLayout(null);
setBackgroundColor(new Color(33,192,192));
//Below is for animation
setAnimation(true);
setDelay(50);
//adding components to contentPane panel
}
//If you would like something painted when program opens
public void paintScreen(Graphics g)
{
}
//The method below will get called every frame.
//its parameter g is the temporary graphics layer
public void update(Graphics g)
{
g.setColor(textColor);
g.drawString("Lara is the best", textX,textY);
}
public static void main(String[] args){
try{ BorlandBase.main((BorlandBase)(new Object() { }.getClass().getEnclosingClass().newInstance())); }
catch (Exception e){e.printStackTrace();}
}
}