How to embed swing component into javaFX ?

Maybe I missed sth, but can someone explain us how can we embed swing component into javaFX 2.0 ?
This was previously handled with javaFX "srcipt", why can't we do it anymore ?
As far as the work to migrate from 1.3 to 2.0 is hard and huge, why do fx2.0 do not offer such feature anymore ? :(
I know that ThingFx project try to cope with, but the current code doesn't match with my needs.
Thanks for help,
Edited by: tibO on 23 nov. 2011 14:35

I know this post is old and the original authors might not even ben active; but it essentiall gets to the heart of what I'm trying to.
I have a JDialogBox. In it I have a panel (which I have to change to a JScrollPane). Inside the JPanel I have a JLabel and a JTextArea.
I was told to; make it scrollable in the event that there is too much info for the JDialogBox and to add HTML formatting (simple stuff like bold and colors.
1) The JScrollBar doesn't seem to produce the scroll side bars.
2) I must not be implementing the JEditorPane correctly. I just substituted JEditorPane for JTextArea in my code and it returned a type converstion error. Is JEditorPane even the correct object to use? Should I be using JTextPane?
The reason I can't do this on a JLabel by JLabel basis is because I don't know how many labels I will need at each runtime. And I also have to have a swingtimer on it. I could create an array and loop around it to create the JLabels. But it seems a waste of commuting cycles. This is no good?

