hello,
first, how can i change the action that is executed when the close-button of the frame is being hit?
second, is there a way to create a Swing frame with no heading, insert my canvas in there and add the buttons that are normally in the heading of the window into the GUI of my program? can someone give me an example?
thank in advance,
Fellkneul
- Not sure there was a way, maybee using the Display class
2 yes, frame.setUndecorated(true)
3 yes, you need to call the events on the frame from withing the game, but that should work.