Is it possible to resize a Visual Component?

I have a visual component that plays and MPG file, but it does not respond to the size I set for it with the setSize method. It sizes it to whatever it wants to. Has anyone seen anything like this? If so, how do I fix it?

I meet the same problem when i want to resize the component which return by
calling getVisualComponent();
Someone can help us?

Similar Messages

  • I need to resize the visual component..help pls

    Here's the sample code:
    (Assuming that the player has already been realized)
    Component vc;
    vc = player.getVisualComponent();
    if ((vc = player.getVisualComponent()) != null){
         player.start();
         panel.add(vc);
    I need to reduce the size of the visual component from its default size (320x240). vc.setSize() and vc.setBounds() doesn't seem to work.
    Please help me out. Thank you.

    Hi,
    Please use getPreferredSize().
    e.g. as in PlayerPanel. Defntly works!
    Regards,

  • How to resize media's visual component resolution

    Hello dear:
    How to resize visual component resolution?
    example:
    I have a movie,this movie's resolution is 800*600dpi,I want this movie's visual component is 600*520.
    Thanks

    public Dimension getPreferredSize() {
                   int w = 0, h = 0;
                   if (vc != null) {
                        Dimension size = vc.getPreferredSize();
                        w = size.width;
                        h = size.height;
                   if (cc != null) {
                        Dimension size = cc.getPreferredSize();
                        if (w == 0)
                             w = size.width;
                        h += size.height;
                   if (w < 160)
                        w = 160;
                   return new Dimension(w, h);
    these codes can't change movie's aspect ratio,eg one movie resolution is 600*500,I can't change this movie resolution to 400*400 on playing. The Transcode.java is chanage the movie file resolution, not my expect.
    I wish the one movie resolution is 600*500,this movie full window in the JPanel that resolution is 400*400.

  • How do I stop iPhone Safari from dynamically resizing the visual viewport?

    Sorry I post this here, but I couldn't access the developer forums (no error given, it just keeps returning me to this page https://developer.apple.com/devforums/) I'm not even sure wether that's been moved here and it's just the redirection non working.
    I need to Stop iPhone Safari from dynamically resizing the visual viewport, or in other words, to stop it from trying to "fit" the layout into the viewport.
    Why?
    Because any recalculation javascript does on absolutely positioned elements makes the whole site super IRRESPONSIVE.
    I don't know wether the issue is the element going out the already-set layout viewport (which triggers the page resizing to fit the visual viewport) or just the calculations being made constantly, but I can stop the calculations from happening when not "touching" the screen, but I need a way to stop the page resizing.
    I tried setting the viewport width to 1040px, as my layout width, and it fixed the header's width being narrower than the body (or shifted left?), but the whole page is still resized with every motion-frame (one every 3 seconds, due to overloading the redrawing engine)
    Is there a way to prevent that?

    No, that link doesn't solve it. It just says the same is found everywhere online.
    There's probably no way to do it, as per their way they "accidentally" omitted the oposite case: the page being wider than 980. They only mention what to do if the site is narrower. Something I learned is big companies (with reputation management) could let you run in circles for years no answer rather than telling you something is not possible.
    I'm the developer (can't access the dev forums, don't know why) and I DID setup the viewport, scale and other properties but none of them stopped from re-fitting the new re-sized layout in the viewport. They just ensure the "initial" view.
    I think the feature I'm looking for must be achieved with some JavaScript function targeting Safari-proprietary variable/property… if even possible.
    I just had to make things never reaching the edge until somebody contributes something useful

  • NotRealizedError: Can not get visual component on an unrealized player

    Exception in thread "main" javax.media.NotRealizedError: Cannot get visual component on an unrealized player
         at com.sun.media.BasicPlayer.getVisualComponent(BasicPlayer.java:491)
         at com.sun.media.MediaPlayer.getVisualComponent(MediaPlayer.java:48)
         at com.jbe.core.jdk.test.VideoMetadataTest.main(VideoMetadataTest.java:24)
      Unable to handle format: mpeglayer3, 32000.0 Hz, 0-bit, Stereo, Unsigned, 8518.0 frame rate, FrameSize=9216 bits
    public static void main(String[] args) throws NoPlayerException, IOException  {
              URL url = new URL("file:C:/Video/Test.avi");
              Player player = Manager.createPlayer(url);
              player.realize();
              System.out.println(player.getVisualComponent());
         }This is my error log and my source code. Is there something I am doing wrong.? Please help me resolve this error.
    Thanks,
    Krishnan

    the AirPort Express will no longer allow me to double NAT it and just continues to give me an error that the DHCP range conflicts with the WAN IP address of the base station?
    Two possible fixes:
    1) Perform a Factory Default Reset on the Express to clear out all the old and conflicting settings, then reconfigure it again.
    2) Change the DHCP range settings.
    For example, if the Express is now set to provide IPs from say 192.168.1.2 to 192.168.1.200......change the setting to read something like 192.168.5.2 to 192.168.5.200.
    2) will likely allow you to bypass 1). But, I would still recommend that you do 1) as it is always a good idea to start from scratch when you are making changes to a device on a network.
    Tesserax will have other good ideas for you as well, I am sure.

  • Is it possible to resize a photo in iPhoto--controlling the maximum dimensions and the dpi?

    is it possible to resize a photo in iPhoto--controlling the maximum dimensions and the dpi?

    The dpi depends on the print size you'll be making. This explains it in detail:  The Myth of DPI.
    A 300 dpi image for a 4x6 print will have fewer pixels in it than a 300 dpi image for an 8. 10 print. 
    You can set the pixel dimension of a photo by exporting it via the File ➙ Export ➙ File Export menu option and use the Custom size setting.  However, you should crop the photo to the size ratio you want before exporting, i.e 4 x 6, 5 x 7, etc.  Then set the maximum pixel size you want for the image:
    OT

  • Embed HTTPService in a visual component

    I want to create a visual component with a top element
    <mx:Canvas>. This component needs to retrieve some data from
    a remote server, however <mx:Canvas> can not contain
    <mx:HTTPService>. Which components can contain
    <mx:HTTPService>? I know <mx:Application> and
    <mx:UIComponent> can. Should I create a separate HTTPService
    class in AS outside the mxml and use it in the component
    mxml?

    Try this code below, in which I just added the top element
    <mx:Application> based on your code. The
    <mx:HTTPService> is still inside
    <mx:Canvas>. It compiles fine. But when I ran it in
    FB3, I got parse error at <mx:HTTPService>.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    >
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="400" height="300"
    creationComplete="init()" >
    <mx:Script>
    <![CDATA[
    import mx.collections.XMLListCollection;
    import mx.rpc.events.ResultEvent;
    [Bindable] public var dataDP:XMLListCollection = new
    XMLListCollection();
    private function init():void{
    dataRequest.send();
    private function dataResultHandler(event:ResultEvent):void{
    var list:XMLList = new XMLList(event.result..item.@name);
    dataDP = new XMLListCollection(list);
    ]]>
    </mx:Script>
    <mx:HTTPService id="dataRequest" useProxy="false"
    resultFormat="e4x"
    result="dataResultHandler(event)"
    url="data/inputData.xml"/>
    <mx:ComboBox dataProvider="{dataDP}" rowCount="6"/>
    </mx:Canvas>
    </mx:Application>
    BTW, be nice.

  • Is it possible to resize a youtube video placed in Muse?

    Is it possible to resize a youtube video placed in Muse?

    Thank you for reply - I will check it out…
    Date: Wed, 18 Dec 2013 09:07:46 -0800
    From: [email protected]
    To: [email protected]
    Subject: Is it possible to make a fixed size page in muse, so it doesn't resize?
        Re: Is it possible to make a fixed size page in muse, so it doesn't resize?
        created by Zak Williamson (Adobe) in Help with using Adobe Muse CC - View the full discussion
    Assuming the screenshots are of the same page, the one that's taller is either taller because the minimum page height has been changed or due to some page content (that's not marked as a Footer Item) being located in the new space. This may be an empty text frame or the transparent area of a widget, text frame or other object.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5941664#5941664
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5941664#5941664
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5941664#5941664. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Help with using Adobe Muse CC at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Possible to resize Subreport (CRXIR2-SP4)?

    Hello,
    is it possible to resize a subreport in the main report?
    e.g.: I have a subreport with a chart of the size 3x3
           Now I want to use this subreport in two main reports.
           In the first it should the chart should be 3x3
           In the second report the chart should be 6x6.
    I would prefer to stick to one subreport for both instead of two.
    Is there a Way?
    Thanks
    Christoph

    Can't do it with only one sub-report.  One sub-report can't be two sizes.
    For example, can you create a MS Word document that prints 3 X 3 one time you print it and 6 X 6 another time you print it without making any changes to that Word document?

  • Is it possible to extend the TSM component's expired date?

    Dears,
    Is it possible to extend the TSM component's expired date?
    Thanks!

    Definitely it is possible, however, it is unlikely this feature would be implemented in ME 5.2 but rather in further releases.
    And someone should contact e.g. Consulting team to "submit the request".
    Regards,
    Sergiy

  • Play effect on dynamically created visual component

    Hi!
    Can someone please explain to me, how do I play effect on a visual component created in actionscript?
    Thanks, regards

    You can also set the target/targets property of the effect once you've created the instance in AS, just like you do in MXML code. So where in MXML you might have something like this:
         <mx:Button id="button" click="mover.play()"/>
          <mx:Move id="mover" target=""/>
    you would do the equivalent in actionscript like this:
         var button:Button = new Button();
         var mover:Move = new Move();
         mover.target = button;
         button.addEventListener(MouseEvent.CLICK, clickHandler);
         private function clickHandler(event:Event):void
              mover.play();
    There's no mystery here in launching effects from AS - it's the same properties and structures that you set up in MXML, just different syntactic ways of referring to the properties and events.
    Chet.

  • Is it possible to have Auxiliary Cost Component as Value Fields in COPA

    Respected Gurus,
    Is it possible to have Auxiliary Cost Component as Value Fields in COPA - Please Advise?
    Thanks
    PM

    Hi Praveen ,
    It is possible.. in Transaction KE4R .. we have to specify the cost component structure .. where you map the cost components with value fields..
    Please use your auxiliary Cost Comp Structure in KE4R to achieve your purpose
    Regards
    Sarada

  • Is it possible to resize the legend box?

    I am using Crystal Reports 11.
    I created some charts.
    I found it was difficult to resize the legend box, e.g. increase the width.
    Is it possible to resize the legend box?
    Thank you in advance.

    Hi,
    The Legend cannot be 're-sized', it can only be 'moved'.
    You may create this as an Enhancement at https://ideas.sap.com.
    -Abhilash

  • Flex 4, is it possible to populate a tree component with sqlite table data?

    is it possible to populate a tree component with sqlite table data?
    If it is, how would I go about doing this?
    Thanks
    Kristin

    Hi Mustafa,
    it is true, the function can return component as type. This is more for the scenario, when you want to recognize some component based on some checks, eg.
    if(something)
    return CHECKBOX_1;
    else
    return CHECKBOX_2;
    so, the use case exists for sure. But of course the application itself is static.
    where do you see a scenario for dynamic creation of components?
    The only one component which can instantiate new components is the SplitCellContainer, and this is restricted to the drag&drop action from Fragment Bookmark Gallery. And this is again restricted to containers, as Fragment can hold containers as parent component. Of course the container content will be created/instantiated as well (I have coded example with ComponentManager in the Community SDK: Second Functional Application with SDK Components (Online Composition v.2) blog).
    As far I know there is no function in SplitCellContainer which would "simulate" the drop of a Fragment today (perhaps worth an Idea on this?). Having that - the scenario would be possible. Today, this can be made partly - but the user would need to drag&drop a prepared fragment with the component.
    Anyway, the problems will start after the creation - then it would be require to have also functions to re-position the new created component in some other container - this would be complex probably.
    Karol

  • Help on getting Visual Component for processor

    hi all
    I am having problem with the processor, i am not able to get the
    Visual component and display it. Only the control panel component is being
    display. Can anyone tell me what might be wrong.
    thanx in advance

    hi
    Thanx for reply
    Actually I had created processor using MprocessorMOdel
    Now I want to show the monitor on my panel
    But i am not able to get that
    I am attaching the code
    Plzzzz help me out
    FileTypeDescriptor ftd = new FileTypeDescriptor(FileTypeDescriptor.MSVIDEO);
    pm = new ProcessorModel(dsVideo, formats, ftd);
    videoPlayer = Manager.createRealizedProcessor(pm);
    videoPlayer.addControllerListener(this);
    videoPlayer.start();
    }catch(Exception me){
    dsVideo.disconnect();
    mc=(MonitorControl)dsVideo.getControl("javax.media.control.MonitorControl");
    if(mc!=null)
    monitor = mc.getControlComponent();
    f.getContentPane().add(monitor, BorderLayout.CENTER);
    mc.setEnabled(true);
    this is the code
    dsVideo ----- datasource
    videoPlayer ------- RealizedProcessor
    mc-----------------MonitorControl
    Monitor ----------- component
    thanx in advance

Maybe you are looking for

  • Help me with my photosss please!

    i have a new computer, and i dont know how to copy all my photos to it i didnt have problems copying my songs but im having too much trouble with my photos i alredy done the.. manually manage blablabla thing .. but the photos didnt appear either i wo

  • DMS Error - Error occurred when I try to download document from storage.

    Hi, gurus I'm new to DMS and using 3rd party content server now but I faced error. let me explain my symtom. First, I created Content Rep. EL Document area: DMS storage type: HTTP content server Version: 0046 (note that connection test is successful.

  • An animation problem!

    Hi! I've been working on a game and I have made an intro for it out of two animated gif files. The problem I am having is running these two files one after another at the start of my program. I can get them to both run at the same time, or one of the

  • Built in flashlight

    Hey everyone. I just wanted to make sure everyone knows about the built in flashlight for the 8900. Its actually the video camera light which uses the camera flash. It can be turned on by going to video camera, hitting options and selecting video lig

  • Some Contacts getting combined with others when syncing from google

    I am having an issue where some of my contacts are getting merged when syncing from google. For example I have 3 contacts: Company 1 dispatch which has two phone numbers   Company 2 dispatch which has two phone numbers   Company 3 dispatch which has