SkinableContainer not resizing properly

I have a SkinableContainer with a few buttons. Initially one of the buttons is hidden and not included into Layout.When it becomes visible the container is getting wider but not wide enough.
What would a generic way be of adjusting the width?
Thanks

Can you provide a simple sample application that demonstrates this?

Similar Messages

  • Stroke width not resizing properly

    I have been using Photoshop Elements for many years now (curently have version 5) and decided to download a trial of Illustrator. I have never worked with vectors before, but I'm in love with this program. I can finally draw like I always wanted to without all the tedious cleanup work!
    The only thing that's stumping me is how to resize an image without all of the outlines not sizing up with the rest of the image. In the picture below on the left is the original image and the right is after it has been resized. All of the black outlines are out of proportion on the resized one. His legs and arms are too small, his freckles have shrank, etc.
    Is there a way to have it retain the proper proportions when resizing, or is it nessasairy to change them all by hand after it has been resized?

    Thanks, Larry. On Mac and Win, double-clicking on the scale tool should also get you that dialog and the checkbox.

  • Finder Window Size Issues (not resizing properly)

    everytime I open a window in the finder it opens and I drag to resize and then close. I reopen the folder and its size is wrong not what I just resized to. This happens on every finder window not opening how I resized it. Any clues?

    This has been pet peeve of mine for years. Apple invented windows, but it seems to be the only developer which is incapable of programming the operation of this basic interface correctly. Even Microsoft Windoze got this right when they stole the concept. When you hit the resize button in a Microsoft application the window does the same thing - every time, while every Macintosh application acts differently when you click the green button...very annoying, to say the least.

  • Rectangle fill not resizing properly

    So I've built this website that is a series of rectangles scrolling over each other - Home. The first rectangle contains an image fill. The fitting is "Scale To Fill" and the position is top center. My issue is that when I view the website in a browser and resize the browser window vertically, the image resizes with it. This should no be happening. The image should only resize when the shape of the rectangle changes, not the shape of the browser window. Does anyone know how I can fix this?

    More info: To achieve my scrolling fx I've got scroll motion activated on the fill of the rectangle with all values set to 0. My issue appears to be related to this. When I turn off the scroll motion my issue goes away.

  • Images not resizing properly when relinking/updating

    Hi all,
    I'm currently using InDesign CS on OS10.5.5
    Until last week, I was using CS on OS10.4.?
    Can anyone tell me if the reason my images no longer update/relink to the correct size in InDesign is an issue with running cronky old CS on Leopard?
    I know this feature is an option in CS3 or later but I can find no reference to it for earlier versions and I'm wondering how come it did this in the first place. I never used to have to manually enlarge images back to 100% in InDesign after resizing them (in Photoshop).
    I always resize my images down to the size they appear on the page for two reasons: 1) To prevent problems in PDF distilling and 2) To keep archive space usage down.
    I'd be grateful for any suggestions.
    Thanks.
    S

    What is the slide quality? Default setting is Low (8-bit), depending on your JPEG-image quality this may be too low. Try to change to High or Optimized and see if this is better.
    Lilybiri

  • Video Not Resizing Properly on Share

    I have a 720p (1280 by 720) video that I'm adding a watermark too. I have the entire thing setup, but after I use the Share function to create a 720p HD MPEG, the video shows up with letterboxing all around it.
    Why is the video being shrunk down (scale wise) on output and not perfectly fitting the new 720p video?
    Thanks
    Ryan

    What preset have you selected for your Premiere Elements project, Ryan?
    In version 8, there is a setting for 1280x720 video. As I say in the Basic Training for Premiere Elements tutorials at Premiere Elements support site Muvipix.com, your project settings must match your source footage.
    If your project preset matches your source footage, you should get 16:9 output using one of the standard Share presets.
    But not all footage works successfully in Premiere Elements. Video from still cameras and from pocket camcorders, per the FAQs to the right of this forum, often don't interpret correctly.

  • Jscript popup windows do not resize properly - prior ff versions did not have this problem

    zencart ecommerce website using jscript for image popups - popup window much to small - will not follow script - prior versions of ff did not have this error - I am using ff5

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Images attached do not resize properly to S,M,L

    On my IMac, with Snow Leopard, when I attempt to attach a jpeg file (for instance, a 1.6 MB file), the following sizes are what I get:
    S - 38 KB, M - 58 KB, L - 58 KB, Actual - 2.0 MB (as you can see, NO difference in size between the Medium and Large files - and both are pretty small)
    On my MacBook, with Leopard, attaching images and sizing seems to work fine. Here are the resulting sizes when I attached the exact same file as above:
    S - 131 KB, M - 446 KB, L - 1.5 MB, and Actual - 2.0 MB
    Any suggestions? Thank you

    hi,
    i think images needs to be in rgb mode, so you can view it correctly in browsers or in email apps.
    Jeco

  • Images in button not shown properly

    I have imported a quicktime file which was exported from FCP. The final cut portion is strictly jpeg files, no movies. I have made chapter markers in FCP. So in DVD Studio Pro, I created a button and chapter index, then selected a template. When I go to the menu(s) with chapters, the chapters are all correct. However, the photos in the button are not resized properly. Most of the heads are cut off. I have the button set with motion but turned it off and still photos not correct. How can I make DVD Studio Pro resize the photos properly? I right click the chapter button (it is not a drop zone), the option for align objects and distribute objects is not available. I am unable to click on it, thinking that is what I need to change. Any suggestions in how to get the photos to show completely in the button and not be cut off? I am very knew at this, only my second project, so please explain in detail.
    Thanks!

    Check your frame rate
    are you declaring frame rate through XML or in external file  ?
    check your code again
    or
    may be you forget to upload some related files

  • Datagrid within Datagrid - Rows not resizing to fit content

    Hi,
    I have a datagrid with a custom item renderer that renders another data grid... so one column will render datagrids within the outer datagrid.  The problem is that the row does not size to fit the inner datagrid.  I can't set the rowHeight on the outer datagrid because the inner datagrids have dynamic data and i don't know how many rows they will have.  Also, after the datagrid is rendered, more rows may be added to any number of inner datagrids at a later time... and I need the rows holding them to resize accordingly.   Setting variableRowHeight=true on the outer grid doesn't seem to help either.
    Any ideas on how to do this? 
    Thanks!

    Hi, Alex, thanks for the info. It turns out, I was wrong.  The way it looked made me think it was a row-resizing problem, but it turns out that the rows were resizing fine... it was the outer datagrid itself that was not resizing properly.  Apparently it has to do with the combination of variableRowHeight and rowCount.  The jira issue may look familiar to you.
    http://bugs.adobe.com/jira/browse/SDK-13507
    Anyway, I got this from the jira comments and works pretty good...
    height="{theGrid.measureHeightOfItems(-1, theGrid.dataProvider.length + 1)}"
    I also have to call similar code when the data provider of the inner grids add/remove items.
    Thanks!

  • I want to build android application using existing desktop dimension fla files. so for this I am resizing existing desktop dimension fla files to mobile dimension files but during resizing some files are resizing properly but most of the files the content

    problem definition:
    To build android application using existing desktop dimension fla fies , I am resizing that files to mobile dimension and publishing with air fo android 16  . In this process some fla's are not resizing properly I mean the content is not matching with stage
                      In one post I saw that by copying frames in movie clip we can adjust with stage . I did this and made an application but the swf's which are following the movieclip resized swf are going out of stage
    development tool : adobe flash professsional cc
    extension : air for android 16
    original file dimension: 800 * 600 px
    new dimension required is : 2650 * 1600 px ( to get full screen view)
                                           anyone please suggest me to solve this problem
    when I resized using copy frames in movie clip the output swf is coming with white screen . If I played with package it coming properly but the files which are following this are going out of stage
    Thanks&regards
    K.Niranjan

    problem definition:
    To build android application using existing desktop dimension fla fies , I am resizing that files to mobile dimension and publishing with air fo android 16  . In this process some fla's are not resizing properly I mean the content is not matching with stage
                      In one post I saw that by copying frames in movie clip we can adjust with stage . I did this and made an application but the swf's which are following the movieclip resized swf are going out of stage
    development tool : adobe flash professsional cc
    extension : air for android 16
    original file dimension: 800 * 600 px
    new dimension required is : 2650 * 1600 px ( to get full screen view)
                                           anyone please suggest me to solve this problem
    when I resized using copy frames in movie clip the output swf is coming with white screen . If I played with package it coming properly but the files which are following this are going out of stage
    Thanks&regards
    K.Niranjan

  • Resize() of applet is not working properly in java6.0

    Hi iam new to applets i have given one task,that is to display multiple tiff pages in applet, So i have written one applet which displays multiple pages tiff file, i have kept next and previous buttons in the applet to navigate to different pages and here iam using resize() of applet for refreshing applet up to now all fine this all thing i have done in java5.0, but i got a requirement to do in java6.0, in java6.0 applet is not refeshing in the webpage.
    i found the reason that resize() is not working properly.
    Please can someone help me..........
    Thanks&Regards
    Manmohan A

    Dear Aravindth
      (.*?) means -> Select all contents from where you start and end,
    For Ex. <month>(.*?)</month> then Select for start <month> and end last </month> tag.
    (?) Match zero or one occurrences. Equivalent to {0,1}.
    (*) Match zero or more occurrences. Equivalent to {0,}.
    (+) Match one or more occurrences. Equivalent to {1,}.
    (.) (Dot). Match any character except newline or another Unicode line terminator.
    (.*?) means -> Zero or more times Match any character except newline or another Unicode line terminator + Match zero or more occurrences. Equivalent to {0,}.+Match zero or one occurrences. Equivalent to {0,1}.
    Could you please refere the below cite :
    http://www.javascriptkit.com/jsref/regexp.shtml
    Thanks & Regards
    T.R.Harihara SudhaN

  • Dynamic resizing in JDialog using setSize not working properly on solaris

    can anyone help..
    Dynamic resizing in JDialog using setSize is not working properly on solaris, its work fine on windows.
    i have set Jdialog size to setSize(768,364),
    when i dynamically resizing it to setSize(768,575); it doesn't get change but when i move dialog using mouse it gets refreshed.
    this problem is only happening on solaris not on windows.

    Hi,
    It's only an approach but try a call of validate() or repaint() after re-setting the size of your dialog.
    Cheers, Mathias

  • Dynamic resizing in JDialog using setSize not working properly

    Hi,
    I have a dialog in which i have two radio buttons.
    As i click on other radio button the size of the dialog should change.
    I did so using setSize.
    As i change the size from smaller dialog to a bigger one then newly created portion is not painted properly. Although the size is increased but the painting of the new portion is not done fine.
    Any ideas?
    Is this is a Java bug?
    Here is the code snippet:
    public MyDialog() {
         Container contentPane = this.getContentPane();
         JPanel radioPanel = new JPanel();
    ButtonGroup radioGroup = new ButtonGroup();
    mInstancesButton = new JRadioButton("Instances");
    mActivitiesButton = new JRadioButton("Activities");
    mInstancesButton.setBounds(100,0,100,25);
    mActivitiesButton.setBounds(200,0,100,25);
    mInstancesButton.addItemListener(this);
    mActivitiesButton.addItemListener(this);
    radioGroup.add(mInstancesButton);
    radioGroup.add(mActivitiesButton);
    radioPanel.setLayout(null);
    radioPanel.add(mInstancesButton);
    radioPanel.add(mActivitiesButton);
    radioGroup.setSelected(mInstancesButton.getModel(), true);
         contentPane.add(radioPanel);
         this.setSize(600,300);
    public void itemStateChanged(ItemEvent ie) {
    Container contentPane = this.getContentPane();
    if(ie.getSource().equals(mInstancesButton) && ie.getStateChange() == ie.SELECTED) {
    this.setSize(600,300);
    else if(ie.getSource().equals(mActivitiesButton) && ie.getStateChange() == ie.SELECTED) {
    this.setSize(600, 500);

    Hi,
    It's only an approach but try a call of validate() or repaint() after re-setting the size of your dialog.
    Cheers, Mathias

  • JTextField does not redraw properly

    Hi,
    I have a JPanel that displays some buttons amongst some textfields and labels. One of my buttons is labeled Add Customer. When the user clicks on Add Customer he is presented with a number of JTextFields and JLabels which are all displayed fine.
    However, when the user clicks on Cancel or closes the InternalFrame in which the JTextFields and JLabels are displayed and then clicks on Add Customer again, then the JTextFields are not redrawn properly. I image of this behavior can be seen at
    http://www.grosslers.com/totals.07.png
    As soon as I start to type text into the textfield then the whole textfield redraws itself as it should, but when it looses focus then the textfield becomes invisible once again.
         // Some textfields
         private     JTextField textField_customerEditCompanyName = new JTextField(10);
         private     JTextField textField_customerEditContactName = new JTextField(10);
          * Panel that will hold all the buttons for the quote request details tabbed panel
         public JPanel createQuoteRequestDetailsButtons() {
              // Panel to act as a container for the buttons
              JPanel panel_quoteRequestDetailsButtons = new JPanel();
              // Create, register action listeners and add buttons to the panel
              JButton button_addCustomer = new JButton("Add Customer");
              button_addCustomer.addActionListener(new ActionListener() {
                   public void actionPerformed (ActionEvent actionEvent) {
                        // Add a new customer
                        addCustomerListener();
              panel_quoteRequestDetailsButtons.add(button_addCustomer);
              return panel_quoteRequestDetailsButtons;
          * Display a new internal frame when the user wants to add a new customer
         public void addCustomerListener() {
              // Master panel for the add customer details
              JPanel panel_addCustomerMaster = new JPanel();
              // Add the customer details panel to the master panel     
              panel_addCustomerMaster.add(customerDetailsPanel());
              // Ensure that all the textfields are blank
              resetCustomerDetailsPanelTextFields();
              // Add the buttons panel to the master panel          
              panel_addCustomerMaster.add(addCustomerButtons());
              // Add the master panel to the internal frame
              internalFrame_addCustomer.add(panel_addCustomerMaster);
              // Add the internal frame to the desktop pane
              JupiterMainGUI.desktopPane.add(internalFrame_addCustomer);
              // Set the size of the internal frame
              internalFrame_addCustomer.setSize(500,420);
              // Set other properties of the internal frame
              internalFrame_addCustomer.setClosable(true);
              internalFrame_addCustomer.setIconifiable(false);
              internalFrame_addCustomer.setMaximizable(false);
              // Set the location of the internal frame to the upper left corner
              // of the current container
              internalFrame_addCustomer.setLocation(0,0);
              // Set the internal frame resizable
              internalFrame_addCustomer.setResizable(false);
              // Show the internal frame
              internalFrame_addCustomer.setVisible(true);
          * Panel that displays the textfields and labels when the user clicks on
          * add or view customer details
         public JPanel customerDetailsPanel() {
              // Create master container for this panel
              JPanel panel_customerDetailsMaster = new JPanel();
              // Create the container that will hold all the textfields/labels for
              // the creation of a new customer          
              JPanel panel_customerDetails = new JPanel(new SpringLayout());
              // Add the details panel to the master panel
              panel_customerDetailsMaster.add(panel_customerDetails);
              // Set the border for the panel
              panel_customerDetails.setBorder(BorderFactory.createTitledBorder("Customer Details"));
              // Create textfields/labels, add them to the internalFrame
              JLabel label_customerCompanyName = new JLabel("Company Name : ");
              JLabel label_customerContactName = new JLabel("Contact Name : ");
              panel_customerDetails.add(label_customerCompanyName);
              panel_customerDetails.add(textField_customerEditCompanyName);
              panel_customerDetails.add(label_customerContactName);
              panel_customerDetails.add(textField_customerEditContactName);
              //Lay out the panel.
              SpringUtilities.makeCompactGrid(panel_customerDetails,
                                    2, 2, //rows, cols
                                    5, 5,        //initX, initY
                                    5, 5);       //xPad, yPad
              return panel_customerDetailsMaster;
          * Panel holding the buttons when the user clicks on add customer
         public JPanel addCustomerButtons() {
              // Container for the buttons
              JPanel panel_addCustomerButtons = new JPanel();
              // Create the buttons for the panel
              JButton button_customerOk = new JButton("Ok");
              JButton button_customerCancel = new JButton("Cancel");
              button_customerOk.addActionListener(new ActionListener() {
                   public void actionPerformed (ActionEvent actionEvent) {
              // Closing the internal frame. When i re-open this internal frame again
                  // the labels are re-drawn properly but not the textfields.
              button_customerCancel.addActionListener(new ActionListener() {
                   public void actionPerformed (ActionEvent actionEvent) {
                        try {
                             // close and remove the internal frame from the desktop pane     
                             internalFrame_addCustomer.setClosed(true);
                        } catch (PropertyVetoException exception) {
                        JupiterMainGUI.desktopPane.remove(internalFrame_addCustomer);
              panel_addCustomerButtons.add(button_customerOk);
              panel_addCustomerButtons.add(button_customerCancel);          
              return panel_addCustomerButtons;
         }So far I have a solution, and that is to use the GTK look and feel, but it is not really an option. Another way that I have managed to get the textfields to display properly is to create them in the same method, where I create the labels. Again, this is not really an option as i need to access the textfields outside the method scope.
    Any help would be greatly appreciated
    -- Pokkie

    I added the following :
         * Panel that displays the textfields and labels when the user clicks on
         * add or view customer details
         public JPanel customerDetailsPanel() {
              // Create master container for this panel
              JPanel panel_customerDetailsMaster = new JPanel();
              // Create the container that will hold all the textfields/labels for
              // the creation of a new customer          
              JPanel panel_customerDetails = new JPanel(new SpringLayout());
              // Add the details panel to the master panel
              panel_customerDetailsMaster.add(panel_customerDetails);
              // Set the border for the panel
              panel_customerDetails.setBorder(BorderFactory.createTitledBorder("Customer Details"));
              // Create textfields/labels, add them to the internalFrame
              JLabel label_customerCompanyName = new JLabel("Company Name : ");
              JLabel label_customerContactName = new JLabel("Contact Name : ");
              panel_customerDetails.add(label_customerCompanyName);
              panel_customerDetails.add(textField_customerEditCompanyName);
              panel_customerDetails.add(label_customerContactName);
              panel_customerDetails.add(textField_customerEditContactName);
    // Added this line , but doesn't seem to make a difference. also called revalidate() on the
    // internalFrame in which this panel is displayed but no luck either. Called revalidate()
    // on panel_customerDetailsMaster but nothing :(
              panel_customerDetails.revalidate();
              //Lay out the panel.
              SpringUtilities.makeCompactGrid(panel_customerDetails,
    2, 2, //rows, cols
    5, 5, //initX, initY
    5, 5); //xPad, yPad
              return panel_customerDetailsMaster;
    Thanks for the response thou, much appreciated

Maybe you are looking for

  • I get an error 403 when trying to access american express site

    i have tried to log into a travel site by american express and i get a 403 forbidden error.  they can't help me with why.  said to empty cache and i did but same thing.  anyone know?

  • How to Decode the urls in web application

    Hi all, I am encoded the url in jsp by using the URLEncoder.encode() method like <% String msg=URLEncoder.encode("string");How can i decode this one without using URLDecoder.decode(). My Actual Requirement is if i encoded any url which is present in

  • Content conversion for multiple recordesets of the same type

    Hi I have a scenario where in i have the follwing structure BXX <> HDR <> ITM1 <> *TM2 <> Now sometimes i get mutiple records like the following BXX <> HDR (first occurance) <> ITM1 <> ITM2 <> HDR (2nd occurance) <> ITM1 <> ITM2 <> ITM3 <> HDR (Third

  • How can I to get other invoice of my iPhone

    How can I to get other invoice of my iPhone ? I live in Brazil, and my dad bought my iPhone in the USA, but I need other invoice... Somebody knows how to help me ? Or some fone that I can to call here in Brazil to Apple ! tks.,

  • Order of songs in a playlist ?

    Hello, I hope somebody can help me: I created several playlists on my 1st-generation iPod nano in coordination with iTunes. Now I want the songs to be played in alphabetical order - in iTunes everything is okay, but if I eject the iPod the songs are