Maximized Screen in Linux Java (GraphicsEnvironment)

How do I maximized my Frame in Linux Environment? Since there is no GraphicsEnvironment class available... Please Help me in this problem...
[147 byte] By [khickyphutza] at [2007-10-2 5:42:46]
# 1
> How do I maximized my Frame in Linux Environment?> Since there is no GraphicsEnvironment class> available... Last time I looked there was!
sabre150a at 2007-7-16 1:52:57 > top of Java-index,Desktop,Core GUI APIs...
# 2
use JFrame.setExtendedState, after your frame has shown;yourFrame.setVisible(true);yourFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);
suladzea at 2007-7-16 1:52:57 > top of Java-index,Desktop,Core GUI APIs...
# 3

Hi ,

I have checked this will not work on Linux.

i.e. the call

setMaximizedState(Frame.MAXIMIZED_BOTH);

does NOT work in Linux(RHEL 4.X).

Can you please help me how to achieve the "MaximizedScreen" during the coming up of the UI in Linux?

Thanks,

-Bhaskar.

srigvba at 2007-7-16 1:52:57 > top of Java-index,Desktop,Core GUI APIs...
# 4
Hi,setExtendedState(Frame.MAXIMIZED_BOTH);does not work in Linux.How to achieve this?Thanks,-Bhaskar.
srigvba at 2007-7-16 1:52:57 > top of Java-index,Desktop,Core GUI APIs...
# 5
Yes, even I have the same problem.
Harshalenatora at 2007-7-16 1:52:57 > top of Java-index,Desktop,Core GUI APIs...
# 6
Don't know anything about the GraphicsEnvironment class but this is what I would try:setSize(Toolkit.getDefaultToolkit().getScreenSize());
mange@orua at 2007-7-16 1:52:57 > top of Java-index,Desktop,Core GUI APIs...