How to add a SwingComponent to a Scene which can resize dynamically ?

Hello,
I would like to add a custom swing component to a Scene (am using SwingComponent.wrap(..) approach) however I would like to know how to enable dynamic resizing of my component when my JavaFX scene is resized by the user ?
any info appreciated,
-A

I am going to have to award myself the Duke points. Surprising no one replied to this..
Anyway for anyone looking at this in future here is how I solved this problem:
Used the excellent Grid layout from JFXtras project allowing the following:
import org.jfxtras.scene.layout.Grid;
import org.jfxtras.scene.layout.GridConstraints;
import org.jfxtras.scene.layout.Row;Then my Stage was set like this (obviously this applies to any component) - I was just looking for Swing:
Stage {
    title: "JavaFX Dynamic Resize Layout"
    resizable: true
    var theScene: Scene;
    scene:
    theScene = Scene {
        content: [
            Grid {
                width: bind theScene.width
                height: bind theScene.height
                rows: [
                    Row {
                        cells: [
                            Cell {
                                hgrow: GridConstraints.ALWAYS
                                vgrow: GridConstraints.ALWAYS
                                halign: GridConstraints.HFILL
                                valign: GridConstraints.VFILL
                                content:swingComponent
}Simple really....
Edited by: AlanOL on Feb 23, 2009 12:49 AM

Similar Messages

  • How to add hp printer in windows xp which is in a wireless network?

    how to add hp printer in windows xp which is in a wireless network?

    What printer?
    In general, you can download and install the latest software for your printer from the "Support & Drivers" link at the top of this page.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • How to add docentry with some num.?can you solve below query   Declare @a as Numeric SET @a=14900000; SELECT (@a+($[@MAINTDCHEAD.DocEntry])as 'series no'

    how to add docentry with some num.?
    can you solve below query
    Declare @a as Numeric
    SET @a=14900000;
    SELECT (@a+($[@MAINTDCHEAD.DocEntry])as 'series no'

    Hi,
    Yes possible.
    Try this:
    Declare @a as INT
    SET @a=14900000;
    SELECT (@a+($[ORDR.DocEntry]))
    Thanks & Regards,
    Nagarajan

  • How to build a wsdl which can cater dynamically to number of attachments

    We have a WebService client that calls a Webservice on the Server.
    When the client calls the webservice , it passes the SOAP message(Header,Body & MIME attachments)and these attachments vary in number based on different business requirements.
    We know how to build WSDL for server with static number of attachments,but no clue on how to build a wsdl which can cater dynamically to number of attachments comming from client request.
    - thanks in advance

    Hello,
    We may have multiple approaches here depending of :
    - which version of the product you are using
    - what are your clients in term of stack, and API they are willing to use
    - which encoding did you use for your WS (swa, swaRef or dime)
    So for my answer I am documenting how to do it on OracleAS 10gR3 (10.1.3), using swaRef approach.
    The easiest way is to exchange array of binary data and describle that in the WSDL, so in my case the WSDL element that is used will look like that:
    <element name="filesResponseElement">
    <complexType>
    <sequence>
    <element name="result" type="ns1:swaRef" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    </element>
    This will generate from the Java code an array of AttachmentPart[].
    Regards
    Tugdual Grall

  • How to add a link to html region to fire a dynamic action?

    Hi, guys:
    I need to add a hyper link to a html region (I wish it could be a button :( ) , the value of items in this region is loaded by a pl/sql process before loading header. And this link needs to fire a dynamic action to update database. I know how to add a hyper link to this region, but how to set this link so I can fire a dynamic action by clicking this link, could anyone give me a hint?
    Thanks a lot in advance.
    Sam
    Edited by: lxiscas on Apr 11, 2013 5:04 PM

    Hi, Jorge:
    Thanks for your reply. I cannot use updateRec, I have to use my own PL/SQL procedure. I tried to use similar way as people set dynamic action for modal page.
    I set column link for ncic_approve_link
    SELECT SOR_ALIAS.ALIAS_ID,
    SOR_ALIAS.OFFENDER_ID,
    SOR_ALIAS.FIRST_NAME|| ' '|| SOR_ALIAS.MIDDLE_NAME|| ' '|| SOR_ALIAS.LAST_NAME || ' ' ||  SOR_ALIAS.SIR_NAME   AS " Alias Name ",
    NVL(SOR_ALIAS.NICKNAME, 'No Nick names ') AS "Nick Name",
    (case when SOR_ALIAS.ncic_verify_date is null then 'NCIC' else null end) ncic_approve_link
    FROM SOR_ALIAS
    WHERE SOR_ALIAS.OFFENDER_ID    = :p216_detail
    AND SOR_ALIAS.ADMIN_VALIDATED IS NOT NULL
    AND upper(SOR_ALIAS.STATUS)    = upper('active')the link attributes is
    onclick="return false;" class="alias_ncic" title="NCIC Approve"then I pass two values to two hidden variables:
    P216_H_NCIC_APPROVE_TABLE_NAME--->'SOR_ALIAS'
    P216_H_NCIC_APPROVE_KEY_VALUE--->#ALIAS_ID#
    and I declare a dynamic action to execute PL/SQl code as :
    event: click
    selection type: JQuery seclector
    JQuery selector: a.alias_ncic
    declare
    begin
      sor_admin.update_NCIC_verify_date(:P216_H_NCIC_APPROVE_TABLE_NAME, :P216_H_NCIC_APPROVE_KEY_VALUE);
    end;However, the PL/SQL was called but raised exception that both the parameters are null. It looks when user click the column link, the value is not passed to hidden items. Could you help me on this?
    APEX 4.1
    Oracle 11G R2
    Thanks.
    Sam
    Edited by: lxiscas on Apr 29, 2013 10:00 AM
    Edited by: lxiscas on Apr 29, 2013 10:01 AM

  • How to add a column to a list created with the Dynamic List Wizard to display the values of the fiel

    Hi,
    ADDT, Vista, WAMP5.0
    We have 2 tables: clients_cli (id_cli, name_cli, tel_cli, and several more fields) and cases_cas (id_cas, idcli_cas, court_cas, and a lot of other fields).
    Clients may have many cases, so table cases_cas have a foreign key named idcli_cas, just to determine which case belongs to which client.
    We designed the lists of the two tables with the Dynamic List Wizard and the corresponding forms with Dynamic Form Wizard.
    These two forms are linked with the Convert Dynamic List and Form Wizards, which added a button to clients list named "add case".
    We add a client and then the system returns to the clients list displaying all clients, we look for the new client just added and then press "add case", which opens the Dynamic Form for cases, enter all case details and everything processes ok.
    However, when we view the cases list it display all the details of the case, including the column and values for the foreign key idcli_cas. As you can image, it is quite difficult for a human to remember the clients ids.
    So, in the cases list we added a another column, named it Name, to display the names of the clients along with cases details. We also created another recordset rsCli, selected the clients_cli table, displaying all columns, set filter id_cli = Form Variable = idcli_cas then press the Test button and everything displays perfect. Press ok.
    Then, we position the cursor inside the corresponding cell of the new Name column, go to Bindings, click on name_cli and then click on insert. The dynamic field is inserted into the table cell as expected, Save the page, and test in browser.
    The browser call the cases list but fails to display the values of the Name column. The Name column is simply empty.
    This issue creates a huge problem that makes our application too difficult to use.
    What are we doing wrong?
    Please help.
    Charles

    1.     Start transaction PM01, Create Infotype, by entering the transaction code.
    You access the Create Infotype screen.
    2.     Choose List Screen.
    3.     In the Infotype no. field, enter the four-digit number of the infotype you want to create.
    When you specify the infotype number, please remember to enter any leading zeros.
    4.     In the Screen Number field, enter the screen number of the list screen you want to enhance.
    5.     Choose Create.
    The Dictionary: Initial screen appears:
    6.     Create the list screen structure.
    7.     Choose Activate.
    8.     Return to the Enhance List Screen in the Enhance Infotypes transaction (PM01).
    9.     Choose Create All.
    The additional fields are displayed on the list screen, however, they contain no data.
    The fields can be filled in the FORM routine FILL-LISTSTRUCT in the generated program ZPnnnn00. The FORM routine is called for each data record in the list.
    Structure ZPLIS is identified when it is generated with a TABLES statement in the program ZPnnnn00.
    The fields can be filled from the Pnnnn structure or by reading text tables.

  • How do I delete caches in Lion and which can I delete?

    How do I delete caches in Lion and which ones can be deleted?

    you can delete all of them, they will be recreated as soon as the app opens again.
    Clearing Local Caches
    quit all open apps
    open Finder press "shift+command+G" and type ~/Library/Caches
    Drag all files and folders to the trash
    Enter login password when prompted
    Reboot
    your system may seem slower after reboot, this is because the caches are being rebuilt.
    Clearing Application Caches
    quit all open apps
    open Finder Press "shift+command+G" and type /Library/Caches
    Drag all files and folders to the trash
    Reboot

  • How to add a second page to scene selections link

    I imported a QuickTime that has 12 chapter markers.  iDVD automatically creates the main page that has two links:  "Play Movie" and "Scene Selection".  When I try to burn the DVD, I get an error telling me that the "Scene Selection" page has more than 12 buttons.   If you add the 12 scene titles and the back arrow button, then there are 13 buttons.  Therefore, I must add another page that will contain at least one of the 12 scene titles.  My question is, how can I keep the one main page so that when I click on "Scene Selection", it takes me to a second page that has a few scene titles and also has a page advance arrow that if clicked, will take me to the next page of scene selections.  The only way I can figure out how to do it is to have the main page contain two links: one for scenes 1 - 6 and one for scenes 7 - 12.  What am I missing?  Thanks for any help.

    On the scene selection page use the "+" button to create a new submenu page:
    Select the last scene link, go to the submenu and paste.  Go into the Preview mode and make sure the link works.  Then go to the first scene selection menu and delete that last scene link.
    If you copy and paste more than one link to the subkmenu remember the order they are added to that menu determines the order they will be highlighted when using the DVD player's remote device.
    OT

  • How to Add a series in Demantra Worksheet which calculates qtr to qtr value

    Hi All,
    I am not sure if this is the right thread that i am posting this message.
    My worksheet has Four Rows(one for each quarter) of data for each item. I need to define a series in Worksheet
    which subtracts data from a couple of series from the previous quarter. For
    Example the series for the 2nd quarter must subtract the revenue and non
    revenue shipments from the first quarter and put the value in the series in the
    2nd quarter. How can I do it?
    Thanks in advance

    Hi user630001,
    Welcome to this wonderful forum to discuss anything related to Demantra.
    I am assuming that you have values for "series_1" and "series_2" in qtr 1, qtr2, qtr3 and qtr4 that you need to use in a new series called "result_series" and that the result in the new series is given by:
    (result_series) for qtr4 = series_1 for qtr3 - series_2 for qtr3. Here qtr1 is the earliest quarter and qtr4 is the latest.
    To fulfill the above requirement,create 2 new series called "timeshifted_series_1" and "timeshifted_series_2" and copy the previous quarter's values into the present quarter (means copy qtr 3 values of series_1 and series_2 into timeshifted_series_1 and timeshifted_series_2 for qtr4)and use these two new series while calculating the "result_series" (means result_series = timeshifted_series_1 - timeshifted_series_2 ).
    In short create timeshifted series to have values from the previous quarter and utilise the timeshifted series for the calculation in the resultant series.
    For copying the series_1 and series_2 into the timeshifted_series_1 and timeshifted_series_2 series you can use the rolling data functionality available in Demantra.
    Hope this helps.
    Thanks and Regards,
    Shekhar

  • Hi, everyone, how to add subject of the email by which my smartform is sent

    I use the three interface parameters in smartform including mail_recepient_obj, mail_sender_obj, and mail_app_obj, and I use three function modules to import the three objects, does anyone know that which I should give value to to make the subject I want? thank you!

    Hi,
    Check this link. I am explaining the procedure of sending smartform output by mail.
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e

  • How to set web job like a ssis which can take xmil file from azure storage to up date azure sql

    Hi,
    I have xml files under azure storage, i would like to set up web job which should be scheduled and
    load xml to update/insert/delete azure database.
    I have done SSIS locally and but cant use in azure.
    According to several advices and forum pages,I need to create azure web job.
    Please advice link or advice.
    Thanks.
    Superman

    Hi,
    To get started with Azure webjobs you could refer the following link:
    http://azure.microsoft.com/en-in/documentation/articles/websites-dotnet-webjobs-sdk-get-started/
    The article shows how to create a multi-tier ASP.NET MVC application that uses the WebJobs SDK to work with Azure blobs in an Azure Website.
    Meanwhile, we will research regarding your specific requirement and revert with our finds.
    Regards,
    Malar

  • How to use a dropdown in a workbook which can work in different queries?

    Hi Experts,
            I have created a workbook which can display the query by using the 'Push Button'. One query is based on material analysis and another one on product analysis.
            It works good..
            In that workbook, I want to use a dropdown so that it can display the required key figure. (Note : In both the queries, key figures are same.)
            While selecting the keyfigure option in the properties of dropdown, the target data provider is not visible.
            So, pls help me to use the dropdown which can work in both the queries.
    With Regards,
    Yokesh Kumar.

    Hi,
    After fixing the error in the role I noticed that all I should do is to publish the querry in a new role.
    From that moment a user that is tied to new role can read the old report using the rights associated in a new role.
    Thanks for help.
    Regards. Leszek

  • How to add an app to a key combination

    How to add an app to a key combination

    You can do it with Automator, although it's harder than in Windows.
    Example:
    How to Launch Any App with a Keyboard Shortcut
    I like to press the Spotlight keyboard shortcut and then use type-ahead and Enter to launch. When Spotlight is open, if I start typing "wo" Microsoft Word will be highlighted and then I just press Enter to launch it.

  • How to add a new SIT in HRMS?

    How to add a new SIT in HRMS? Can I do it using Other Definitions?[i] What is the navigation for it?

    1. Create Personal Analysis Key Flexfiled as per your requirement thru System Administrator
    2. Register / Select the Pesonal Analysis KFF in SIT form under other definitions.
    Navigation: HRMS responsibility => Other Definitions => Special Info Types
    3. Select your Personal Analysis KFF from LOV and select the check boxes in whichever the form you want to use this SIT. (Ex: People form, Job form or Position form etc..)

  • How to add a wifi camera to photo stream

    How to add a wifi camera to photo stream

    You can't. Photostream requires an iOS device.
    iPhoto menu -> Provide iPhoto Feedback for feature requests.

Maybe you are looking for