这是我的错误代码:
Exception in thread "main" :
TextAttributes cannot be resolved to a type
TextAttributes cannot be resolved to a type
Console cannot be resolved to a type
at Font.main(Font.java:8)
import java.awt.Color;
import enigma.console.*;
import enigma.core.Enigma;
public class Main
{
public static void main(String[] args)
{
TextAttributes attrs = new TextAttributes(Color.BLUE, Color.WHITE);
s_console.setTextAttributes(attrs);
System.out.println("Hello World!");
}
private static final Console s_console;
static
{
s_console = Enigma.getConsole("Hellow World!");
}
}