how to use the set full screen mode ?

hai...i' a newbie ..i hav one question ...how to use the set full screen mode for my application..

i found.

public void setfullscreenmode (boolean mode)

but when try in my application it error and other

canvas.setfullscreenmode(true);

actually i don't know where i should put this code

[340 byte] By [NyyDNyDa] at [2007-11-26 20:01:47]
# 1
http://java.sun.com/docs/books/tutorial/extra/fullscreen/index.html
ChuckBinga at 2007-7-9 23:00:35 > top of Java-index,Java Essentials,Java Programming...
# 2
please add some details........
SUSHANT_Ja at 2007-7-9 23:00:35 > top of Java-index,Java Essentials,Java Programming...
# 3

i also found the coding it use like

setFullScreenMode (true);

but when i apply it ..it error because cannot resolve the symbol.

my question is which one i should use; declare the

public void setFullScreenMode (boolean mode);

first or use

setFullScreenMode (true) ;

or other way ..what i need to do to use setFullScreenMode

NyyDNyDa at 2007-7-9 23:00:35 > top of Java-index,Java Essentials,Java Programming...
# 4
I suggest you read the tutorial and study all the example programs, again(?).Full screen mode might be a bit too much for a beginner to understand,especially if you can't tell the difference between needing to call a method,and needing to define a method.
DrLaszloJamfa at 2007-7-9 23:00:35 > top of Java-index,Java Essentials,Java Programming...
# 5
Maybe you only need maximized ode for JFrame? In that case i can help you with:frame.setExtendedState(frame.getExtendedState()|JFrame.MAXIMIZED_BOTH);
Icycoola at 2007-7-9 23:00:35 > top of Java-index,Java Essentials,Java Programming...
# 6
setFullScreenMode() -> use for J2SE or J2ME?for me it is a J2ME question...
suparenoa at 2007-7-9 23:00:35 > top of Java-index,Java Essentials,Java Programming...