package algus; import java.awt.*; public class Raamike5 { void proov(){ } public static void main(String[] args) throws Exception{ int punane=100, roheline=100, sinine=20; Frame f=new Frame("Esimene"); f.setSize(200, 200); f.setBackground(new Color(punane, roheline, sinine)); f.setVisible(true); Thread.sleep(1000); while(sinine<255){ f.setBackground(new Color(punane, roheline, sinine)); Thread.sleep(50); sinine=sinine+4; } } }