Has anyone used jdic and JavaFX?

I'd like to integrate web content (html pages and youtube video) in a JavaFX application.
I'm using the webbrowser component of jdic but I have several problems:
1) I can't see web content.
2) I can't move the panel.
I tried two ways:
1) A javafx class that extend a swingComponent class, this is my code:
//MyWebBrowserFX.fx
import javafx.ext.swing.SwingComponent;
import org.jdesktop.jdic.browser.WebBrowser;
import java.net.URL;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.Dimension;
public class MyWebBrowserFX extends SwingComponent{
    public override function createJComponent(){
        var webBrowser = new WebBrowser();
        webBrowser.setSize(300, 300);
        webBrowser.setURL(new URL("http://www.google.it"));
        var panel : JPanel = new JPanel();
        panel.setLayout(new BorderLayout());
        panel.setPreferredSize(new Dimension(500, 500));
     //panel.setLocation(300, 300);
        panel.move(100, 100);
        panel.add(webBrowser, BorderLayout.CENTER);
        return panel;
//MyScene.fx
public var myScene = Scene {
        content: Group{
            content: [
                MyWebBrowserFX{
        }In this case I see a white square (500x500) in 0,0 coordinates and I don't see Google web page.
I tried to move the web browser in this way
//MyScene.fx
    var webBrowser = Group {
            translateX: 200
            translateY: 200
            content: [
                MyWebBrowserFX{
public var myScene = Scene {
        content: Group{
            content: [
                webBrowser
        }In this case I don't see anything, the white square disappear
2) Integrate a swing component in a JavaFX scene:
//MyWebBrowser.java
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JComponent;
import javax.swing.JPanel;
import org.jdesktop.jdic.browser.WebBrowser;
public class MyWebBrowser {
    public static JComponent create() {
        WebBrowser webBrowser = new WebBrowser();
        try {
            webBrowser.setURL(new URL("http://www.google.it"));
        } catch (MalformedURLException ex) {
            Logger.getLogger(MyWebBrowser.class.getName()).log(Level.SEVERE, null, ex);
        JPanel panel = new JPanel();
        panel.setLayout(new BorderLayout());
        panel.setPreferredSize(new Dimension(1000, 1000));
        //panel.setLocation(300, 300);
        panel.add(webBrowser, BorderLayout.CENTER);
        return panel;
//MyScene.fx
var wb = null;
    var wbComp1 : Node;
    var wbComp : Node = bind wbComp1;
    public function setWebComponent(){
        wb = MyWebBrowser.create();
        wb.setPreferredSize(new java.awt.Dimension(400,300));
        wbComp1 = SwingComponent.wrap(wb);
    public var ARScene = Scene {
        content: Group{
            content: [
                wbComp
        }Also in this case I don't see anything.
Where am I in wrong?
Edited by: lady_disaster on Jul 23, 2010 5:17 AM

You do not want to use MacKeeper. Third party maintenance utiities are not necessary on a Mac.
If you have installed it, follow the instructions here > Uninstalling MacKeeper
Let your Mac run maintenance for you >  Mac OS X: About background maintenance tasks
To view other threads regarding MacKeeper, click, "More Like This" right side of this page.

Similar Messages

  • Has anyone used macKeeper and is it .k?

    has anyone used macKeeper and is it o.k?

    You do not want to use MacKeeper. Third party maintenance utiities are not necessary on a Mac.
    If you have installed it, follow the instructions here > Uninstalling MacKeeper
    Let your Mac run maintenance for you >  Mac OS X: About background maintenance tasks
    To view other threads regarding MacKeeper, click, "More Like This" right side of this page.

  • T4i... lousy SD video... has anyone used SD and had final edit look ok. on timeline its a disaster.

    T4i... lousy SD video... has anyone used SD and had final edit look ok. on timeline its a disaster. cell phone does better video.. im a pro video type and at this point may return cam and wait for a more capable eos.. like a mirrorless 60d...

    Speedorms,
    I would like to help determine what is causing this.
    What exactly are you seeing that is poor quality in the video from your EOS Rebel T4i?
    What are you using to edit your video?
    What settings are you using to edit the video?
    When you refer to SD, are you referring to the card in the camera or Standard Definition video?
    If you prefer a mirrorless design, we do have the new EOS M.  You may want to take a look at that model to see if it has the features you are looking for.
    If this is a time sensitive-matter, additional support options are available at Contact Us.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • There is a program unfortunately just called "Cookie" (so I can't be successful doing a search here) that is supposed to help protect our private information that resides on our computers.  Has anyone used this and is it worth buying?

    Unfortunately this discussion forum has changed and become confusing indeed.  It wanted me to put my entire question in a Subject box which wasn't labeled as such, and I find this strange.  Especially since now it tells me to repeat my question in this box, so here goes.
    Has anyone here used a program called 'Cookie' that is supposed to protect our private information from sites which could retrieve it when we surf the Net.  If so, do you consider the program worth buying?

    If you are referring to Cookie from SweetP Productions, I have tried it and not found it to work reliably, so I cannot recommend it. I've had the best results with the same company's free Safari Cookies, though it's not perfect (none of the cookie managers are, unfortunately):
    http://www.macupdate.com/app/mac/31018/safari-cookies
    Regards.

  • Has anyone used DETOX MY MAC and can it be trusted

    My Mac Mini n now running very slowly, its difficult to open up anything, and starts up really slowly. In general its just a pain. For a week now I can't open my emails in AOL, I can see them but can't open them.
    I have thought about DETOX MY MAC but I am worried that I will just be downloading more problems. Has anyone used it and can it be trusted
    Thanks Ann

    Don't install such "utilities." They're all scams.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen. Click the Clear Display icon in the toolbar. Then take one of the actions that you're having trouble with. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Has anyone used Thunderbolt or USB 3.0?

    In the not too distant future I am intending to upgrade from my 2008 24"  2.8GHz iMac.
    The new models appear to have gone down the Thunderbolt route which appears to be not very popular with HDs being few and far between and very expensive.
    USB 3.0 whilst theoretically only half the speed seems to be taking off and reasonably cheap, and appears to be more universally adopted.
    Could Apple have backed the wrong horse on this occasion?
    Sorry, I was just thinking aloud, definitely not speculating.
    So has anyone used Thunderbolt and got anything good or bad to say about it?

    Not personally:
    The german computer-magazine c't tested the Promise Pegasus R6 Thunderbolt and found it speedwise way ahead of USB 3.0 and eSATA.
    As a RAID-Level 0 with 6 x Hitachi HDS721010CLA332 (7.200 U/min, 1TB each) and MBP 13" 2011 OSX 10.6.8:
    Write - 693 MByte/s
    Read - 721 MByte/s
    Read AND Write - 323 MByte/s
    Time Machine -capable and OS X Bootable.
    0.8 Sone when active
    61.6 W active - 48 W when not used.
    Sadly the article is not avaibale other than Printed.
    Stefan

  • Has Anyone Used the WD My Book External Drives for Time Machine?

    I'm thinking of getting the Western Digitial 1 or 2 TB My Book (Pro Edition 2 or Studio Edition) External Drives for use with 2 MacPros. Has anyone used these and could I use them with Time Machine? Would I have to reformat them for Time Machine?
    Thanks!
    Ashley

    You may, and probably want to format them, even if not TM use, I would anyway. Not everyone is happy with MyBook Pro and TM.
    I buy bare FW devices and add disk drive of choice, or just use OWC
    http://www.macsales.com/firewire and works well.
    FW800 is also better on the new Mac Pro
    http://www.barefeats.com

  • Has anyone downloaded Yosemite and found that there are no ore scroll bars? I have to move the window (of any window, Skype window, browser window etc.) in order to find the scroll bar and then it disappears so fast I can't even use it.

    Has anyone downloaded Yosemite and found that there are no ore scroll bars? I have to move the window (of any window, Skype window, browser window etc.) in order to find the scroll bar and then it disappears so fast I can't even use it.

    Not sure why that was unchecked but good to know!
    Apple's new default (since at least a couple of OS releases back) is to have it off so OS X matches the behavior of an iPhone or iPad.
    I almost never need a scroll bar, and when I do, I just move over to the edge of the window when scrolling and a larger scroll bar appears.
    Yes, for the most part, users don't really need the scroll bar. That's what the scroll wheel on almost all mice is for. Saves the trip over to bar to physically grab and move it. But, I do like it on all the time regardless. That way (especially with a long article) I can just take a quick glance over to the bar to see about where I am on the page (a third of the way down? halfway?). Otherwise, I have to move the page just to make it appear to give me the same information.

  • Has anyone  used Audacity to create a Podcast on a PC and then make it available on itunes?

    Has anyone  used Audacity to create a Podcast on a PC and then make it available on itunes?  If you have used Audacity is it a good program to use? Any tips or suggestions?

    Almost certainly. You can use any program which does what you want: the end product has to be an .mp3 or .m4a file. After that it's a question of making the feed, either writing it yourself or more likely using a program or online service.
    Audacity is a useful program, and free, and you can certainly do the sort of things you need to make a podcast. I prefer Amadeus Pro, which costs $59.99 and has recently been updated with better multi-track facilities: I always fled that Audacity was awkward to use by comparison and occasionally flaky, but we're probably splitting hairs here: it would certainly be a good place to start.
    You may find my page on making a podcast helpful:
    http://rfwilmut.net/pc

  • Has anyone used switch control and siri at the same time?

    Has anyone used accessibility switch control and siri at the same time?

    Using Xmarks and Sync simultaneously will create a mess.
    You can create a new profile, import the bookmarks from your main profile, and set up Sync for the new profile.
    The flip side is, bookmarks from your main profile would not get synced with your new profile.
    Alternatively, Xmarks is also available for Android.
    https://play.google.com/store/apps/details?id=com.xmarks.android&hl=en

  • I was advised to purchase dazzle video creator to move analog videos from an old sony camcorder to a mac.  I have purchased the dazzle and the specs seem to be for windows only.  Has anyone used this product on mac?

    I was advised to purchase dazzle video creator to move analog videos from an old sony camcorder to a mac.  I have purchased the dazzle and the specs seem to be for windows only.  Has anyone used this product on mac?

    I am not certain, but I believe there is a version of Dazzle for the Mac. However, it is not the route I would chose.
    You really need a proper analogue to digital converter, like the ADVC110, to connect to your camera via the usual RCA cables, and to your Mac via firewire.

  • Has anyone used or researched using Peavey AmpKit LiNK and it's Applications in GB for the iPad?

    Has anyone used or resarched using Peavey AmpKit LiNK Hi-Fidelity Guitar Interface for Ampkit and Ampkit+ Applications on the ipad and with GarageBand. It seems that AmpKit unit gets better reviews than the iRig as an interface...
    A couple of questions... Does it work with GB (iPad and GB 11)... There is a recording function on the Ampkit Application... would this be compataible with GB for the ipad and also GB11 on the imac...
    Also if you have any experinces / thoughts on the usabilitiy of the AmpKit unit with the ipad that would be great...

    I have both the Ampkit link and a iRig. The AmpKit link is much better it sounds about the same as the iRig but much less noise. It works great with Garageband. I don't use the Ampkit software for recording. I have used AmpKit+ and Amplitube Fender on the ipad plugged into a PA and as a modeler for recording in Garageband (Mac).

  • Has anyone used the program 'MacKeeper' and what is your take on it?

    Has anyone used the program 'MacKeeper' and what is your take on it?

    Do not install MacKeeper (and how to uninstall it if you have):
    https://discussions.apple.com/docs/DOC-6221
    (Please note that references to the original developers, Zeobit, also now refer to Kromtech Alliance Corp, who acquired MacKeeper and PCKeeper from ZeoBit LLC in early 2013.)

  • Has anyone used the Speck See Thru Case and scratched the MacBook Pro?

    Has anyone used the Speck See Thru Case and scratched his/her MacBook Pro?

    Read this thread: https://discussions.apple.com/message/8769665#8769665

  • Has anyone using a PowerMac and Tiger got a Phaser 8570?

    Has anyone using a PowerMac and Tiger got a Phaser 8570?
    There are drivers for IntelMac 10.5 and 10.6, but nothing for PowerMacs.
    I was thinking of upgrading from our 8550 - if there's a driver that will do - anyone able to help?

    Additional information.
    Had some problems with the 8550 and decided to take up a Xerox trade-in offer.
    The ColorQube 8570 not only works perfectly with Tiger, it's a lot faster and quieter than the 8550.
    Which answers the question.

Maybe you are looking for

  • Struggling to Sync iPhone contacts to iCloud? Here's a possible solution!

    I was struggling all day trying to figure out why my contacts were appearing on my iPhone 5, but not on my Macbook Pro Late 2011 Edition. To make a long story short, I was able to add contacts to my Contact app on my Macbook and have them sync immedi

  • Draw Dynamic Column with Static Columns

    Hi All I have to show dynamic columns with static columns including column header and I am choosing the Cross Tab style. I have done this already in SSRS but failed to do in Crystal Report version (Crystal Report Basic for Visual Studio 2008). Name  

  • Kernal Message at start up!

    Just the other day my mac was acting funny so I tried to restart and it timed out. It wouldn't quit the aplications so I did a hard restat. Now when I try to restart my mac it gets tot he gray screen with the apple then a darker gray screen comes dow

  • TIP: Working with AVCHD while ingesting

    You can do this. If you have a long list of clips to ingest from an AVCHD chip or drive, you can start the ingest process, and while it's going on in the background, begin cutting up your clips organzing your browser, and editing the already ingested

  • I have trouble while update iphoto, i can install new version of i photo

    i have trouble while update iphoto, i can install new version of i photo