Win a copy of Spring Boot in Practice this week in the Spring forum!

Geon Goo

Greenhorn
+ Follow
since Jan 17, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Geon Goo

I'm using JDK 1.4 with MS-Windows 2000 Korean version.
I tried ImageIO.write(). it works with "PNG" but, "JPG" and "GIF" doesn't.
source code is very simple.

above code works fine. but when I change output file name as "duke.jpg" and ImageIO.write(img,"JPG",outFile)--> it doesn't work.
GIF doesn't work either.
does anyone know this?
20 years ago
Hello.
can I ask a question?
my question is about GlassPane.
I know that the glasspane is on top of all components in JFrame.
I tried to setVisible(true) and setOpaque(true) on glasspane.
and in the contentPane, I added a JButton.
in that case, the button I added is invisible(because glasspane covers all). but it works.(why?)
I think when the glasspane gets an AWTEvent, this event is forwarded to contentpane. but I can't find the source code that doing such thing.
would you tell me the principle about that?
thanks
20 years ago