Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes Maximizing a window in Java Swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Maximizing a window in Java Swing" Watch "Maximizing a window in Java Swing" New topic
Author

Maximizing a window in Java Swing

Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 263
Dear Ranchers,
I'm doing an application in Java Swing and MySQL. I am running this in Windows XP. In a particular point i want a JFrame to be opened as maximized. for that I'm using the code as below.



When i run this code, I can see the window in maximized, but cannot see the status bar. How can I show the window maximized just above the status bar,

Please help me ranchers

Thanks in advance

regards

Aravind Prasad
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> but cannot see the status bar

if you mean the task bar, try this

Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 263
Thankyou very very much Michael,
My Problem is solved. It is working fine now..

Thanks a lot..

How can I put an Icon in JFrame..When i tried. it is not working..
It is showing, Java's default icon only!!

Can you please help me to solve. this..

regards

Aravind Prasad
Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 263
Sorry for not putting the code



This ICO is not displaying the ICON..

Please help me.. to sort this out..

regards

Aravind Prasad
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Unless you're using JDK 1.6 or additional libraries, only GIF, JPEG, and BMP images can be loaded as images.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Maximizing a window in Java Swing
 
Similar Threads
Mdi child form
security manager
Freezing the Non Modal Window
JTextField in JInternalFrame
Status Bar