C
Chris Smith
Whats said:Toolkit.isFrameStateSupported(Frame.MAXIMIZED_BOTH);
this gives me a compile eror saying nonstatic method cannot be reference
from a static ontext blah blah
Yeah, I was assuming at least some fundamental knowledge of Java.
isFrameStateSupported is an instance method, not a static method, and
Toolkit instances are obtained from a static factory called
getDefaultToolkit(). So the actual code is:
Toolkit.getDefaultToolkit()
.isFrameStateSupported(Frame.MAXIMIZED_BOTH)
There's a piece of conventional wisdom that says that if you try to do
complex stuff like GUIs and you don't know the basics of the language,
you are asking for trouble. I might suggest you spend some time
learning basic Java with a good book, such as Bruce Eckel's TIJ book.
--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation