Java Game Development - 5 - Creating a Full Screen Display
Top Comments
All Comments (372)
-
Exception in thread "main" java.lang.Error: Unresolved compilation problems: The method setBackground(Color) is undefined for the type bucky The method setForeground(Color) is undefined for the type bucky The method setFont(Font) is undefined for the type bucky The method setFullScreen(DisplayMode, JFrame) in the type Screen is not applicable for the arguments (DisplayMode, bucky) at bucky.run(bucky.java:13) at bucky.main(bucky.java:9)
WTF!!!!!!!
-
java.lang.NullPointerException gooddammmnitt!!!!
-
public void paint(Graphics g) { g.clearRect(0,0,getWidth(),get
Height()); g.drawString("This is awesom", 200, 200); } -
I'm using latest JDK and works fine for me. Bare in mind 'void paint' is case sensitive. Must be lower case.
-
Mine doesnt turn pink. It turns black
-
@crisisminers the complete fix = setFont (new Font("Arial", font.PLAIN, 24));
-
bucky i am not getting the pink screen ...what wrong with that..????
-
its not turning pink
-
People, don't forget to extend the bucky class with JFrame
public class bucky extends JFrame
Mine is not turning pink for some reason. Help!
rambolikesCOD 3 months ago in playlist Java Game Development Tutorials 33
g.clearRect(0, 0, getWidth(), getHeight());
sinthorias 1 month ago in playlist Java Game Development Tutorials 5