Skip to main content

import com.sun.fxmediacomponent.*; no package found?

6 replies [Last post]
xclaim
Offline
Joined: 2009-11-05

hi people i am using netbeans 6.7.1 with javafx installed
may i know why import com.sun.fxmediacomponent.*; this package does not exist?
any help will be appreciated
thanks alot.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
xclaim
Offline
Joined: 2009-11-05

eh i did and it is weird that the package does not exist
my javafx sdk is 1.2
the sample wont work in my netbeans too =[

xclaim
Offline
Joined: 2009-11-05

hi thanks for the help
but [b]import com.sun.javafx.mediabox.*;[/b] have the same problem as above
which is that the package does not exist

michael_heinrichs
Offline
Joined: 2007-11-15

Did you check all of the sources? To me it looks like all required classes like MediaBox etc. are part of the sample.

xclaim
Offline
Joined: 2009-11-05

any ideas to get the api?
by the way for the media import
we wont have the mediabox?
we have to create our own GUI for the player?

michael_heinrichs
Offline
Joined: 2007-11-15

I think, what you are looking for can be found here, but this article was written before JavaFX 1.2 was released, not sure if it is still working.

http://javafx.com/samples/MediaBox/

michael_heinrichs
Offline
Joined: 2007-11-15

This package is not part of the public API and you should not use it. What you probably want to import is javafx.scene.media.*