always maximized

I have a problem:

I want my application to be always maximized.

I know how to maximize frame:

myFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);

My application consists of Form and some other containers, components designed with help of GUI Builder (NetBeans 5.5.)

Also I have some containers which appears on frame during program execution.

Is there any possible way to set MAXIMIZE state for all my components?

[453 byte] By [Holoda] at [2007-11-27 6:54:23]
# 1

many thing you can do..

you can setReszable(false) for your frame

you can play with windowListener, so that on change of windowstate you can reset the state, and along with that play with componentlistener.

for further help then you need to create a

[url=http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example

Program[/url] (SSCCE) that demonstrates the incorrect behaviour.

Don't forget to use the [url=http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags[/url]

so the posted code retains its original formatting.

regards

Aniruddha

Aniruddha-Herea at 2007-7-12 18:29:23 > top of Java-index,Desktop,Core GUI APIs...
# 2
Yes, thank you!I don't know windowlisteners at all. So I will begin to study them.Sorry, I did not supply my question with SSCCEE, I thought, my problem is common and it is easy to understand.Thank you for your comment
Holoda at 2007-7-12 18:29:23 > top of Java-index,Desktop,Core GUI APIs...