Discussion Locked

JAVA -- Window Icon and Minimizing

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

When developing an application using Javam how can I change the icon appearing at the upper-left corner of a window? Also, how can I disable the minimizing/maximazing options for a given window?

Thank you.

3 replies

by tech geek

The method: setIconImage(Image image)
will set the icon appearing at the upper-left corner. This method comes from the java.awt.Frame class.

One way to disable maximazing is to use the method: boolean isResizable()
this also comes from the java.awt.Frame class.

This discussion is closed to new replies.