aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How to display an image without borders? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to display an image without borders?" Watch "How to display an image without borders?" New topic
Author

How to display an image without borders?

Peter Wolfenstein
Greenhorn

Joined: Oct 23, 2006
Posts: 11
Hello!

I'd like to know how to display an image or some component without any borders?

This technique is used by Netbeans, OO.org, Zend Studio, Mozilla Browser etc. on start up.

Thanks!

Jay
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
JWindow or an undecorated JFrame (or in 1.6 SplashScreen??)
Peter Wolfenstein
Greenhorn

Joined: Oct 23, 2006
Posts: 11
Do you have some code snippet, as I am new to Java.
Thanks!

EDIT:
I tried it out JFrame#setUndecorated (true); works fine

Best Regards,
Jay

[ November 19, 2006: Message edited by: Jakob Buchgraber ]
[ November 19, 2006: Message edited by: Jakob Buchgraber ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to display an image without borders?