Minimize size of a JComboBox

Hi,
i�ve got a JComboBox rendered into a JTable. This works fine but the ComboBox is much to big. I played around with setMaximumSize in several LayoutManagers. The problem is that at a certain size it cuts the JComboBox. What to do? thanks
uri

And I would be interested which LayoutManager you prefer using.I don't use a single Layout Manager. I use a combination of Layout Managers to do the job. Thats why this question doesn't have a specific example. Remember LayoutManagers can be nested. The default layout manager for a frame is a border layout. That great for the general look of your application.
a) you add a toolbar to the north
b) you add a status bar to the south
c) you add your main panel to the center.
the main panel in turrn may use nested panels depending on your requirements. I don't do a lot of screen design but I typically use BorderLayout, FlowLayout, GridLayout and BoxLayout. GridBagLayout and SpringLayout have too many constraints to learn and master. They may be good for a GUI tool that only uses a single layout manager for the entire GUI, but I believe a better design is to break down the form into smaller more manageable areas and group components and use the appropriate layout manager for the group. That may or may not be a GridBagLayout for the small group, but I don't think you should force the entire form to use a GridbagLayout.

Similar Messages

  • RE: CS4 Premiere Pro - what is best to backup/archive video to minimize size

    RE: CS4 Premiere Pro -> what is best to backup/archive video to minimize size?
    I use export>media to adobe media encoder. I am using the avi. the avi file generated seems large. i.e. for 27 minutes the file is 6 gb.
    what is the best format to use to minimize file size?????
    any help will be appreciated and thks in advance.

    >what is best to backup/archive video to minimize size?
    That's the wrong question to ask. Ideally you don't change anything about the original media for backup. It's size it it's size, and you get enough of whatever you nee to accommodate that.

  • How can I constrain the size of a JComboBox?

    How can I constrain the size of a JComboBox? My JCB is held within a Box on my JFrame. I tried using setSize(int, int) and setSize (Dimension d) but neither worked at all, and the JCB remained the same size. Right now it is equal to the size of the box, which is the entire GUI.

    tried using setSize(int, int) and setSize (Dimension d)Read the Swing tutorial on [Using Layout Managers|http://java.sun.com/docs/books/tutorial/uiswing/TOC.html]. Each layout manager is different, but you never use the setSize(...) methods.

  • Changing the size of a JComboBox

    Greetings,
    I am trying to build a mechanism to perform zooming on a JPanel with an arbitrary collection of components (including nested JPanels). I've tried a number of things with little success. The following is my most promising contraption. It can zoom labels, textfields, checkboxes, and buttons. However, for some reason, the combo box refuses to accept a changes to its size. I'm not sure why this is the case. Its font changes size appropriately.
    Anyway, I'm running in JDK 1.4, and the following program lays out a palette of components. To change the size of the components, hit F1 to zoom in, and F2 to zoom out.
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.Font;
    import java.awt.KeyEventPostProcessor;
    import java.awt.KeyboardFocusManager;
    import java.awt.event.KeyEvent;
    import java.awt.geom.AffineTransform;
    import javax.swing.JButton;
    import javax.swing.JCheckBox;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    public class Demo extends JPanel
        public class Zoomer
            private double m_zoom = 1;
            private JPanel m_panel;
            public Zoomer(JPanel panel)
                m_panel = panel;
            private AffineTransform getTransform()
                return AffineTransform.getScaleInstance(m_zoom, m_zoom);
            private Font transform(Font font)
                return font.deriveFont(getTransform());
            private Dimension transform(Dimension dimension)
                Dimension retval = new Dimension();
                retval.setSize(dimension.getWidth() * m_zoom, dimension.getHeight() * m_zoom);
                return retval;
            private void performZoom(Container container)
                Component[] components = container.getComponents();
                for(int i = 0; i < components.length; i++)
                    Component component = (Component)components;
    component.setFont(transform(component.getFont()));
    component.setSize(transform(component.getSize()));
    for(int i = 0; i < components.length; i++)
    Component component = components[i];
    if(component instanceof Container)
    performZoom((Container)component);
    public double getZoom()
    return m_zoom;
    public void setZoom(double zoom)
    if(zoom > 8.0 || zoom < 0.125) return;
    m_zoom = zoom;
    performZoom(m_panel);
    public void zoom(double factor)
    setZoom(getZoom() * factor);
    public Demo()
    JPanel panel = new JPanel();
    panel.add(buildPanel());
    panel.add(buildPanel());
    final Zoomer zoomer = new Zoomer(panel);
    add(panel);
    KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventPostProcessor(new KeyEventPostProcessor()
    public boolean postProcessKeyEvent(KeyEvent e)
    if(e.getID() != KeyEvent.KEY_PRESSED) return false;
    if(e.getKeyCode() == KeyEvent.VK_F1)
    zoomer.zoom(1.2);
    if(e.getKeyCode() == KeyEvent.VK_F2)
    zoomer.zoom(1/1.2);
    return false;
    private JPanel buildPanel()
    JPanel panel = new JPanel();
    panel.add(new JLabel("label: "));
    panel.add(new JTextField("Hello World"));
    panel.add(new JCheckBox("checkbox"));
    panel.add(new JComboBox(new String[] { "Bread", "Milk", "Butter" }));
    panel.add(new JButton("Hit Me!"));
    return panel;
    * Create the GUI and show it. For thread safety, this method should be
    * invoked from the event-dispatching thread.
    private static void createAndShowGUI()
    // Create and set up the window.
    JFrame frame = new JFrame("Demo");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    // Create and set up the content pane.
    Demo newContentPane = new Demo();
    newContentPane.setOpaque(true); // content panes must be opaque
    frame.setContentPane(newContentPane);
    // Display the window.
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args)
    // Schedule a job for the event-dispatching thread:
    // creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable()
    public void run()
    createAndShowGUI();

    component.setSize(transform(component.getSize()));First of all the above line is not needed. The LayoutManager will determine the bounds (size and location) of each component in the container based on the rules of the LayoutManager. The Flow Layout is the default layout manager for a panel and it simply uses the preferred size of the component as the size of the component.
    So what happens is that when you change the font of the component you are changing the preferred size of the component.
    So why doesn't the combo box work? Well I took a look at the preferred size calculation of the combo box (from the BasicComboBoxUI) and it actually caches the preferred size. The combo box uses a renderer, so the value is cached for performance one would assume. The method does recalculate the size when certain properties change. Note the isDisplaySizeDirty flag used in the code below:
             else if (propertyName.equals("prototypeDisplayValue")) {
                    isMinimumSizeDirty = true;
                    isDisplaySizeDirty = true;
                    comboBox.revalidate();
             else if (propertyName.equals("renderer")) {
                    isMinimumSizeDirty = true;
                    isDisplaySizeDirty = true;
                    comboBox.revalidate();
                }It also handles a Font property change as well:
                else if ( propertyName.equals( "font" ) ) {
                    listBox.setFont( comboBox.getFont() );
                    if ( editor != null ) {
                        editor.setFont( comboBox.getFont() );
                    isMinimumSizeDirty = true;
                    comboBox.validate();
                }but notice that the isDisplaySizeDirty flag is missing. This would seem to be a bug (but I don't know why two flags are required).
    Anyway, the following change to your code seems to work:
    // component.setSize(transform(component.getSize()));
    if (component instanceof JComponent)
         ((JComponent)component).updateUI();
    }

  • Maximum size of a JComboBox in a GridBagLayout

    I'm having a problem with a JComboBox inside a GridBagLayout. The general layout is a GridBag with labels / combo / textfields on the first line, a large table in a scrollpane that takes all columns on the second line, and a few labels / combo / textfields on the third.
    As long as the combo on the first combo is empty, it looks fine. When it gets populated, the combo gets resized to the size of the largest text. I would like to have it smaller and truncate the text.
    I tried to set maximum size, but the GridBag doesnt care. I've been trying with weightx but no success.
    What should I do ?

    And I would be interested which LayoutManager you prefer using.I don't use a single Layout Manager. I use a combination of Layout Managers to do the job. Thats why this question doesn't have a specific example. Remember LayoutManagers can be nested. The default layout manager for a frame is a border layout. That great for the general look of your application.
    a) you add a toolbar to the north
    b) you add a status bar to the south
    c) you add your main panel to the center.
    the main panel in turrn may use nested panels depending on your requirements. I don't do a lot of screen design but I typically use BorderLayout, FlowLayout, GridLayout and BoxLayout. GridBagLayout and SpringLayout have too many constraints to learn and master. They may be good for a GUI tool that only uses a single layout manager for the entire GUI, but I believe a better design is to break down the form into smaller more manageable areas and group components and use the appropriate layout manager for the group. That may or may not be a GridBagLayout for the small group, but I don't think you should force the entire form to use a GridbagLayout.

  • Someone knows how to minimize size video-file without lose quality?

    I have been trying but I can not find the settings to minimize my video-files in size without lose quality in premier CS3,can someone help me please?.
    the file is a mpg  exported mpg2 from imagemixer3SE software that comes with the camcorder I have got.
    As well I have got problems finding the audio.I explain:when exporting the mpg to premiere the audio is not there, but in other programs as after effects you can see there are audio.I readed somewhere that provbably the programe forgot to import the codec and I have to find the file .nll  and import it to premiere but I do not know if this is the right answer.
    Please help!!!
    Thank you very much,
    Asyn

    Unfortunately, you have posted into the Premiere forum. This is an older series of programs, prior to the introduction of the Premiere Pro line, with PrPro 1.0.
    John has hit on part of your problem - MPEG-2. It is highly compressed to begin with. The best format is, as he suggests, DV-AVI Type II w/ 48KHz 16-bit PCM/WAV Audio. These files will be larger, but will edit better, and you are not likely to experience any Audio issues.
    Then, for Export, you have some choices, but you must remember that comprimising the file size and bit-rate WILL diminish quality. How much, will be a function of the CODEC chosen.
    What is your intended delivery, DVD-Video, or something else?
    I'll bet that Curt, or Jeff, will move your post to the PrPro sub-forum, so look for it there. You will get many more responses in that forum.
    Good luck,
    Hunt

  • Minimization size of applet

    So I need to create empty applet, with smallest size.
    import java.applet.Applet;
    public class EmptyApplet extends Applet
         public void init()
    }After compiling its size about 2KB is any chanses to increase its size?

    Probably not, but why would someone do something pointless like creating an empty applet?

  • Compress to minimize size

    I have difficulty attaching my scanned files. is there any way to resize my scanned files for easy attaching to yahoomail?

    Not with Adobe Reader; possible with Acrobat, but the amount of reduction depends on the PDF's content.
    Better use a file sharing service like Acrobat.com, Dropbox, Google Drive, Microsoft OneDrive, ... - upload the doc, then send the shared download location via email.

  • How do I reduce the size of an AI CS6 file when saving as a pdf?

    I'm trying to save an ai file to a PDF to send to the printer but the file is huge. How can I reduce the size without losing quality? I have already rasterized my images and flattened the artwork. Thanks!

    How huge is huge?  Are all of the images Placed at 100% or have they been scaled?  What are the printer's requirements?  What are the physical dimensions of the file?  And, how are you creating the PDF?  There are a few ways to minimize size, starting with the file itself and the printer's requirements.  I find, sometimes, Exporting > TIFF > Open in Ps > Save As Photoshop PDF is helpful.  I also use Distiller which trims files nicely and is customizable.

  • JComboBox with only the arrow?

    Hi, I'd like to create a drop down list similar to JComboBox, but instead of having the GUI element show the editor area and the south-pointing arrow, I'd like only the arrow.
    When the size on the JComboBox is set to be small (just the arrow), the drop down list when the arrow is clicked is limited to the width of the arrow. I'd like the drop down list to be wider than the arrow element.
    This is what I get now:
    http://java.sun.com/docs/books/tutorial/figures/uiswing/components/UneditableComboMenu2Metal.png
    I'd like to only see the arrow until I click the arrow, then see the dropdown.
    Thanks!

    Try the SteppedComboBox example from here:
    http://www.crionics.com/products/opensource/faq/swing_ex/SwingExamples.html
    And then try using the setPrototypeDisplayValue(...) method of combobox to be the empty string.

  • Indesign File SIZE

    Why is Indesign File size so big

    The size of an InDesign document file depends on what you are putting into it plus a certain threshold for the file itself which is effectively a small database.
    Note that every time you "save" an existing InDesign file with changes, it will grow larger until you do "save as" which minimizes size at the expense of disallowing you to do any "undos" on what you have done so far.
    - Dov

  • Question about X-series with the bundled 65W adapter, gets very hot

    Hi all,
         My company purchased many X230 notebook in last year.
         some are standard configuration (i3 CPU) and some are (i5 CPU).
         The i3 seems to have no problem.
         However, the i5 model had some issue that it can't full run all the 4-core in high load when connecting the bundled 65W AC adapter, and the adapter got hot. After investigation, we change to 90W AC adapter and the problem is gone. All the 4-core runs correctly and the 90W AC adapter is cool.
         The reseller said that the 65W should be factory package and they will not provide any warranty if we use it incorrectly with the 90W adapter (but the lenovo homepage says the adapter supports....).
         Now, we are considering the X230i model with the same upgrade to i5 CPU.
         Can someone provide feedback if using the X230 / X230i + i5 CPU normally with 65W AC adapter?
    Regards,
         Donald

    Could this be the same or related issue?
    I have a T430s with integrated graphics and dual core i5 CPU. According to Lenovo sales literature this system will work with a 65W AC adapter. Also when I ordered the system online from Lenovo's site I was also given the option to select either a 65W or 90W adapter.
    At the office I use a 90W adapter. The system idles at under 40°C with the fan usually not spinning or spinning at slowest setting (according to TPFanControl) even when the system is under load. It may get as hot as 50°C when the system is under heavy load. But I've never seen it overheat or had the fan spin continuously at maximum speed, etc.
    When travelling I use a 65W adapter in order to minimize size and weight. In that situation the fan is always running and temperatures are usually in the 50°C to 60°C range. On more than one occasion system temperature has "run away" getting increasingly hotter, going to 80°C or 90°C.
    In one case the system shut itself down. I let it cool down overnight. When I rebooted I got a fan error. After that incident I sent the T430s to Lenovo for repair. The technicians found nothing wrong. From their report it's not clear if they replaced the fan or not. Nevertheless this "run away" temperature situation has recurred since then.
    From reading posts on this thread and based on my experiences with the T430s it seems to me that the 65W adapter doesn't have enough power for even a basic T430s despite what Lenovo's marketing literature may say.
    I wonder if the same conclusion doesn't also apply to your systems? Do your temperature issues go away when your system runs on a 90W adapter?
    Cheers... Dorian Hausman
    X1C2, TPT2, T430s, SL500, X61s, T60p, A21p, 770, 760ED... 5160, 5150... S360/30

  • Namespace declarations

    I have an XML file that declares some namespaces in its root
    element, like this:
    <config-ui xmlns='ocfgui.dtd'
    xmlns:cfg='ocfg.dtd'>
    |
    (innards deleted)
    |
    </config-ui>
    When I run this though the Oracle XMLParser v2.0.0 with
    validation on, I get "Illegal attribute name" errors on the
    namespace declarations. It's true that they're not in my DTD,
    but I didn't think the DTD had to specify xmlns attributes on
    every element that could use them. I thought that as reserved
    attribute names, they were implicitly valid on any element. Can
    someone set me straight on this?
    null

    David, see http://www.jclark.com/xml/xmlns.htm which states that
    the XML Namespaces Recommendation doesn't define additional
    validity distinct from XML 1.0 validity, so the behavior of our
    parsers is correct. There are two ways you can minimize size of
    your document. Either namespace scoping/defaulting, or attribute
    defaulting. See also section 5 of the following:
    http://www.w3.org/TR/1999/REC-xml-names-19990114/
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    David Kulik (guest) wrote:
    : I have an XML file that declares some namespaces in its root
    : element, like this:
    : <config-ui xmlns='ocfgui.dtd'
    : xmlns:cfg='ocfg.dtd'>
    : |
    : (innards deleted)
    : |
    : </config-ui>
    : When I run this though the Oracle XMLParser v2.0.0 with
    : validation on, I get "Illegal attribute name" errors on the
    : namespace declarations. It's true that they're not in my DTD,
    : but I didn't think the DTD had to specify xmlns attributes on
    : every element that could use them. I thought that as reserved
    : attribute names, they were implicitly valid on any element.
    Can
    : someone set me straight on this?
    null

  • "Export Release Build" does nothing in Burrito

    I get an error when trying to export a release build of a library project:  Unhandled event loop exception
    Is it necessary to do a release build to get rid of debug data maximize performance, minimize size of the SWC?
    If this is a bug, should I use Apache Maven or some such system for release builds in the meantime?
    Is there some work-around?  I saw this was a problem is Flash Builder 4 and 4.0.1 too based on forum posts but never experienced it.
    http://bugs.adobe.com/jira/browse/FB-29046
    http://bugs.adobe.com/jira/browse/FB-27412
    http://forums.adobe.com/thread/614588
    Here is the complete log:
    java.lang.NullPointerException
    at com.adobe.flexbuilder.exportimport.ExportImportPlugin.getExportReleaseBuildUIManager(Expo rtImportPlugin.java:154)
    at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.getUIMana ger(ExportReleaseVersionWizard.java:108)
    at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionProjectAndLocati onPage.getPageContent(ExportReleaseVersionProjectAndLocationPage.java:249)
    at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionProjectAndLocati onPage.createControl(ExportReleaseVersionProjectAndLocationPage.java:176)
    at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:170)
    at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.createPag eControls(ExportReleaseVersionWizard.java:414)
    at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:734)
    at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:606)
    at org.eclipse.jface.window.Window.create(Window.java:431)
    at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
    at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction$1.run(Export ReleaseVersionAction.java:93)
    at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction.run(ExportRe leaseVersionAction.java:103)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
    at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionI tem.java:584)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java :411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    Session Data
    eclipse.buildId=M20100909-0800
    java.version=1.6.0_16
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments:  -os win32 -ws win32 -arch x86 -clean

    - It is a good practice to use a release-quality version (non-debug SWF file or AIR file) of your application using the Export Release.
    - You can choose to do a command line build using the steps mentioned here http://help.adobe.com/en_US/flashbuilder/using/WSbde04e3d3e6474c4-59108b2e1215eb9d5e4-8000 .html
    - Is it possible for you to share your project so that we can try to reproduce the problem at our end.

  • Problem with automated height/width after applying effect

    Hey guys,
    I have a panel that automatically resizes after some other contents is being added. All the time there is a scale-effect. Whenever I move the mouse over any of those children they zoom in and there the height & width of the parent container automatically resizes.
    However I have a minimize button for that one along with a resize effect. I can resize the complete container to a minimize size (e.g. 40x40), but when I resize back with the same effect, the panel does not automatically resizes with added children anymore.
    I did not set any special properties on the panel from the beginning, but some property must be different now. It is not "autoLayout" and also the "percentageWidth/Height" does not work properly as that command will cause the panel to stretch over the complete stage. Any suggestions here?

    Mmmh...that does not seem to solve the issue for me. Even when setting the width and height to NaN before the effect is played, it will still lead to a fixed height and width of the parent panel container. When I add new children the parent container is not properly resized, means that the chiildren just go beyond the parent container's border.
    Setting these parameters after the effect is done leads to the following crash: ArgumentError: Error #2004: One of the parameters is invalid.
    at flash.display::Graphics/drawRect()
    at spark.accessibility::PanelAccImpl/eventHandler()[E:\dev\4.0.0\frameworks\projects\spark\s rc\spark\accessibility\PanelAccImpl.as:361]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\co re\UIComponent.as:12266]
    at mx.core::UIComponent/dispatchResizeEvent()[E:\dev\4.0.0\frameworks\projects\framework\src \mx\core\UIComponent.as:9641]
    at mx.core::UIComponent/commitProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\mx \core\UIComponent.as:7866]
    at spark.components.supportClasses::SkinnableComponent/commitProperties()[E:\dev\4.0.0\frame works\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:414]
    at mx.core::UIComponent/validateProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:7772]
    at mx.managers::LayoutManager/validateProperties()[E:\dev\4.0.0\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:572]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:730]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    Here is my code...anything wrong here.
    private function recreateWindow(e:MouseEvent)//thrown once the user moves his mouse over the minimized panel
         myResizeEffect.heightFrom = 40;
         myResizeEffect.heightFrom = 40;
         myResizeEffect.heightFrom = lastHeight;
         myResizeEffect.heightFrom = lastWidth;
         myResizeEffect.play();
         myResizeEffect.addEventListener(EffectEvent.EFFECT_END,resetMinimizeValues);
    private function resetMinimizeValues(event:EffectEvent):void
         myResizeEffect.removeEventListener(EffectEvent.EFFECT_END,resetMinimizeValues);
         //adding the old listeners before the panel was minimized
         this.width = NaN;//crash
         this.height = NaN;//crash
    Any suggestions?
    ...and how can I remove the "Question answered"-tag...?

