Cover Flow on JavaFX in Swing GUI

Speaking staff, all good?
First I apologize for my bad English!
Well, the question is as follows. I created a class in JavaFX, where this class requires some common parameters. This class creates a CoverFlow, like when you pick an album on the iPod.
I would use this class in JavaFX in an interface created in Swing (Java). Is it possible?
If so, does anyone could give me a hint how to do this? I have no idea nor to the start of it.
Thank you in advance.
Hail!

jfx > java - no problem. you can use java apis without any problems like you've been using them until now.
java > jfx - compile the jfx classes and then you can use them as library in your java project, i think ;)
jfx - swing - jfx is using scenario2d java.net project that is entirely written in java so you can use jfx components. better way would be to have gui in jfx, for the future.
jfx libs - there're already some components in development, but jfx is in its early stage, so things can still change. i don't know about any set of jfx classes that i'd call a animation library. we're rather experimenting yet.

Similar Messages

  • (Youtube-) Video in a Swing GUI

    Hey everyone,
    I'm currently trying to play a video in my Swing GUI with JMF but I really can't get it to work.
    With the help of google I got this far:
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.media.CannotRealizeException;
    import javax.media.Manager;
    import javax.media.NoPlayerException;
    import javax.media.Player;
    import javax.swing.JFrame;
    public class MediaPanel extends JFrame {
        public MediaPanel() {
            setLayout(new BorderLayout()); // use a BorderLayout
            // Use lightweight components for Swing compatibility
            Manager.setHint(Manager.LIGHTWEIGHT_RENDERER, true);
            URL mediaURL = null;
            try {
                mediaURL = new URL("http://www.youtube.com/watch?v=Q7_Z_mQUBa8");
            } catch (MalformedURLException ex) {
                System.err.println(ex);
            try {
                // create a player to play the media specified in the URL
                Player mediaPlayer = Manager.createRealizedPlayer(mediaURL);
                // get the components for the video and the playback controls
                Component video = mediaPlayer.getVisualComponent();
                Component controls = mediaPlayer.getControlPanelComponent();
                if (video != null) {
                    add(video, BorderLayout.CENTER); // add video component
                if (controls != null) {
                    add(controls, BorderLayout.SOUTH); // add controls
                mediaPlayer.start(); // start playing the media clip
            } // end try
            catch (NoPlayerException noPlayerException) {
                System.err.println("No media player found");
            } // end catch
            catch (CannotRealizeException cannotRealizeException) {
                System.err.println("Could not realize media player");
            } // end catch
            catch (IOException iOException) {
                System.err.println("Error reading from the source");
            } // end catch
        } // end MediaPanel constructor
    }But all I get is errors:
    Warning: The URL may not exist. Please check URL
    No media player found
    Can you please please help me get this working? I would really appreciate a little walkthrough
    Best regards,
    Patrick
    Edited by: 954807 on Aug 24, 2012 6:52 AM

    Just use \ tags. People don't like to go to external sites.
    I really advise you to consider using JavaFX 2 here. Swing is old and not really supported anymore, JMF is also old and absolutely not supported anymore.                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to change Cover Flow background color in finder?

    I realize that there's (as far as I can tell) no way to do this via the GUI, I'd welcome any more creative suggestions too.
    My wife uses software called TruEmbroidery to create and edit designs for her sewing machine.   She likes to use the cover flow view to browse her files - BUT many designs' "previews" consist largely of dark colors and alpha (transparency).   Hence, the dark default background of cover flow makes them hard to discern.
    Is there any way - however creative - to change it?   I found this terminal command (below) on another forum, but it doesn't seem to work in Mountain Lion.
    defaults write com.apple.Finder IKImageFlowBackgroundColor 255,255,255

    sorry could not get the alternative to execute either,  so I removed it.
    Message was edited by: leroydouglas

  • We want Cover Flow back in iTunes

    After updating my iTunes I saw the new interface and I thought, ok, a new way to use iTunes. Some nice features, in the GUI. But than I got a shock:
    No coverflow anymore??
    No option to enable coverflow??
    I don't have so much albums in my library, the most of them a "single" songs. So one Album contains one song. For me the album view is not so important as the song and playlist view.
    And here its not possible anymore to go through the library like on a jukebox? Once Cover Flow was that "killer feature" of iTunes. And now its gone?
    Grabbing in a list like in the older days? That's a step backward!
    Apple, please bring back coverflow to iTunes in the next update!

    anilsudhakaran wrote:
    Coverflow - the most overrated feature that only looks good in demos. Least functional and most resource intensive way of browsing your library.
    I thought it was overrated too — until I downloaded iTunes 11. Now I sorely miss it when looking at playlists. Having that visual reference at the top of the screen was extremely helpful, and the new Artist List doesn't cut it because that view doesn't preserve the ORDER of your playlist.
    I never used Cover Flow to NAVIGATE, but it absolutely ***** not having it as a visual reference for otherwise plain-text lists.
    But don't worry — Apple will never bring it back. Everyone in this thread, don't worry your little heads. Apple knows best what you need, whether you agree or not. Don't question Apple. Only praise allowed.

  • Freezing Swing GUI...

    Hi!
    I am having problems with my swing GUI. It's freezing when I'm trying to disable a JButton in it. Could anybody tell me y it happens and what can be done to remedy it?
    My piece of code:
    stopButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    // stop!
    simulator.blinker = null;
    label.setText("Stopped!");
    playPauseButton.setEnabled(false);
    stepButton.setEnabled(false);
    showNamesButton.setEnabled(false);
    speedUpButton.setEnabled(false);
    speedDownButton.setEnabled(false);
    stopButton.setEnabled(false);
    When I press the stopButton, my GUI freezes. Same happens with this piece of code when simSpeed = 50:
    speedUpButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    if (simulator.simSpeed > 300 && simulator.simSpeed <= 500){
    simulator.simSpeed -= 100;
    System.out.println("sim speed = " + simulator.simSpeed);
    else if (simulator.simSpeed > 50 && simulator.simSpeed <= 300){
    simulator.simSpeed -= 50;
    System.out.println("sim speed = " + simulator.simSpeed);
    else {//if (simulator.simSpeed == 50){
    System.out.println("caution: sim speed = " + simulator.simSpeed);
    speedUpButton.setEnabled(false);
    Strangely, this one does not make the GUI freeze when simSpeed = 1500:
    speedDownButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    if (simulator.simSpeed < 1500){
    simulator.simSpeed += 100;
    System.out.println("sim speed = " + simulator.simSpeed);
    else if (simulator.simSpeed == 1500)
    speedDownButton.setEnabled(false);
    I'd greatly apreciate any help!
    Thx in advance!
    Owrwe

    I have gone thru some experimentations and come to this conclusion:
    when i try to disable buttons at the extremity of a row of buttons, the GUI freezes!
    for example:
    buttonPanel.add(speedUpButton);
    buttonPanel.add(speedDownButton);
    buttonPanel.add(playPauseButton);
    buttonPanel.add(stepButton);
    buttonPanel.add(showNamesButton);
    buttonPanel.add(stopButton);
    this is the order of buttons in a layout (flow layout by default, isn't it?). The GUI freezes when I try to disable: speedUpButton and stopButton (from inside their ActionListener method).
    Changing the layout to:
    buttonPanel.add(speedDownButton);
    buttonPanel.add(speedUpButton);
    buttonPanel.add(playPauseButton);
    buttonPanel.add(stepButton);
    buttonPanel.add(showNamesButton);
    buttonPanel.add(stopButton);
    The GUI freezes when I try to disable: speedDownButton (as compared to speedUpButton from above) and stopButton (from inside their ActionListener method).
    Changing the layout to:
    buttonPanel.add(playPauseButton);
    buttonPanel.add(speedDownButton);
    buttonPanel.add(speedUpButton);
    buttonPanel.add(stepButton);
    buttonPanel.add(stopButton);
    buttonPanel.add(showNamesButton);
    The GUI freezes when I try to disable: all of them (from inside the stopButton ActionListener). The speedUpButton and speedDownButton are properly disabled when the limits are reached without freezing the GUI. If I disable all buttons (thru the stopButton when it's not at the extremity of the row) except one of them, the GUI doesn't freeze!
    any suggestions?

  • Newbie qs. JavaFx vs Swing?

    I looked through the JavaFx introduction and samples, but wish there could be clarification of the following which other developers too might wonder about:
    Should I write my app in Swing or Java Fx - what considerations should guide my choice?
    It seems that Fx is an alternative or competitor to applets or Google Web toolkit or Flash.
    Can you access the file system, work offline?
    thanks,
    Anil

    Yes you're right in that there are many considerations that involved in choosing between JavaFX or Swing (or some other technology) and for the most part a lot of it is just going to come down to opinions rather than hard and fast rules.
    First of all, JavaFX applications whether they are deployed as Applets, via Web Start, or with a standalone installer can access the file system, work offline, open sockets etc. The restriction is that if deployed as an Applet or via Web Start the application has to be "signed" and the user has to accept the signed application (click "Yes" on a security warning).
    Having said that even unsigned Applets/WebStart applications do have limited access to the file system (a private sandbox) and can open connections back to their originating server. Applets used to be restricted to running in the browser but now they can be dragged out of the browser and "installed" with a shortcut on the users system. The following link provides a good starting point for more information
    [http://java.sun.com/javase/6/docs/technotes/guides/jweb/index.html]
    Always remember that JavaFX sits on top of Java and often leverages tools, products and technologies to achieve tasks.
    In terms of Swing vs JavaFX some of the things you might want to consider are:
    Tolerance towards new technologies. Is you organisation able to take something "cutting-edge" and is prepared to work around problems or limitations. Or are the stakeholders in the project so risk-adverse that a more mainstream approach would be better.
    Willingness to write code. At this stage you will find that Swing has far more components (widgets) available to it, you can somewhat easily reuse Swing components within JavaFX application but you will need to write and maintain extra code to do so. Also there are other gaps in JavaFX where you'll probably need to write extra code like serialization or dealing with medium-complex event handling (action frameworks). More code appears to have more cost but sometimes you also get the benefit of a better fit to your problem.
    But then on the other hand JavaFX is a language dedicated to writing GUIs so you can also argue that even with the current relative immaturity having support within the language for "bind" will result in less code than the the same application written in Swing.
    What's the lifespan of this project for you organisation? A short-term one-off project might justify the use of JavaFX through it being not strategic to your organisation. But then on the other hand a large long-term project might also justify the use of JavaFX because it's easier to absorb specialists filling in the gaps of JavaFX in a larger team and also you might see how JavaFX is going to be important into the future (obviously a value based opinion).
    What level of "graphics" do you want? The Scene graph within JavaFX makes doing "fancy" graphics, video and animation easier than in Swing.
    Hope this helps.
    - Richard.

  • Can not properly view cover flow in full screen in external display

    My mac is the new Mac book pro 15.4 inch screen and I connect my mac pro to external display e.g. Samsung LCD monitor 24 inches.
    The bug is that I can not PROPERLY view full screen (in external display) for some application e.g. iTunes, and Front Row.
    - When I use iTunes, I can not properly view Cover Flow view in full screen (in the external display screen) except the case of mirror display.
    - For Front Row, I can not view full screen in external display but only my mac display.
    However, for other DVD or VDO players, I can view movie on external display in full screen and I still be able to do other works on my mac screen.
    Please let me know how to solve it.

    found the likely issue!  are you participating in youtube's html5 trial?  go here and it will tell you if you are:
    http://www.youtube.com/html5
    exit the trial and it should fix the issue.  it worked for me!

  • Is there a way of making my iPod's "cover flow" sort in the same way the software can . Artist -- Album by Year . It only seems to do Artist -- by Alphabetical Album . I want it look like it does on the PC .

    Is there a way to make the "cover flow" on the iPod match the sort style that I use on the software . I go with Artist -- Album by Release Year . But the ipod seems to only do Artist -- Alphabetical by Album , and then there are a handful of albums oddly out of place . Can it be done ?

    Ottonomy, here's what to do.
    Connect your iPhone to your computer and open the iPhone's playlist in an iTunes window. Copy/Paste the entire playlist into a new(!) playlist in iTunes, not on your iPhone. Then resort the playlist. After you sort it, Copy/Paste it to a new(!) playlist on your iPhone. Now delete the old playlist on your iPhone and rename the new playlist the name you want it to be (probably the same name as the old playlist).
    The downside to this method is that you have to do it every time you add a song to the playlist. Unfortunately, I don't think there's another way.

  • What's wrong with my iPod's Cover Flow??

    I have an iPod Touch 3rd Gen, 32Gb, and recently updated to IOS 5.
    Since then, the iPod's cover flow feature is extremely slow, doesn't flow smoothly, and crashes after a few (15-20) seconds.
    Today I noted something else: some album covers appear pixelated and blurry, even though HD. Those covers looked just fine until now.
    As a side note, I have in use 30 of the 32 Gb (that's a lot of music, I know). Could this be related? I never had those problems before IOS 5, though.
    What's wrong with my iPod?
    Thanks for your help!

    so as I see it people with this problem have 3 options
    - Make all of your album art a maximum of 500X500 pixels
    - Wait for an IOS update that fixes the problem
    - Scrap ipods and buy another brand of music player
    Using photoshop to do it with, it took me about an hour to resize, change, and resync all of my 1400 songs(86 albums)

  • Cover flow lion finder window

    Horrible horrible horrible feature of Lion: 
    iPhoto is occupied iwth a large upload of images to flickr.
    I want to review some more of the images I shot today in thumbnail to
    open and start working on them in photoshop without waiting for iPhoto
    to finish (this is reason #6099 why I do not let iPhoto control the
    location of my photos on the drive, so I can access them without
    opening their specific iPhoto library).
    I open the enclosing folder for the images, click to view by icon,
    enlarge the icons, then click to sort the photos by date, and....COVER
    FLOW!  they've Cover-Flow-ized the icon view when you do any kind of
    sort except by name. 
    I cannot say how much I hate cover flow--nausea-inducing for the
    motion sickness prone, nasty vile scheme in general--and now, it's
    dropped the images I can see in one glance at the screen in this icon
    by date view of the finder window to ONE, and I can't turn it off.  I
    do NOT have coverflow checked in view options.
    Is there any way to kill coverflow completely in every place they've
    put it?
    (Feedback already sent to apple, BTW, if you have this problem too, and there's no solution offered by one of the bright folks on this board, please send them some at apple.com/feedback--the place to put feedback for programs like finder that don't have a 'send feedback' menu item))

    Support call gave the solution:  instead of 'Arrange by', use the 'clean up by' command under the view menu in Finder.  This does what arrange by used to, and while the menu options are more limited than 'arrange by', it doesn't default to the cover-flow behavior that is so irritating.
    If you hate cover flow like I do, please send them feedback.  If enough of us complain about it, maybe they'll stop putting it all over the place.

  • Screen saver overrides iTunes cover flow in Lion

    On my new iMac (OSX 10.7.1, iTunes 10.4.1), when in full screen cover flow mode, the screen saver overrides this, which is annoying as I like to leave it playing with the artwork displayed. This did not happen on my old (Leopard) Mac. I can't find any preference setting that seems to fix this. I dont really want to turn off the screen saver - I didn't have to before, why now?

    Have you tried creating a hot corner (System Preferences > Desktop & Screen Saver > Screen Saver - Hot Corners) to disable the screen saver by parking mouse pointer in the "hot corner."
    I'm assuming Lion still has this function.

  • Cover Flow does not update in full-screen mode

    Following an upgrade to iTunes 10.5 (141) and Lion (10.7.2) - I've noticed that Cover Flow no longer updates to the current song in full-screen mode. It will return to, and remain frozen at the first song of the playlist until manually updated or I revert to non-full-screen mode.

    I assume you are using a desktop shortcut to start Lightroom.  Look at the properties for that shortcut.  There should be an option to set it to "maximize".

  • How do i get rid of cover flow in music on my 4s

    how do you get rid of cover flow off on the 4s and go back to play list

    Cover flow appears when your phone is rotated in landscape position (sideways).  Rotate it back to portrait position (upright) to return to the song list.

  • My cover flow does not work on my 3rd gen 64 gb ipod touch

    My cover flow does not work on my 3rd gen 64 gb ipod touch and neither does shake to shuffle.

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync all music and resync
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • Hi. I am having an issue with music on my Ipod. It would probably be easier to explain my specific issue: I have songs by Band of Horses from Cease to Begin. When viewing my albums through cover flow, it shows Cease To Begin as two separate albums, one wi

    Hi. I am having an issue with music on my IPod. It would probably be easier to explain my specific issue: I have songs by Band of Horses from Cease to Begin. When viewing my albums through cover flow, it shows Cease To Begin as two separate albums, one with only Islands on the Coast, and the other having Islands on the Coast with 3 other songs. If I delete the album with only one song from my IPod, it deletes the song from the other "album" as well. If I go to "All Songs" by Band of Horses, it only shows one Islands on the Coast, so it is not a duplicate issue. Also, in Itunes, it only shows one album. I just recently updated to iOS5 on my 4th Gen IPod Touch, if that helps.

        Hello APVzW, we absolutely want the best path to resolution. My apologies for multiple attempts of replacing the device. We'd like to verify the order information and see if we can locate the tracking number. Please send a direct message with the order number so we can dive deeper. Here's steps to send a direct message: http://vz.to/1b8XnPy We look forward to hearing from you soon.
    WiltonA_VZW
    VZW Support
    Follow us on twitter @VZWSupport

Maybe you are looking for

  • Going in & out of sleep mode

    I have an iBook G4 with a 12" display I haven't had any problems with it until my last update (I update whenever there are available updates). I restarted my mac like normal after the update and found that after the white loading screen with the tiny

  • Some very "newbie" networking questions -- trying to get started

    Hello all. Since this forum is so friendly for issues related to Arch, I thought I'd post my semi-arch related question. I'm trying to create a network for my house, consisting of about 3 computers. I have a book reference, TCP/IP Network Administrat

  • Multiple MIDI Inputs Yet???

    Can anyone tell me if LP8 offers multiple MIDI inputs? I use the step sequencer from my Elektron Monomachine for pattern creation and would like to be able to assign the external tracks from it to instrument tracks hosting either native or 3rd party

  • Strategy Pattern, Am i on the right Track?

    The question: Design a small, prototype, application, which creates, stores and amends warehouse records. This may have little more than a StockItem class. Using each of the patterns Strategy, Decorator, Adaptor and in turn provide three different ad

  • Encryption Failed

    Hi, Having an issue remote controlling a workstation. When I try from the ZCC I get the error message: "Initialization of encryption for the session failed. Unable to Proceed." The 'zmd-messages.log' on the workstation does not show any errors....but