I am trying to make a board game in Java using AWT. I want to run this game in Full screen exclusive mode. but the paint() method is not working.
Problem is i want to load and draw an image it on full screen frame, but the traditional paint() method won’t allow me to do that.
This example below will get you full-screen on your default screen device with an
java.awt.Frame.You can use the above example with swing aswell (just be sure to implement the
paintComponent(Graphics g)method instead ofpaint).