Since you are already using prerelease software (JFX), how about
trying1.6.0_10 which has built-in support for transparent windows and
avoid WindowUtils alltogether?
Scott
Sent from my iPod
On 21-Aug-08, at 2:37 AM, tj_takehana <tgen...@gmail.com> wrote:
Hi, all.
I just started using WindowUtils from examples for JavaFX then got the
problem on making a transparent frame.
i tried followings.
javafx.application.Frame
WindowUtils.setWindowTransparent(Frame.window, true);
-> Frame layout is undecorated but the backgroud of a PNG picture isnt
transparent.
javafx.ext.swing.SwingFrame
WIndowUtils.setWindowTransparent(SwingFrame.window, true);
WIndowUtils.setWindowTransparent(SwingFrame.getAWTWindow(), true);
WIndowUtils.setWindowTransparent(SwingFrame.getJFrame().getWindows()
[0], true);
-> Frame layout is undecorated but the backgroud of a PNG picture isnt
transparent but filled with light-grey.
javax.swing.JFrame
WIndowUtils.setWindowTransparent(JFrame.getWindow()[0], true);
-> works normally.
i dont see what's wrong on giving java.lang.Window object to
WindowUtils. i tried to track out the code but it wasnt any help cos
my knowledge is far from graphic things :S could anybody help me out ?
heres my environment:
Windows XP SP2
Java Compiler : JDK 1.6.07
Library : JavaFX Preview SDK, examples from JNA.
IDE : NetBeans 3.1
Regards.