Brother, my sister taught me.

xiaoxiao2021-03-06  77

/ ** ROLLS color Text across the screen * / import java.awt. *;

Class myframe extends frame {static int x = 0, y = 120; static int = 0; static int horizscroll = 1;

FONT FB = New Font ("Timeesroman", Font.Bold, 36); String MSG [] = {"Java", "Portable", "Secure", "Easy"}; color color color [] = {color.blue, Color.yellow, color.green, color.red};

Public Void Paint (Graphics G) {G.SetFont (FB); G.SetColor (color [i]); g.drawstring (MSG [i], x, y);}

Static Public Void Main (String S []) THROWS Exception {MyFrame MF = New MyFrame (); Mf.setsize (200, 200); int Pixelsperline = 200, Totallines = 4; mf.setvisible (TRUE); for (int J = 0 J

转载请注明原文地址:https://www.9cbs.com/read-94489.html

New Post(0)