The problem with the background color, I can not understand where is the error?

package Udavchik.main;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.Timer;

import Udavchik.display.Display;

public class Main {

public static void main(String[] args) {

Display.create(800, 700, "U", 0xffff0000);
//the background color remains neizmennym
Timer t = new Timer(1000 / 60, new AbstractAction() {

public void actionPerformed(ActionEvent e) {
Display.clear();
Display.render();
Display.swapBuffers();
}
});

t.setRepeats(true);
t.start();

}
}
June 14th 19 at 18:25
0 answer

Find more questions by tags Java