Similar Messages

  • CP8 - How to embed a pdf into a captivate slide (for LMS publication)?

    Hi,
    How to embed a pdf into a captivate slide (for LMS publication)?
    WebObject doesn't work...
    Thanks

    I accomplished this by publishing my PDF to a directory I called "PDFWebObjectEmbedFiles" on my webserver outside of where my published project lives.
    For example...the PDF to embed lived at:
    http://mydomain.com/PDFWebObjectEmbedFiles/file_name_of_PDF_to_embed.pdf
    Then I went inside of Captivate and inserted the Web Object widget.  I put the URL to my PDF inside the widget.  Then it loads perfectly with no problem.
    Hope this helps.

  • How to embed html-file into swing

    hello,
    can anybody help me how to embed a html-file into a swing application??
    I try to write a swing-application, that connects to a Internetpage via Sockets.
    The problem is, that I can only see the sourcecode of the InternetPage in my JTextArea, but I want to see the whole Page just like in a browser.
    I hope anybody can help me to solve this problem, thanx mina

    u will need to use the JEditorPane component instead of Jtextarea.here is a url to help u get started
    http://java.sun.com/docs/books/tutorial/uiswing/components/simpletext.html#editorpane

  • How to embed a smartform into a component?

    Hi All,
    i would like to embed a smartform into the component to display the relevant information of complaint in WEB UI.
    In complaints when i clicked on complaint ID it is not not displaying any details? So i would like to add a smart form to the component to display all the details. Please help me how to add the smartform into the component?
    Thanks
    Maheedhar

    Hi pavan,
    I did not try this but I think you can call the smatforms function module and get the form in html from parameter JOB_OUTPUT_INFO-XMLOUTPUT-TRFRESULT.
    Put this into WD component using respective method. Compare Thread: [Add html code in web dynpro application|Add html code in web dynpro application]
    Regards,
    Clemens

  • How to embed a screenshot into a topic post/topic reply.

    Hi all,
    I wasn't sure which forum to post my question in, so since all my Discussions stuff opens in a browser window, I thought it might as well be in the Safari forum.
    My query is two-fold:
    1. How do I embed a screenshot into a reply so that the screenshot shows up in the same way as the screenshot itself, and not as a reference to myself e.g. if I drag the pic from my desktop, it shows up as "Users/My name/Desktop/Picture1.png" which I don't want on screen.
    2 the forums toolbar doesn't contain any formatting tools so that the above query can be effected. All I see are icons for 'Bold', Italics', 'Underline' and 'Spell checker'. There is, of course, the 'Preview tab', but I doubt that this will affect how I view the way my messages will appear to the viewer.
    Any assistance would be greatly appreciated.
    Message was edited by: sapper

    Hi
    I use Image Shack:
    Register here.
    Next, download their OS X Uploader.
    I choose "classic view" to see my library of images. After uploading an image via the Uploader, a tab opens to your Library page. The code for your post is the second one listed - Embeddable Code - Sites. Looks like this:

  • How to embed java application into flash player

    By using SWT flash, I able to embed flash player into java
    UI. But then now I want to embed the java application in flash
    player... Do it possible ?? or any export can help me or advice me
    on this? Thanks
    Regards,
    Sosseres

    Hi,
    In this case, you need to setup Single Sign-On (SSO) between your SAP Portal and Websphere.
    Please refer to the following URL:
    IBM WebSphere
    Here, you will find all the guides that explain how this SSO can be established. Under the General Section, you will find documentation that describe the SSO cases. Under the section of interoperability, you can find the guides like "How to Set Up SSO Between SAP NetWeaver Portal and IBM WebSphere Portal Using TAI".
    Use these guides to setup SSO.
    Regards,
    Shitij

  • How to embed finished project into a blog???

    Please help! How can I take my finished quiz and embed it onto my blog?
    ALSO,
    How can I incorporate html into my quiz? I have a photobucket slideshow I'd like to include in my quiz.
    THANKS!!!!!!!

    Hi there
    Please don't cross-post the same question to more than one forum category.
    For anyone choosing to reply to this question, please reply where it was first asked.
    You may do this by clicking here.
    Cheers... Rick
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • How to use Swing Components in  JavaFX

    Hi All,
    I am new to JavaFx. I am trying to use java swing components in javafx.
    I found a sample program in net and tried it. But it shows compile time error.
    Code:
    MySwingComponent .fx
    import javafx.ext.swing.SwingComponent;
    import javax.swing.JComponent;
    import javax.swing.JButton;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    * @author nandha
    class MySwingComponent extends SwingComponent{
    var button: JButton;
    public var text: String on replace {
    button.setText(text);
    public var action: function();
    override protected function createJComponent () : JComponent {
    button = new JButton();
    button.addActionListener(ActionListener {
    public override function actionPerformed(e:ActionEvent){
    action();
    return button;
    The above code shows no error.
    Test SwingButton.fx
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import swingcomponents.MySwingButton;
    * @author nandha
    Stage {
    title: "Swing Button Example"
    scene: Scene {
    width: 250
    height: 80
    content: [
    MySwingButton{  // error message: imcompatible type. found MySwingButton. Required javafx.scene.Node[]
    text: "Click Me!"
    action: function(){
    println("Hello World!");
    This code which used the MySwingButton shows error: imcompatible type. found MySwingButton. Required javafx.scene.Node[] - where i have added the MySwingButton.
    Please help me to fix the error.
    Thanks &Regards,
    Nandha K

    Hi Sasa,
    First thanks for your reply.
    I found the problem and have fixed.
    Problem:
    There is no class MySwingButton in the package swingcomponents. Its MySwingComponent that i should have used, which is a big mistake that i have done. To my surprise i don't know NetBeans didn't show any error message at that line.
    Thanks & Regards,
    Nandha K

  • How to embed 3d pdf into 2d pdf?

    I created a 3d pdf (outside of Acrobat) and would like to embed this file into a 2d pdf using Acrobat X. When I add Multimedia > 3D object and try to insert the 3d pdf file, Acrobat says that the file is not a supported file type. Is there a way to embed this directly (so the model can be seen when the 2d pdf is opened), rather than as an attached file or link? I would like to avoid using an U3D file, as the file became very large and responds slowly to commands.

    All you need is Acrobat.
    If you want to copy the entire page from the 3D PDF to the 2D PDF, open the page thumbnails sidebar in the 2D PDF, and from the options dropdown menu choose Insert Pages > From File. Pick your 3D PDF and choose where you want the page to be inserted. You can also open both files in separate windows, and drag the page thumbnails from one to the other (not the pages, the thumbnails).
    If you want to copy just the 3D annotation, open both files in separate windows, and open the Tools Pane > Content Panel in both so you can activate the "select object" tool - the big black arrow. Click the 3D annotation to select it, then choose edit>Copy (Ctrl-C), then in the destination PDF file choose Edit>Paste (Ctrl-V). You can move and resize the annotation while you have the select object tool enabled, and any embedded 3D scripts, views, poster images etc will be preserved.
    The only thing you may find is if the source and destination pages are in different orientations, copy/paste may rotate the poster image. To fix that, right-click the pasted annotation and choose Properties, then re-create the poster image.

  • How to embed exsisting image into Swing programme?

    Just wondering, is there anyway to embed an exsiting image into swing programme, like a .jpg or .gif? Thanks!

    It's also nice to package it in the .jar file. If you put it in "rc/image.jpg" (relative to the root of the jar file) you can do something like this:
    new ImageIcon(getClass().getResource("/rc/image.jpg"));

  • How to embed an Applet into html

    Hi, I've an applet called IDrive written in Eclispe which works perfect there, I've been trying to paste the IDrive class file into my html folder and embed my applet by trying e.g.
    <applet code="../css/IDrive.class" width="300" Height="400">
    </applet>css is a folder outside the folder which contains the html file in which im trying to embed my Applet
    but no matter what I do i keep getting class not found error's, and as im totally new to applets I hope someone could please help me....
    Thanks

    I suggest you look at the applets under the demo directory and how they are done.
    Here are also some tutorials.
    [http://www.google.co.uk/search?q=applet+html+tutorial]

  • How to Embed InDesign doc into a MFC Program?

    Hi everyone,
    I am working with a distributed editing system. It requires to deal with several documents from several layout design software, such as InDesign, Word,Quark,and so on.
    Now, my problem is: Can InDesign doc, (.indd files), be embeded into a MFC software or Windowns Form software? Is there any plug-in or component to do it?
    PS: the "embed" should not be the static form,like JPEG,or PDF..., It should not lost the text format information!
    thanks a lot!

    Is there any ActiveX control?

  • How to embed audio clips into pdf document

    Hello I have a two-hour lecture I've transcribed. There are about 20 paragraphs. I want to embed the audio of the lecture into the pdf document so that when the reader clicks on a paragraph or on a button/control near the paragraph the audio for that particular paragraph starts up. An ideal version of this would be in pdf format and would allow the reader to click anywhere in the pdf and have the audio start from that point. I've never embedded audio before. I also have InDesign, Lightroom and Photoshop and can use them to embed audio before exporting to pdf.

    The exact process will depend on the version of Acrobat you have. In AA7, I just selected TOOLS>Advanced Editing>Sound Tool and added a sound file to the document. There were options for AA5 and AA6 compatibility as well as for embedding the sound file in the PDF.
    When you select the sound file, it asks if you want to play the file or accept the file as trusted for future requests. The file then played just fine. When I added the link, I was given a box to use to surround the area of interest on the page. You can set the border color and such (like make it invisible, though that might confuse folks).
    I am not sure what more you want. It is possible to add audio to open when you open the page also as well as set timing for the page. That would provide a way for the person to essentially have a lecture presented on your system without having to intervene. For the playing of the pages and timing, you may ahve to have the file open in full-screen, not sure.

  • How to Embed FPM ABAP into a WebDynpro ABAP Application

    HI all,
    I've embedded a custom  FPM component a custom WebDYnpro application and I've coded this:
          DATA: lo_usage TYPE REF TO if_wd_component_usage,
                ls_conf_key TYPE wdy_config_key.
          lo_usage = wd_this->wd_cpuse_po_manage_fpm_usage( ).
          IF lo_usage->has_active_component( ) = abap_true.
            lo_usage->delete_component( ).
          ENDIF.
          ls_conf_key-config_id = 'ZWD_SRM_PO_MANAGE_OIF'.
          TRY.
               CALL METHOD lo_usage->create_component
                EXPORTING
                  component_name   = 'FPM_OIF_COMPONENT'
                  configuration_id = ls_conf_key.
            CATCH cx_wd_runtime_api .
          ENDTRY.
    My application is called (debug stops) but the screen that's rendered is an empty screen with Start and Close buttons (the initial screen which is normally displayed is not in this case).
    What could the problem be?
    Also, how can I pass parameters to my FPM application? (According to the PDF guide, app_parameters can't be used!)
    Thank you.

    Hi ,
    Did you find a solution to your problem?. I'm trying to do the same kind of thing and have the same problem.
    Thanks.

  • How to embed a website into WEBI doucment

    I have seen some posts where website can be inserted in WEBi and a hyper link can be created a between webi data and website, passing the values. How can i do this? I have never used IFRAME, can anyone provide me the steps to open IFRAME and embed the website. Thanks in advance.

    Hi Rithesh Makkena,
    Can you please see if the following link is useful:
    http://scn.sap.com/thread/3332295
    BR
    Prabhith

Maybe you are looking for

  • Distorted video on youtube & colored pixels/ squares appearing

    My problem is when viewing videos on Youtube using safari or firefox I keep getting small colored squares moving across the video whilst its playing and also sometimes the video becomes distorted in places. This happend a few weeks back and then stop

  • Official BPM 11g API

    In the Mastering BPM Series there was a presentation yesterday about using the BPM 11g API. Can anybody point me to the official Oracle BPM 11g API? In particular the webinar used oracle.bpm.client.* and oracle.bpm.services.*. I suppose I can hunt fo

  • Two screens on intel imac 17" possible???

    At my old job I worked on a mac ppc tower and I used 2 monitors which I found very useful (I didnt set it up myself) My question is..is it possible to do the same with my new intel imac? Can I use my old pc monitor as a 2nd screen or not? If its poss

  • Flash plugin on windows 7 teardown the TCP session immediately after successful SSL handshake

    I have a RHEL platform in which tomcat is listening on 443 port. Scope of Problem: With the latest flash plugin, i am experiencing issue with Firefox on SSL port on Windows platform. i.e. Everythig works fine on non-SSL mode on Firefox, Chrome, IE on

  • Sharing ipod songs at work

    hello, i've got a video ipod and iupdate it on my home computer. at work we all share our tunes, but i can't seem to share my ipod, only my library, which obviously at work has nothing in it. How do i share my ipod with my workmates (not the library)