How to make an java applet window not resizable?
I know that any class that extends the Frame class in java has the method setResizable() method, but my class extends the Applet class. What can I do to make the java applet window not resizable?
Other Answers:
I know that any class that extends the Frame class in java has the method setResizable() method, but my class extends the Applet class. What can I do to make the java applet window not resizable?
If the Applet class is a subclass of the Frame class, and your class is a subclass of the Applet class, then your class is a subclass of the Frame class and inherits the setResizable method.
class myClass extends Applet {}
void foo(){myClass win = new myClass(); win.setResizable(false);}
class myClass extends Applet {}
void foo(){myClass win = new myClass(); win.setResizable(false);}
0 коммент.:
Post a Comment