Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Java Game Development - 5 - Creating a Full Screen Display

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
59,947
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 12, 2009

Finally we create our very first display!

Category:

Gaming

Tags:

License:

Standard YouTube License

  • likes, 11 dislikes

Link to this comment:

Share to:

Top Comments

see all

All Comments (372)

Sign In or Sign Up now to post a comment!
  • 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

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more