Resizing the wrapped swing component inside the javafx stage

I have a customized swing component & need to wrap it in javafx stage. But as & when the javafx scene resizes, I want to resize the swing component accordingly.
One way of resizing this is to scale the swing component. But is there any other way or layout to do it efficiently.
--Nitin Pokalwar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Hello
<p>Let's have a look at this Forms PJC/JavaBean site</p>
Francois

Similar Messages

  • [svn:fx-trunk] 12025: Switching out the old video component for the new video component that uses OSMF .

    Revision: 12025
    Revision: 12025
    Author:   [email protected]
    Date:     2009-11-19 17:48:04 -0800 (Thu, 19 Nov 2009)
    Log Message:
    Switching out the old video component for the new video component that uses OSMF.  Also fixing RSL issue with OSMF because a change in flex-config.xml accidentally got overwritten.  Also fixing a bug caught during the last code review where you would set the volume on the VideoPlayer, but the volumeBar wouldn't be made aware of that change.
    Switching out the video component results in many API changes.  The changes are highlighted below:
    Class name changes:
    - spark.primitives.VideoElement is being renamed to spark.components.VideoDisplay
    - spark.components.mediaClasses.StreamingVideoSource is renamed to park.components.mediaClasses.DynamicStreamingVideoSource
    - spark.components.mediaClasses.StreamItem is renamed to park.components.mediaClasses.DynamicStreamingVideoItem
    VideoDisplay/VideoPlayer event changes:
    The new video component's events are:
    - bytesLoadedChange : org.osmf.events.LoadEvent
    - currentTimeChange : org.osmf.events.TimeEvent
    - durationChange : org.osmf.events.TimeEvent
    - mediaPlayerStateChange : org.osmf.events.MediaPlayerStateChangeEvent
    The old video component's events were:
    - close : spark.events.VideoEvent (removed)
    - complete : spark.events.VideoEvent (replaced with mediaPlayerStateChange)
    - metaDataReceived : spark.events.VideoEvent (replaced with mediaPlayerStateChange)
    - playheadUpdate : spark.events.VideoEvent (replaced with currentTimeChange)
    - progress : flash.events.ProgressEvent (replaced with bytesLoadedChange)
    - ready : spark.events.VideoEvent (replaced with mediaPlayerStateChange)
    VideoDisplay/VideoPlayer property changes:
    Renames:
    - maintainAspectRatio:Boolean has been renamed to scaleMode:String and rather than true/false, it now access 4 values: none, zoom, letterbox, and stretch.  See the enum class org.osmf.display.ScaleMode.
    - playheadTime:Number has been renamed to currentTime:Number
    - playWhenHidden has been renamed to pauseWhenHidden, and it's "tense" has been reversed.  So playWhenHidden = true correlates to pauseWhenHidden = false.  Also, before we would only pause when the video component was explcitly set to visible=false, but now we detect if the video components or any of it's ancestors have been hidden.
    - totalTime:Number has been renamed to duration:Number
    New properties:
    - bytesLoaded:Number This is a new property not available on the old video component
    - bytesTotal:Number This is a new property not available on the old video component
    - loop: Boolean this was a property added a while ago on the old video component but not in the original video player spec
    - mediaPlayerState: this is a new property that details the state of the video component.  See org.osmf.media.MediaPlayerState for all the possible values.
    - seekToFirstFrame:Boolean (pending PARB approval) - This is a new property available on VideoDisplay/VideoPlayer.  When autoPlay = false, if seekToFirstFrame is set to true, then we will connect to the server to start downloading the video, figure out the size of the video and resize appropriately, and show the first frame of the video.  If seekToFirstFrame is false, then no connection to the server is made, there's no implicit size for this video, and the first frame will not be show automatically.  By default the value of this property is true.  In the old video component, when autoPlay = false, we always has the same behavior as seekToFirstFrame = true.  Now it is controllable through this property.  Eventually, (not for Flex 4.0), we will most-likely have support for a thumbnail source or a splash screen so the video's preview will show up without making an unneeded connection to the server.  The property name may change depending on PARB.
    Other changes:
    - autoRewind: The default of autoRewind is now true instead of false
    - enabled: before we paused the video when the video component was explicitly set to enabled = false.  Now we pause the video when the video component or any of it's ancestors have been disabled.
    VideoPlayer-only changes:
    - videoObject:flash.media.Video property is now a new property on VideoPlayer.  It was previously only on VideoDisplay.
    - The skin states for the old VideoPlayer were: connectionError, disabled, disconnected, loading, playing, stopped, connectionErrorAndFullScreen, disabledAndFullScreen, disconnectedAndFullScreen, loadingAndFullScreen, playingAndFullScreen, stoppedAndFullScreen.  The new skin states are: uninitialized, loading, ready, playing, paused, buffering, playbackError, disabled, uninitializedAndFullScreen, loadingAndFullScreen, readyAndFullScreen, playingAndFullScreen, pausedAndFullScreen, bufferingAndFullScreen, playbackErrorAndFullScreen, disabledAndFullScreen
    DynamicStreamingVideoItem property changes:
    - bitRate:Number renamed to bitrate:Number
    DynamicStreamingVideoSource property changes:
    - initialIndex has been added to DynamicSteramingVideoSource
    - live:Boolean has changed to streamType:String which accepts values: live, recorded, any.  See the enum class org.osmf.net.StreamType for more info.
    - serverURI:String renamed to host:Object
    - streamItems:Array has changed types to streamItems:Vector.
    ScrubBar property changes (THESE CHANGES ARE NOT DONE YET, BUT SHOULD BE DONE SOON)
    - bufferedStart will be removed
    - bufferedEnd will be renamed to loadedRangeEnd.  This property name still may change depending on PARB.
    - bufferedArea skin part needs to be renamed.  Probably will be renamed to loadedArea.  PARB still deciding.
    QE notes: -
    Doc notes: -
    Bugs: -
    Reviewer: Kevin
    Tests run: checkintests
    Is noteworthy for integration: Yes
    Modified Paths:
        flex/sdk/trunk/frameworks/flex-config.xml
        flex/sdk/trunk/frameworks/projects/spark/defaults.css
        flex/sdk/trunk/frameworks/projects/spark/src/SparkClasses.as
        flex/sdk/trunk/frameworks/projects/wireframe/build.xml
        flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/VideoPlayerSkin.mx ml
        flex/sdk/trunk/frameworks/spark-manifest.xml
    Added Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VideoPlayerSkin.mxml
    Removed Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer2.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/StreamItem.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/StreamingVideo Source.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/VideoElement.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/VideoElement.png
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VideoPlayerSkin.mxml
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/VideoPlayerSkin2.mxml

    I've got that same problem: iPod Touch 2nd Gen, Apple Component Cables, and an HD TV.
    The funny thing is, the cable works fine with an iPod Classic (160 GB) but not for the iPod Touch. Can anyone explain why that is?

  • Append hyphen automatically after the wrapping of text in the dimension field

    Post Author: Nita_here
    CA Forum: WebIntelligence Reporting
    I want to Append hyphen automatically after the wrapping of text in the dimension field.
    e.g the text reads "I want to wrap this text". then if cell width exceeds after "I want to wrap" then it should be displayed like this "I want to wrap-" "this text".
    Thanks in advance,
    Nita

    Post Author: Nita_here
    CA Forum: WebIntelligence Reporting
    Thanks for your input.
    Let me tell you what I have understood. I will create a variable having the formula (which i have earlier written) in universe. Whenever i need to use the formula in infoview, I will call the variable instead. That's fine. But again, I will have the same problem. If I do any change in infoview level, the cell width is bound to change as it is not the free standing cell, its a column among othe one. e.g.
    A  B  C
    1  2  3
    4  5  6
    (you can think B as the column). Any change(addition, deletion of columns) will certainly change the cell width of B. So, again I need to calculate the things, which i dont want.
    Nita_here: I manually calculated that after 12 characters, the cell wraps the text.
    I wonder if there would be a way to do the things dynamically.
    Thanks in advance,
    Nita

  • How do you take out the quarter sized battery inside the computer?

    How do you take out the quarter sized battery inside the computer?

    Hi,
    We do not know your computer therefore can not say how. In general, open the case, locate it (RTC or CMOS battery), disconnect cables (if any) and pull it out.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • May I know how to change the color of texts inside the indicator box?

    Can anyone tell me how to change the color of texts inside the indicator box? I have tried to use property node but not really know how it functions.
    In fact, I am writing a program for which the number inside indicator on front panel will show red color if the measured value can't reach the requirement. I am using LabView 6.1 Professional
    Thank You for your attention!!!!!!

    Simply use a property node with "NumText.TextColor" and wire the correct color depending on your test result.
    The attached simple example (LV 6.1) lets you change it from the front panel. In your case, you would use your test output instead of a FP switch, of course. Message Edited by altenbach on 05-25-2005 09:05 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    TextColor.vi ‏18 KB

  • The Synch Manager component on the server is most likely unavailable.

    HI,
    I have user , I am able to login my own user id PSANTU in server data base, after that I had create Mobile Client/Replication Server with my user name : PSANTU , the I had go to Server management and -> Jobs and put comment /job Database Extract, then I had go job parameter set the parameter , Client Database encryption method:-None ,
    Client Name:-PSANTU( my Id), Encrypt client Db password: False
    Then I had submit the jobs , after 5 mint I got Status is success .
    Then I had go ODBC connection here set DSN confiner, set , I got successfully , connection establish , then I had go SIEBEL tools I had try to login Local database , I am getting error here this my
    Error : Cannot open connection to SPSIEBTRANING4 (this my server ). The Synch Manager component on the server is most likely unavailable.      
    Plz help me how I can create local database in my local machine
    Thanx
    Edited by: razagold on Aug 2, 2010 10:52 PM

    Hi,
    Have u extracted Local lDB on SADMIN . If not then there is no local DB to get connected so error is valid.
    Extract Local DB at server client as SADMIN then populate Local DB
    else
    Check the parameters for sync manager.set max tasks = 100 & restart the component.
    Check ODBC connection as well.
    Regards,
    Joseph

  • Cannot open connection to dvsrv1: The Synch Manager component on the server

    Hi Experts,
    I extracted batabase for the mobile client successfully, but when trying to initialize the lcal database, Getting the following error:
    Unable to Connect to server>
    <Cannot open connection to dbsrvr1. The Synch Manager component on the server is most likely unavailable.>
    <Internal: connect() failed: Connection timed out.>
    I do not have port number mentioned over here as this installation is in my personal laptop.
    As I understnd all the ODBC connections are working fine. It would be great if get here some suggestion to do some extra check if required.
    In my system DSN in ODBC I could see number of DSN have been present, one for local DBF, one for sample, one for server which I belive I created during the DBserver configuration as external. and could fine one more DSN not sure what for it is.
    If the ODBC would not have been configured properly then I belive I should not be get connected to application through thin and thick client.
    Any suggestion on this would be helpful
    Thanks
    Deepak

    HI Deepak,
    I have seen a similar problem back here there are two locations in your tools.cfrg where you may will need to make changes.
    1.
    [InfraObjMgr]
    RequestServerName =
    2.
    [Local]
    DockConnString =
    In both the cases you need to mention the Application server name .
    Kindly let me know if this actully solves your issue.
    Thanks
    Vishal

  • Is it legal to use the iPhoto slideshow video inside the third party iPad enterprise application?

    Hi,
       we are developing one enterprise application specifically for iPad.Kindly advise me is it legal to use the iPhoto slideshow video inside the third party iPad enterprise application (slide show with images)?
    Thanks in advance.

    Thanks Terence for your reply. I mean  for "the iPhoto slideshow video" is : I have collection of my own images , using iPhoto software i created a slideshow based on 'origami' theme and exported as a video file. Can I use that video in my enterprise iPad application?
    Thanks.

  • Unable to find the Facet Ref component in the component palette in 11.1.2.1

    I am unable to find the Facet Ref component in the componet palette in 11.1.2.1? Can anyone tell me where to find this component? Thanks.

    I have the same problem working in the TUHRA2 Tutorial in Oracle JDeveloper 11g Handbook: A Guide to Oracle Fusion Web Development Chapter 17 Page 623. "1. You can use the Facet Ref component to indicate ... Drag a Facet Ref into ... "
    No such component in the JDF Faces or any other Page Type in the Component Palette. I have the source code from http://java.net/projects/tuhra2/sources/tuhra2/show/trunk/ChapterZips?rev=2. The zip file C17-IV.zip has the file tuhraTemplate.jspx. In that file, on line 15 is a <af:facetRef factName="content"/>. How they got it there is beyond me, unless this version JDF Faces lost the tag.
    Jdeveloper 11g Release 2 (11.1.2.1.0)
    Build JDEVADF_11.1.2.1.0_GENERIC_110907.2314.6081
    Java(TM) Platform     1.6.0_24
    Oracle IDE     11.1.2.1.38.60.81
    Versioning Support     11.1.2.1.38.60.81
    Have you had any luck?

  • Can someone explain the functionality of the 50-pin connector inside the SCXI-1600 board

    Hello,
    please explain the functionality of the 50-pin connector inside the SCXI-1600 board.
    I would like to have the pinouts (explanation) of this particular connector
    kind regards
    the lab mouse

    Hi,
    Using the SCXI-1600 for anything other than controlling a SCXI chassis is NOT supported by NI!
    The SCXI-1600 is based on a 16-bit MIO board. There is some additional functionality that is not used while controlling the SCXI chassis. The SCXI-1600 has 8 analog input channels, 8 DIO channels, and 2 counters; there is no analog output support on this board. There is a 50-pin connector inside the SCXI-1600 that can be used to access all of these channels.
    Through Daqmx and Internal I/O filtering you can access these channels trough software. There is no pin-layout available because we do not support this.
    Regards.
    JV
    NI Belgium

  • Has Apple stopped installing the liquid contact indicator inside the SIM slot opening on the 6 & 6+?  I've inspected several devices and they are not installed.

    Has Apple stopped installing the liquid contact indicator inside the SIM slot opening on the 6 & 6+?  I've inspected several devices and they are not installed.

    I don't know that Apple has ever officially commented on such things, one way or another. Places like ifixit will be your best sources for such information - https://www.ifixit.com/Answers/View/200937/How+many+water+indicators+or+sensors+ are+there+in+the+iPhone+6
    certainly none of us fellow users know what Apple's official current policies in such things are.

  • Accessing the text/property file inside the root context

    Hi
              I want to access the property file lying inside the root context folder
              via plain java classes using IO.
              Could you please help me out.

    Hi
    Using this.getClass().getClassLoader().getResource("config_settings");
    In order to load the properties file, uses the classpath search mechnism.
    Basically it means that java will look for your file in the classpath.
    The defualt class path of a web server is usualy the following:
    ContextName/Web-Inf/Classes;ContextName/Web-Inf/lib
    This is why it is working for you when you put your properties file under ContextName/Web-Inf/Classes, but it doesnt work when it is under ContextName/*, as this is not a part of the classpath search.
    You have 3 options:
    1.Put you properties file under the sever defulat classpath
    (ContextName/Web-Inf/Classes;ContextName/Web-Inf/lib,if it's under lib, the file has to be inside a jar file)
    2.Add ContextName/* to your server classpath ( in tomcat->setClasspath.bat file )
    3.Instead of using "this.getClass().getClassLoader().getResource("config_settings"
    read your file directly using the java.io.* library and give it the full path to the file,
    you can store the full path in web.xml file, or using getServletContext().getRealPath("") to locate the context path and read the file from there( but then you are using the Servlet API )
    Hope it helps
    all the best
    tal

  • Targeting the EdgeID object from inside the animation

    I've been working on an animation that displays content pulled in from json files.  The height of the content pulled in is determined and then the Stage height is adjusted to fit the total content. This works well by itself. See http://www.jomariworks.com/edge-json (Only west coast links are live. Project files http://www.jomariworks.com/edge-json/edge-json.zip)
    Now I'm embedding the animation in a page using the oam insert feature, which creates an object with a fixed size.  When the animation adjusts the stage height, the object window size does not change. When the content is longer than the object window, the content scrolls.
    Is there a way I can target the height of the object (id is EdgeID) during the execution of the animation?
    The live version of this can be viewed at  http://reconnectingamerica.org/spacerace/index.php.  The project files at http://www.jomariworks.com/edge-json/edge-json.zip are the same as far as functionality goes.
    Thanks in advance for any help.

    After being unable to discover how to target the height of the object containing the embedded edge animation, I have gone back to having the entire page part of the animation file.
    The final web page is online at http://reconnectingamerica.org/spacerace
    There are big disadvantages of this:
    The full web page has more than 7000 lines of HTML.  Making changes in Edge Animate is a VERY slow process.
    Edge Animate corrupts the HTML in the file. This file contains complex TABLEs.  After making changes in Edge Animate and saving those changes, the TABLE headers are all corrupted (e.g. closing THEAD tags are moved above the head content and several closing TR tags are relocated. For the record, I checked.and the original HTML is syntactically valid.).  To deal with this I removed the tables when editing in Edge Animate and after making changes and publishing the Edge Animate version of the HTML I restored the tables.
    Working separately on the animation and then embedding is clearly the better workflow in this situation. Unfortunately, I needed to be able to resize the embedded animation's object container in the same way I was able to adjust the Stage from inside the animation.  Not being a jQuery wizard I couldn't figure out how to target the height of the animation's parent container.  Still interested in finding out how to do that if anyone can help.
    Message was edited by: jomariworks

  • Using the HTML SAP GUI inside the Enterprise Portal?

    Hello everyone
    In our company we plan to set up the SAP Enterprise Portal (NetWeaver 7.0). The first application we want to provide inside the portal is the SAP GUI that connects to our SAP ERP 2005 system via single sign on. Therefor two different approaches exist:
    1: Using the standard SAP GUI inside a portal iView. In this case every client pc needs the SAP GUI installed.
    2: Using the HTML SAP GUI. In this case we have to set up the integrated ITS in our SAP ERP system.
    Now I have some questions about the second approach. Is the functionality of the HTML GUI equal to the functionality of the standard GUI? If not, what are the restrictions? How high is the additional load on the network and SAP ERP system caused by the HTML GUI? Would you recommend this approach for a system with more than thousand SAP users?

    Hi Marc,
    At least if you consider using webgui, you should test the transactions properly as there are some issues for example with scandinavian characters and lines visible in lists of search helps.
    Also you might want to consider the limitations of the screen resolutions and space which the portal framwork already takes from the gui. This of course is a topic for both HTML/SAP GUI's.
    Kind regards,
    Ville

  • Publishing to server: Where do the iWeb files go inside the server files?

    Hi - I've created a 1-page web site called "Chatham" using iWeb, and I'd like to add it as a new page in an old a web site I already own. Here's the URL:
    www.daydreambelievers.net/chatham.html
    I used DreamWeaver to upload the iWeb folder into the "htdocs" folder in the server with the rest of the site docs. But as you can see, none of the graphics are loading.
    So even though all the files are now on the site server, they're not finding each other or loading correctly. Do I have to put the images and other graphics inside particular folders on my server (like moving the iWeb page images into the general "images" file), or do I keep them together in the folder that iWeb created? Does the iWeb folder go in the "htdocs" folder, or in a different folder, or outside?
    Couldn't find any info on this in similar threads, sorry if I missed it. All help appreciated!
    - Andy

    Hi Tom,
    Thanks for the quick reply and the info. Unfortunately, it's still not working.
    Following your instructions, I deleted all previous versions of the "Chatham" iWeb files (both locally and on the server), created a new "Chatham" folder from iWeb, and used Fetch to upload it onto the site server. This time, instead of showing the page without graphics, I got the "file not found" message indicating it couldn't even find the page.
    That brings me back to my original question: exactly where do I put the "Chatham" folder on the server so that the files inside it are recognized by the server, and then the files can find each other and build the page correctly? Should the iWeb folder be placed inside the "htdocs" folder (tried, not working) or by themselves outside all the other folders (tried, not working) or in some new combination in and amongst the folders already there?
    That's what's got me stuck, just that issue of putting the iWeb files in the right place on the server so they can find each other and build the page correctly.
    Once again, all help appreciated. Thanks

Maybe you are looking for

  • My Windows 7 met some virus!!!!

    Hello, I am Zhaoguang Chang. At Canadian Boxing day in 2011, I bought Acer laptop. The operation syatem is windows 7. I like it very much. But recently my computer met some problems with virus. The internet explorer run very slowly. Now it can not ru

  • Number of new delta records into cube

    Hi, The deltas are running for the cube. Client wants to know how many number of records are loaded in the cube for each load. I mean when the delta load (process chain) completes it should send an email with number records loaded in to cube. Please

  • IC webclient -help...............

    Hi experts,              The following is a code of standard IC webclient  . <crmic:gridLayoutCell columnIndex="1" rowIndex="<%=lv_r5 %>" colSpan="3"><crmic:label design = "label"                      id = "AccountNo"                      for    = "/

  • N 97 : poor performance & Pathetic service

    Hello,   I have been a happy Nokia Customer and have owned several Nokia products for last 12 years. I have run into a series of problems after buying Nokia N97 (Product code:RM505, Seller : Hot Spot GIP Opp Sec-18, Noida, Invoice No:376, Dated 04.08

  • Are you affiliated with Stopzilla? I have downloaded this SZ software for computer protection. Is this a good thing?

    I was under the impression that Stopzilla software was affiliated with Firefox Mozilla. But now I'm not sure. I have downloaded the SZ software for computer protection, thinking it was related to the Firefox and Mozilla browser. Is this OK? Thanks fo