Maybe you are looking for

  • Integrating leadpages with Business Catalyst Mailing lists

    I am having trouble with integrating my leadpages with my Business Catalyst account. Has anyone had this problem before? I have cleaned the code and ensured that it is supposed to link to the correct mailing list, however it won't pull together. This

  • TS3992 IOS 8 & cloud not backing up

    Managed to restore all my things from iCloud onto my new iPhone 6 but now when I try back my iPhone 6 to the cloud it can't because each time you select back up it boots me off the wifi....restarted phone and router and the same occurs. Any ideas?

  • Need Step-by-Step Instructions for Moving Aperture Library to New iMac

    I've been using Aperture on an old MacBook Pro and am totally out of memory on it (I have less than 4GB free out of 465 GB).  I'm needing to move my Aperture library over to a newly purchased iMac. I have already installed Aperture on the new iMac an

  • How to disable automated backup

    I created a database a few weeks ago with dbca and must have told the wizard I wanted to do automatic backups. I see them running at 2am every morning. Where does that job run from and how do I disable it? I want to use my own backup script instead.

  • Smart Form - Paragraph Protection

    Hi, I have a requirement in the SmartForm where the required output is to printed as follows. itab1-line1 itab1-line1 itab2-line1 itab2-line2 itab2-line3 itab1-line2 itab1-line2 itab2-line4 itab2-line5 itab2-line6 itab1-line3 itab1-line3 itab2-line7