Hello, I am writing a programming editor, and now i want to let the program start up fullscreen. I think of getScreenSize() or something, but i actually don't really know. Can anybody give me some hints?
thanks keffie91
Printable View
Hello, I am writing a programming editor, and now i want to let the program start up fullscreen. I think of getScreenSize() or something, but i actually don't really know. Can anybody give me some hints?
thanks keffie91
Look at the API doc for JFrame. There is a method that will set it to the max state using the MAXIMIZED_BOTH arg.
setExtendedState(JFrame.MAXIMIZED_BOTH);
I have added this small piece of code and it works perfect
for me.
Thanks
keffie91