import java.awt.*; public class ScrollText { private Dimension position; private int x=10,y=10; private int totalLine=1; private String text[]; private Graphics g; private Font font; private Color back=Color.black,fore=Color.white; private Rectangle r; public ScrollText() { totalLine = 1; } public ScrollText(Graphics gra) { g = gra; r = g.getClipBounds(); } public void setLines(int L) { totalLine = L; text = new String[totalLine]; } public int getLines() { return totalLine; } public void show() { g.setColor(fore); for(int i=0,a,b; i