Changing sizes of a container

I have an application that has a picture loaded into a label. I am using a shortcut menu to allow the user to change the picture by using a JFileChooser. Below is the code that I use to do that:
private void changePic() {               
    //Change the picture on the user menu
    String path = null;
    final JFileChooser fc = new JFileChooser();
    int returnVal = fc.showOpenDialog(this);
    try {
     if(returnVal == JFileChooser.APPROVE_OPTION) {
         path = fc.getSelectedFile().getAbsolutePath();
            stmnt.executeUpdate("UPDATE " + user + "PICS SET PATH = '" + path + "' WHERE PICNAME = 'usermenu'");
            //Set the picWidth and picHeight to 0 so size will be found in loadPic
         picWidth=0;
         picHeight=0;
            //The loadPic method just loads the picture and returns an Icon
         pic_label.setIcon(loadPic(path,"usermenu"));
         pic_label.setText("");     
    catch(SQLException e) {System.err.println("SQLException: " + e);}
}Ok my question is that when the new picture comes up on the screen of course it can be all different sizes and shapes. My problem is that I can get the picture to redraw itself but the whole JFrame or Container stays the exact same size it was before. I tried to repaint the JFrame and the container both but that didn't help me. What do I need to do so that the frame is sized correctly after I change the size of the picture?

http://java.sun.com/j2se/1.3/docs/api/javax/swing/JFrame.html
JFrame has all of the Methods inherited from class java.awt.Component available to it. I don't see setPreferredSize (sorry) but there is setSize(), setBounds(). If you need to take other controls into account you would have to add the size of that component to the size you get from the image. repaint and validate update the appearance of components on the screen. I'm not sure if you need to call them but if you do it's just
repaint();
validate();

Similar Messages

  • Need help dynamically changing size of custom container in ALV

    I am designing a screen using using two custom containers to split the screen into two parts, very similar to how Microsoft Outlook has the detail lines of their Inbox (top container) and then a preview panel for the contents of the highlighted item (bottom container). I would like the user to be able to click on the line dividing the two containers and adjust the screen to show the screen split with whatever proportions they want.
    Does anyone know of a method that will help me do this? Has anyone done something similar to this and is willing to share how to accomplish it even if at a high level?
    Thanks.

    Hi,
    I reckon that using a splitter container (CL_GUI_SPLITTER_CONTAINER or CL_GUI_EASY_SPLITTER_CONTAINER) or a docking container CL_GUI_DOCKING_CONTAINER will be a easy solution to your requirement.
    If you are using the splitter container, then after creating the control, you need to call the method "set_row_sash" as
      CALL METHOD <your_splitter_ctrl>->set_row_sash
        EXPORTING
          id    = 1
          type  = <your_splitter_ctrl>->type_movable
          value = <your_splitter_ctrl>->true.
    This will enable the user to adjust both the controls.
    For examples on the splitter & dokcing containers, refer to package SCET.
    Edited by: Sharat Chandra on Jan 23, 2008 4:46 AM

  • JButton changes size

    My button changes size when it has label START and STOP. How can i do, it not changes (sorry for my english)
      import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Ramka extends JFrame {
         JButton b2 = new JButton("START");
         JPanel p1 = new JPanel(new FlowLayout());
        JPanel p2 = new JPanel();
        JButton b1 = new JButton("NOWA GRA");
         public Ramka() {
              setTitle("Waz");
              setSize(500,350);
              setLocation(200,100);
              setResizable(false);
            //JButton b2 = new JButton("START");
            Container cp = getContentPane();
            p1.setBackground(Color.blue);
            p2.setBackground(Color.red);          
            cp.add(BorderLayout.NORTH,p1);
            cp.add(p2);
            p1.add(b1);
            //b2.setText("STOP");
              p1.add(b2);
              b2.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent e){
                        if (b2.getText()=="START") {
                        b2.setText("STOP");}
                        else {
                             b2.setText("START");
    public class Waz {
         public static void main(String[] args) {
              Ramka ramka = new Ramka();
            ramka.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            ramka.show();
    }

    Add this as the last line of the constructor of Ramka:
    b2.setPreferredSize(b2.getPreferredSize());

  • How to increase the heap size of the container in whioch BPEL is running ?

    Hi All,
    I recently raised an SR they have asked me to do the following,
    Can you please try and start the container running the BPEL process with max
    heap space (-Xmx) of 2 GB and the eden space (-Xmn) at about 60% of 1228m and
    the option -XX:+AggressiveHeap set. (even though this option is recommended for
    multi processor machines say 4)
    can anyone kindly explain me how to increase the Heap size and Eden size of BPEL container ?
    Thank You

    Hi Deepak I cant see any attribute or element in the oc4j_opmn.xml file regarding heap memory. In the server properties I changed the size of heap memeory how can I rollback.
    I am getting the following error
    Configuration information
    Running in C:\product\10.1.3.1\OracleAS_1
    Operation mode:Startup, App Server, No Enterprise Manager, Single Instance
    Oracle home:C:\product\10.1.3.1\OracleAS_1
    Oracle home name:Unnamed
    Instance name:SOA.01hw117905.India.TCS.com
    Instance type:allProducts
    Version:10.1.3.4.0
    Uses infrastructure:false
    Not an infrastructure instance, no infrastructure information available
    Components:[j2ee, apache, orabpel, oraesb, owsm, Wsil]
    2009-08-19 09:08:51.863--Begin log output for Mid-tier services (SOA.01hw117905.India.TCS.com)
    2009-08-19 09:08:51.863--Processing Step: starting OPMN
    2009-08-19 09:09:00.394--Processing Step: starting OPMN managed processes
    2009-08-19 09:09:35.19--End log output for Mid-tier services (SOA.01hw117905.India.TCS.com)
    An unknown OPMN error has occured
    oracle.appserver.startupconsole.model.ConsoleException: An unknown OPMN error has occured
         at oracle.appserver.startupconsole.control.OPMNController.doStart(OPMNController.java:121)
         at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
         at oracle.appserver.startupconsole.control.GroupController.doStart(GroupController.java:47)
         at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
         at oracle.appserver.startupconsole.view.controller.ControllerAdapter.start(ControllerAdapter.java:30)
         at oracle.appserver.startupconsole.view.controller.MasterControlAdapter.run(MasterControlAdapter.java:94)
         at oracle.appserver.startupconsole.view.Runner.main(Runner.java:39)
    Caused by: oracle.ias.opmn.optic.OpticControlException: Error from opmn during process control operation
         at oracle.ias.opmn.optic.AbstractOpmnEntity.runCommand(AbstractOpmnEntity.java:174)
         at oracle.ias.opmn.optic.AbstractOpmnEntity.start(AbstractOpmnEntity.java:110)
         at oracle.appserver.startupconsole.control.OPMNController.doStart(OPMNController.java:89)
         ... 6 more
    Exception caused by
    Error from opmn during process control operation
    oracle.ias.opmn.optic.OpticControlException: Error from opmn during process control operation
         at oracle.ias.opmn.optic.AbstractOpmnEntity.runCommand(AbstractOpmnEntity.java:174)
         at oracle.ias.opmn.optic.AbstractOpmnEntity.start(AbstractOpmnEntity.java:110)
         at oracle.appserver.startupconsole.control.OPMNController.doStart(OPMNController.java:89)
         at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
         at oracle.appserver.startupconsole.control.GroupController.doStart(GroupController.java:47)
         at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
         at oracle.appserver.startupconsole.view.controller.ControllerAdapter.start(ControllerAdapter.java:30)
         at oracle.appserver.startupconsole.view.controller.MasterControlAdapter.run(MasterControlAdapter.java:94)
         at oracle.appserver.startupconsole.view.Runner.main(Runner.java:39)
    <?xml version='1.0' encoding='WINDOWS-1252'?>
    <response>
    <msg code="-82" text="Remote request with weak authentication.">
    </msg>
    <opmn id="01hw117905:6200" http-status="206" http-response="2 of 3 processes started.">
    <ias-instance id="SOA.01hw117905.India.TCS.com">
    <ias-component id="default_group">
    <process-type id="home">
    <process-set id="default_group">
    <process id="172" pid="2176" status="Alive" index="1" log="C:\product\10.1.3.1\OracleAS_1\opmn\logs\\default_group~home~default_group~1.log" operation="request" result="success">
    <msg code="0" text="">
    </msg>
    </process>
    </process-set>
    </process-type>
    <process-type id="oc4j_soa">
    <process-set id="default_group">
    <process id="173" pid="5556" status="Stopped" index="1" log="C:\product\10.1.3.1\OracleAS_1\opmn\logs\\default_group~oc4j_soa~default_group~1.log" operation="request" result="failure">
    <msg code="-21" text="failed to start a managed process after the maximum retry limit">
    </msg>
    </process>
    </process-set>
    </process-type>
    </ias-component>
    <ias-component id="HTTP_Server">
    <process-type id="HTTP_Server">
    <process-set id="HTTP_Server">
    <process id="171" pid="2724" status="Alive" index="1" log="C:\product\10.1.3.1\OracleAS_1\opmn\logs\\HTTP_Server~1.log" operation="request" result="success">
    <msg code="0" text="">
    </msg>
    </process>
    </process-set>
    </process-type>
    </ias-component>
    </ias-instance>
    </opmn>
    </response>

  • Muse changes size of embedded HTML-Elements

    Hello,
    Muse drives me crazy: I've added some HTML-Elements to my site and Muse always rescales 'em. For example: One element is 317x356 Pixels - but Muse scales it at 396x423. Now I go and change it back at 317x356 - and a few seconds later it's again 396x423. And if I try to rescale it with the mouse, it gets bigger and bigger each time I try to rescale it.
    What can I do? What is wrong with muse?
    Best,
    Sven

    How are you setting the width and height? Are you editing the embed code or using the width and height controls in Muse? YouTube videos and most HTML embed code specify their own dimensions. If you've accidentally changed the dimensions of the container holding the embed code, the easiest way to reset the widget to the default size is to drag-resize the widget with the mouse to dimensions that are much smaller than their default size. Muse will initially allow you to resize to these smaller dimensions but will then ask the browser to render the embed code and report its dimensions. If the dimensions are larger than the current size of the container, Muse will reset the container's dimensions to match those reported by the browser.
    With respect to your bandcamp embed code, it consists of an iframe with internal dimensions of 356x317. For HTML embed code pasted onto a page, Muse does not know what is in the code but it needs to know the dimensions so it can put it in a container. So, Muse hands the embed code to the browser and lets the browser determine its dimensions and generate a poster image for design time rendering in Muse. These dimensions are the initial dimensions of the container. Muse lets you style this container by adding a stroke and fill, for example, and it lets you resize the container. If you attempt to resize the container by dragging a resize handle or using the width and height controls, Muse gives the html embed code a chance to adapt to the new size of its container by handing the embed code back to the browser along with the container it needs to draw within. If the embed code is smart enough to adjust its dimensions, it will do so and pass a new poster image and new dimensions back to Muse. In this specific instance, the iframe has hardcoded dimensions so it cannot change its size. However, Muse will still allow you to adjust the container's dimensions as long as you don't resize it to be smaller than what the browser says its dimensions should be.
    Try the following experiment with your bandcamp widget. Give it a colored fill. Resize it larger than 356x317 by dragging the bottom-right selection handle. When you let go of the mouse, Muse will pass the container and the embed code for the widget to the browser to give it a chance to resize the widget. The band camp code does not respond so you see a colored fill in the portions of the container not filled by the widget. Now resize the container smaller than 356x317. Muse again gives the widget a chance to resize but the browser again returns 356x317 for its dimensions. So, Muse adjusts the dimensions of the container to match this minimum size.
    If you want to really make the widget a different size, you need to adjust the dimensions specified in the embed code. If you want to experiment, try the following:
    1. Right-mouse click on the widget and select "Edit HTML..."
    2. Find the 'width' and 'height' values and change them to something else. Try changing the width to something like 500px. Make sure you preserve quotes and semicolons and only change the numbers so that you do not break any syntactical rules.
    3. Press OK and watch how it changes the widget.

  • Cs4 problem with link text changing size when clicked

    designing in cs4, the actual text of my text links become huge for a split second when clicked, and then they go back to normal size.  I don't know what is causing this.  I don't want them to change when clicked.  Any ideas?  thanks in advance.

    John,
    If you need all the CSS code, I will attach it below:
    @charset "utf-8";
    body  {
        text-align: left; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
        color: #000000;
        background-color: #333;
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 0;
        padding-left: 0;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 14pt;
    .twoColFixLtHdr #container {
        width: 950px; /* the auto margins (in conjunction with a width) center the page */
        border: 1px solid #000000;
        text-align: left; /* this overrides the text-align: center on the body element. */
        background-color: #E0D2A3;
        margin-top: 0;
        margin-right: auto;
        margin-bottom: 0;
        margin-left: auto;
        padding-top: 0px;
        height: auto;
    .twoColFixLtHdr #header {
        padding: 0px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
        background-color: #000;
        border: 5px ridge #333;
        margin: 10px;
        background-image: url(../website%20stuff/stepping%20on%20constitution--crop%20text.jpg);
        text-align: left;
    .twoColFixLtHdr #header h1 {
        margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
        padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
        font-size: 18pt;
        color: #FFF;
    .twoColFixLtHdr #sidebar1 {
        float: left; /* since this element is floated, a width must be given */
        width: 200px; /* the background color will be displayed for the length of the content in the column, but no further */
        padding: 10px;
        background-color: #E0D2A3;
        margin-left: 20px;
        text-decoration: none;
        color: #000;
        font-style: normal;
        font-size: 16px;
    .twoColFixLtHdr #mainContent {
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 250px;
        padding-top: 0;
        padding-right: 20px;
        padding-bottom: 0;
        padding-left: 20px;
        text-align: left;
        font-size: 14px;
    .twoColFixLtHdr #footer {
        padding: 0 10px 0 20px;
        text-decoration: none;
        background-color: #E0D2A3;
    .twoColFixLtHdr #footer p {
        margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
        padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
        margin-left: 8px;
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
        clear:both;
        height:auto;
        font-size: 16px;
        line-height: normal;
        text-decoration: none;
        font-style: normal;
        text-align: center;
        color: #00F;
    .mainarea {
        background-color: #FFF;
        border: 5px ridge #333;
        font-size: 14pt;
    .twoColFixLtHdr #container #footer {
        font-size: 14px;
        color: #000;
    .twoColFixLtHdr #container #header table {
        text-align: center;
    .twoColFixLtHdr #container #footer .clearfloat table {
        font-size: 14px;
        font-weight: bold;
        color: #F00;
    .twoColFixLtHdr #container #footer .clearfloat {
    .twoColFixLtHdr #container #header table tr td {
        font-size: 24pt;
        font-style: normal;
        font-variant: normal;
        font-weight: bolder;
        color: #000;
        background-image: url(Images/stepping%20on%20constitution--crop%20text.jpg);
    no link underline {
        text-decoration: none;
    .twoColFixLtHdr #container p {
        font-size: 14px;
        font-style: normal;
        color: #000;
    small text {
        font-size: 10px;
    .twoColFixLtHdr #container #header table {
        font-size: 16pt;
    .twoColFixLtHdr #container #header table {
        font-size: 16pt;
    .twoColFixLtHdr #container #header table tr td h2 {
        font-size: 22pt;
        color: #000;
    .twoColFixLtHdr #container #mainContent .twoColFixLtHdr {
        text-align: left;
        font-size: 14px;
    .twoColFixLtHdr #container #mainContent .twoColFixLtHdr h2 {
        color: #009;
        font-style: normal;
        text-align: left;
    .twoColFixLtHdr #container #mainContent .mainarea table tr td strong {
        font-style: normal;
    .twoColFixLtHdr #container #mainContent .mainarea table tr td p {
        font-style: normal;
        font-weight: normal;
    .twoColFixLtHdr #container #sidebar1 {
        color: #00F;
    .twoColFixLtHdr #container #mainContent .twoColFixLtHdr h2 em {
        text-align: center;
    .italics {
        font-style: italic;
    .italics {
    .font-color {
        color: #003;
    .italics {
        font-style: italic;
    .twoColFixLtHdr #container #mainContent .mainarea table tr .twoColFixLtHdr .blue a {
        color: #009;
    .twoColFixLtHdr #container #mainContent .mainarea table tr td .link-font-color {
        color: #00C;
    .align-center {
        text-align: center;
    .twoColFixLtHdr #container #mainContent .mainarea table tr .align-center {
        text-align: center;
    .center-align {
        text-align: center;
    Thanks,
    Craig

  • Photos and layouts change size when adding photos in book layout

    I am using the Classic layout to create books.
    Sometimes, when I move a photo down into the layout, unpredictable things happen. For example, when I drag a photo down onto the page layout, sometimes the photo will change sizes, and sometimes the layout will move around (esp. with 3 or 4 images on a page). On a page with a single image, sometimes the photo comes in large, and sometimes it shrinks. On a 3 photo per page layout, sometimes the layout starts with 3 photo boxes in a row. I can add one or two, and then I add another (could be the 1st, 2nd or 3rd - it's the image file that I think triggers the change) and all the boxes scramble and instead of a row of 3 equal-sized boxes, now I have a page with 1 big and 2 small boxes. Totally unpredictable!
    Is there any way to control this?
    All the photo files I'm starting with are high resolution tiffs, around 8 inches square (most are squares, not 4x6 snapshots) at 300 dpi.
    I have had this issue on 3 computers (and probably 2 different versions of iPhoto): a 2-year-old G5, and two brand new iMacs.
    Any help or advice is welcome. Thanks.
    iMac   Mac OS X (10.4.8)  

    If you Control-click on the square photo in a book frame you can select the "Fit photo to frame size" option and the entire image will be contained in the frame. there will be some white space on the short side.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Fonts changing size in deployed code

    I'm stuck here.  We have  2 identical deployed .exe progs on what should be identical laptops (ordered together, same product, fairly untouched) running windows 7.  Somehow the fonts on one laptop are off (changed sizes, look like they might also have turned to bf, probably a different font) while on the other "identical" labtop things look ok.  A quick check of the obvious possible suspects: same number and type of fonts appear to be installed, fonts setting appear the same, can't find anything different installed on the laptops that might explain the discrepancy like MS word or adobe software that might contain other fonts (but as I mentioned seems that the installed fonts are the same). Only difference in installed programs seem to be Matlab and Firefox installed on the laptop with the font problems. Would uninstalling these programs even make a difference?
    Anyone have an idea what is going on here, and for things I might try?
    Edit: uninstalling Matlab and Firefox in fact did not make any difference, FYI.

    Did you develop the application yourself or is it from elsewhere?
    A LabVIEW developer should never use default fonts on the front panel. Always use defined fonts.
    (I wonder if it would help to add the current font entries to the application.ini file. I have not tried. Anyone?)
    Font handing is currently one of the real weak points of LabVIEW, and there are plenty of ideas to make it better ( e.g. here)
    LabVIEW Champion . Do more with less code and in less time .

  • Constructor witch changing size...

    hi
    i have to make a class called "Vector" that contains x ints as a parameters...
    and i have to make a constructor:
    public vector(int x){
    // here it makes x parameters...
    it have to be smth like point2D/3D structure... but i dont know how to make
    changing-size one...
    i've tried this.p[i] but it doesnt work ... plz help - if u can
    dont answer if u dont know haw to make it... i dont want to rea answers that says "i'm moron" or sth like that...
    just answer how to do it
    thx

    http://forum.java.sun.com/thread.jsp?thread=341784&forum=31&message=1407080

  • I click on a link or start typing text in a box on a webpage, any page, and the browser window either randomly changes size, reduces & goes to the toolbar, or some other strange random thing occurs. Why is this?

    Whenever I am using Firefox, when I am on a webpage (any webpage) & I either click on a link in that page, start typing in a box, click on a button, or click on a tab, the browser window either reduces to the toolbar, or just changes size, usually from full-screen to 2/3 of its size. I reinstalled Firefox (downloaded from the web) after wiping my hard drive because I was having so many problems from my browser constantly crashing, to the computer itself crashing often, to the computer running exceptionally slow. At first everything seemed fine. But then after having opened my computer a few times, a few different windows began to freeze, then that stopped, then this thing with the browser started a few times later after opening it. Now it does it every time I open it. Also, whenever I try to click on a button on other windows on my computer, I get the 'warning' sound, nothing happens, then after a couple more tries, the button works. All of this is just weird. I had antivirus protection on my computer, but it apparently did not catch whatever virus infected my computer, or the damage was already done when it did get it. I thought once the hard drive was wiped, that everything would be ok, but then these weird things began to start up, and now I am wondering.... Of course, it could also be something wrong with the browser, too. I've also had some trouble getting my printer to working again, but I've managed to solve that problem.

    I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
    When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
    At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
    I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6.

  • When I change size of icons or icon vs list display, why does it affect the whole computer?

    When I change size of icons, or icon vs list display, why does it affect the whole computer? In some folders I want to see a list and others I want to see an icon and I don't need a large icon in all folders. I used to be able to set each folder separately in the old OS. How do I fix this?

    I can hilight an item, go to the finder/file/getinfo but there is no box next to icon view.
    I can go to view/options and adjust the icon size etc, but this applies to every folder in the whole computer. I need varied options in different folders, i.e., I want to view images as icons and text as text. I have to change it every time I open a folder. I used to be able to set it per folder in the old OS.

  • New to flash, swf loaded while changing size

    i'm trying to create a button that will replace the current
    swf with another and i want the size to change between the various
    sizes of each page. i'm currently using the following code in the
    action inspector:
    on(release){loadMovieNum("myfilename.swf",0);
    i know there has to be a simple way to do this! a very
    grateful thanks to anyone who tries to help!

A: new to flash, swf loaded while changing size

b3autiful_dizaster wrote:
> i'm trying to create a button that will replace the
current swf with another
> and i want the size to change between the various sizes
of each page. i'm
> currently using the following code in the action
inspector:
>
> on(release){loadMovieNum("myfilename.swf",0);
> }
>
> i know there has to be a simple way to do this! a very
grateful thanks to
> anyone who tries to help!
You can't change size dynamically as it is defined by the
object embed tags.
You could use WMODE transparency which could help you fake it
tho not always best
solution to go with WMODE. It's a very buggy parameter.
WMODE will remove the background color so the flash movie
appear over the html and you
can see the HTML content trough the movie.
You could define some solid shape for the background on
bottom layer to make it look
like SWF background, than change it with the other loaded
movie making it appear as it
changed size while the over all flash size stats the same. As
said above - faking it.
Best Regards
Urami
!!!!!!! Merry Christmas !!!!!!!
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

b3autiful_dizaster wrote:
> i'm trying to create a button that will replace the
current swf with another
> and i want the size to change between the various sizes
of each page. i'm
> currently using the following code in the action
inspector:
>
> on(release){loadMovieNum("myfilename.swf",0);
> }
>
> i know there has to be a simple way to do this! a very
grateful thanks to
> anyone who tries to help!
You can't change size dynamically as it is defined by the
object embed tags.
You could use WMODE transparency which could help you fake it
tho not always best
solution to go with WMODE. It's a very buggy parameter.
WMODE will remove the background color so the flash movie
appear over the html and you
can see the HTML content trough the movie.
You could define some solid shape for the background on
bottom layer to make it look
like SWF background, than change it with the other loaded
movie making it appear as it
changed size while the over all flash size stats the same. As
said above - faking it.
Best Regards
Urami
!!!!!!! Merry Christmas !!!!!!!
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

  • Navigation Buttons Change Size

    My admittedly-crude website is taking shape but when I roll over the navigation buttons (which don't have actual links yet) the font type seems to change to bold and the button itself changes size to accomodate the larger font.
    www.ourhealthcare.info
    Any suggestions?
    Thanks.

    Line 219, has a syntax error.
    Change
    <li><a href="federalagency.html">Creating a Federal Healthcare Insurance Agency</a><li>
    to
    <li><a href="federalagency.html">Creating a Federal Healthcare Insurance Agency</a></li>
    The closing <li> has been changed to </li>.
    That should clear up the validation errors.

  • How to fix the size of split container.

    Hi All,
    I have a requirement to display 5 alv report grid report .For this requirement i split the container into 5 rows and display the report sucessfully.
    Now i need to fix size of split container's acoording to number of rows comes in alv report.Could you please let me know
    how to achieve that.
    Regards,
    Mohit

    hi,
    Try this article..
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50f1786c-a627-2e10-07b9-fefe548376ad
    Regards
    Rajashiva Ramalingam

  • How change size of an anchored object ?

    Hello, I make a script that change size of a element by looking name (label and name).
    So It's work very well :
    var myStories = app.activeDocument.pageItems.everyItem().getElements();
    for(var i=0;i<myStories.length;i++){
    if(myStories[i].name=="Post_it"){
    var g_obj1 = get1(myStories[i]);
    var g_obj2 = get2(myStories[i]);
    var g_obj3 = get3(myStories[i]);
    var g_obj4 = get4(myStories[i]) + 5 ;
    myStories[i].geometricBounds = [g_obj1,g_obj2,g_obj3,g_obj4];
    But when I copy it and paste in a text to do a anchored object, it doesn't work!
    I check the name and the label, it's the same.
    Why it doesn't work when the object in anchored and how can I resolved it ?
    Thanks a lot!

    Yes! Very nice ! Thank a lot !
    Like this :
    var myStories = app.activeDocument.allPageItems;
    for(var i=0;i<myStories.length;i++){
            if(myStories[i]  instanceof TextFrame){
                    if(myStories[i].name=="Post_it" || myStories[i].label=="Post_it"){
                            var num_page_active = myStories[i].parentPage.name;
                            alert(num_page_active);
                            var g_obj1 = get1(myStories[i]);
                            var g_obj2 = get2(myStories[i]);
                            var g_obj3 = get3(myStories[i]);
                            var g_obj4 = get4(myStories[i]) + 5 ;
                            myStories[i].geometricBounds = [g_obj1,g_obj2,g_obj3,g_obj4];
    So, It's work! Now, I would like to do this only on the even page.
    In CS5, all is ok :
    var myStories = app.activeDocument.allPageItems;
    for(var i=0;i<myStories.length;i++){
            if(myStories[i]  instanceof TextFrame){
                    if(myStories[i].name=="Post_it" || myStories[i].label=="Post_it"){
                            var num_page_active = myStories[i].parentPage.name;
                             Number.prototype.isEven = function (){return (this%2 == 0) ? true : false;}
                            if(Number(num_page_active).isEven()==false){
                                var g_obj1 = get1(myStories[i]);
                                var g_obj2 = get2(myStories[i]);
                                var g_obj3 = get3(myStories[i]);
                                var g_obj4 = get4(myStories[i]) + 5 ;
                                myStories[i].geometricBounds = [g_obj1,g_obj2,g_obj3,g_obj4];
                                myStories[i].name="Post_it_Dec";
                                myStories[i].label="Post_it_Dec";
    But in CS4, the parent.name give me some problème that I can't resolved.
    In CS4, it does'nt know ".name" but ".label" only.
    So this does'nt work for CS4 :
    var myStories = app.activeDocument.allPageItems;
    for(var i=0;i<myStories.length;i++){
                                  if( myStories[i].label=="Post_it"){
                                            myStories[i].select();
                                            var num_page_active = myStories[i].parent.name;
                                            Number.prototype.isEven = function (){return (this%2 == 0) ? true : false;}
                                            if(Number(num_page_active).isEven()==false){
                                       var g_obj1 = get1(myStories[i]);
                                                                          var g_obj2 = get2(myStories[i]);
                                                                          var g_obj3 = get3(myStories[i]);
                                                                          var g_obj4 = get4(myStories[i]) + 5 ;
                                                                          myStories[i].geometricBounds = [g_obj1,g_obj2,g_obj3,g_obj4];
                                                                          myStories[i].label ="Post_it_Dec";
    Can you help me here or I create a new topic?

  • Maybe you are looking for

    • Issue creating a new Org BP through External List Management

      Hi All, I am facing an issue while trying to create organization bps through ELM. The methods that I am using for the same are create person and create organization for Person BP and Organisation BP respectively. The Person BP gets created easily but

    • Solaris 10 u9 x86 Cannot update or register system.

      I'm having and issue where I can not get updates/patches via smpatch or updatemanager on my workstation. I've recently upgraded (not replaced) the system to Solaris 10 u9. I've tried to re-register the system however, it keeps prompting for a proxy t

    • HT4946 Is there a way to change where itunes stores its iphone backups?

      My primary drive is a small 120gb SSD, and backing up my 64gb 4s is really not an option. I have plenty of storage on other drives on this computer (windows 8) but itunes doesn't seem to give me an option to save my backups to a specific location. Am

    • RPC WS - invoke activity

      Hi While invoking a RPC type WS, i am getting the below error in the invoke activity. This service has one of the input element as "soap-array". Kindly help <bpelFault> <faultType>0</faultType> <runtimeFault> <part name="summary"> <summary>null</summ

    • Email message leave on server - is there a setting for this?

      I just got my Droid Charge, and my old Droid had a setting to leave the email messages on server. I use pop3 email to get my messages from my work email address, but I need to make sure the messages are left on the server and not removed when I view