TextFlow inside a Resizable Container

Hi,
I've been looking for a solution for an issue for a while and hope someone can help me here.
I have a TextFlow rendered in a Sprite. The sprite is inside a resizable container. When the container is resized, the new sprite size is update in the container controller. The problem is that the text is been deformed.
This is an image of the text before been scaled.
And this one is after been scaled:
I'm not changing the the font size or anything else, just width and height of the sprite.
Any ideas?

Here's more information about this issue.
When the parent container is scaled by the user, this is how I'm updating the TextFlow:
textFlow.flowComposer.removeAllControllers();
var newPageController:ContainerController = new ContainerController( container, w, h );
var controllerFormat:TextLayoutFormat = new TextLayoutFormat();
newPageController.format = controllerFormat;
textFlow.flowComposer.addController( newPageController );
Any comments will be appreciated.

Similar Messages

  • Please help! AN ERROR OCCERED INSIDE A PLUGIN CONTAINED ON THIS PAGE

    i use quicktime 7 and when i click links that would be a video that is quicktime when using aol it pops up with a message saying AN ERROR OCCERED INSIDE A PLUGIN CONTAINED ON THIS PAGE then you click ok then another one pops up saying THE PLUGIN DID NOT INITIALIZE PROPERLY. PLEASE HELP!

    The same thing happens to me when I am using Microsoft Internet Explorer 7 on my Gateway (Windows XP Home, SP2, 512 RAM). However, once I get the error message, and open another QuickTime file, the browser displays a "IE has encountered a problem and needs to close," and shuts down MSIE. Please help!
    Macbook 1.83 GHz   Mac OS X (10.4.7)  

  • How to position two buttons on top of div element inside a div container?

    Hello!
    Good news...
    I have created my very first thumbnail slider for my website that actually works!
    Bad news...
    The buttons that help scroll the div element, which is wrapped inside a center container, are no longer positioned on top of the div.
    Here is the html:
    <div id="centerContainer">
    <div id="aemcSlider">
       <ul>
        <li>
            <a class="aemcPkgBut" href="" target="" alt="AEMC Packaging" title="AEMC Packaging"> </a>
            </li>
            <li>
             <a class="aemcGroundFlexBut" href="" target="" alt="GroundFlexAd" title="GroundFlex Ad"> </a>
             </li>
         <li>
          <a class="aemcClampBut" href="" target="" alt="Clamp-On Ad" title="Clamp-On Ad"> </a>
          </li>
              <li>
              <a class="aemcMetrixBut" href="" target="" alt="Metrix Ad" title="Metrix Ad"> </a>
              </li>
         </ul>
    </div>
    <div id="leftBut">
    <a class="arrowLeft" href="" target="" alt="Left" title="Left"> </a>
    </div>
    <div id="rightBut">
    <a class="arrowRight" href="" target="" alt="Right" title="Right"> </a>
    </div>
    </div>
    Here is the CSS:
    Main container:
    #centerContainer
    {width: 800px; margin: 0 auto; background-color:#0e210e; position:relative}
    Div Element:
    #aemcSlider
        text-align:center;
        list-style:none;
        width: 450px;
        height: 114px;
        margin: 0 auto;
        padding-top: 0px;
        padding-right: 0px;
        padding-bottom: 0px;
        padding-left: 0px;
        top: 67px;
        position: relative;
        overflow: hidden;
    #aemcSlider a {margin-right: -12px;}
    Left & Right Buttons:
    a.arrowLeft
        width: 29px;
        height: 96px;
        float:left;
        position:absolute;
        margin: 0 auto;
        display: block;
        background-image: url(../Images/arrowLeft.png);
        background-repeat: no-repeat;
        left: 311px;
        top: 91px;
        opacity: 0;
    a.arrowLeft:hover
    background-image: url(../Images/arrowLeft.png);
    opacity: 0.5;
    a.arrowRight
        width: 29px;
        height: 96px;
        position:absolute;
        float:right;
        margin: 0 auto;
        display: block;
        background-image: url(../Images/arrowRight.png);
        background-repeat: no-repeat;
        opacity: 0;
        left: 720px;
        top: 92px;
    a.arrowRight:hover
    background-image: url(../Images/arrowRight.png);
    opacity: 0.5;
    Here are the things I've done to troubleshoot:
    If I put the div element as an absolute container, the left button disapears.
    I get the same effect when I change the position to relative.
    I tried changing the position to relative for both buttons.
    I also tried to position the buttons outside the Main Div container and no go.
    How can I position the relative div element under these controller button?
    Any help would be muchly appreciated.
    ~LA

    OK,
    Got the site onto a public web space.
    Here sre the links...
    http://www.aliciaalmeidagraphicdesigner.com/Work.html
    http://www.aliciaalmeidagraphicdesigner.com/style/Body.css
    http://www.aliciaalmeidagraphicdesigner.com/js/functions.js
    Anyone can help me out, please?
    Thanks!
    LA
    PS: Dissapointed...my website looks much better from my local file than remote

  • JTextPane inside JScrollPane resizing when updated

    Hiya all,
    I've been struggling with this problem and checking the forums, but didn't find a solution, so I hope someone can help...at least help me for the nice picture :) It has to do with JTextPane's automatically resizing to their content on a GUI update, rather than scrollbars appearing (the desired result).
    Basically, I have a scenario where I am creating a series of multiple choice answers for a question. Each answer consists of a JTextPane inside a JScrollPane, and a JRadioButton, which are all contained in a JPanel (called singleAnswerPanel). So for 2 answers, I would have 2 of these singleAnswerPanels. There is a one large JPanel that contains all the singleAnswerPanels (called allAnswersPanel). This allAnswersPanel is contained in a JScrollPane. Graphically, this looks like:
       |       JPanel (allAnswersPanel) inside a JScrollPane            |
       |                                                                |
       |  ------------------------------------------------------------  |
       | |     JPanel (singleAnswerPanel)                             | |
       | |    ----------------------------------                      | |
       | |   |  JTextPane inside a JScrollPane  |     * JRadioButton  | |
       | |    ----------------------------------                      | |
       | |                                                            | |
       |  ------------------------------------------------------------  |
       |                                                                |
       |                                                                |
       |  ------------------------------------------------------------  |
       | |     JPanel (singleAnswerPanel)                             | |
       | |    ----------------------------------                      | |
       | |   |  JTextPane inside a JScrollPane  |     * JRadioButton  | |
       | |    ----------------------------------                      | |
       | |                                                            | |
       |  ------------------------------------------------------------  |
       |                                                                |
        ----------------------------------------------------------------So above, I show 2 answers that can be filled in with text. So assuming both answer JTextPanes are filled with text beyond their current border (scrollbars appear as expected) and the user wishes to add more answers. I have a button to add another singleAnswerPanel to the containing JPanel (allAnswersPanel), and then I validate the main JScrollPane that contains the allAnswersPanel as it's view. The problem that occurs is the existing single answer JTextPanes resize to the size of their text and the vertical scrollbars (only vertical ones setup) of the JTextPanes dissappear! My intent is to keep the existing JScrollPanes the same size (with their scrollbars) when a new answer is added.
    The code snippet below shows what gets done when a new answer is added:
    private void createAnswer()
        // The panel that will hold the new single answer JTextPane pane
        // (inside a JScrollPane) and radio button.
        JPanel singleAnswerPanel = new JPanel();
        // Create the text pane for the single answer.
        JTextPane singleAnswerTextPane = new JTextPane();
        Dimension dimensions = new Dimension(200, 30);
        singleAnswerTextPane.setPreferredSize(dimensions);
        singleAnswerTextPane.setMaximumSize(dimensions);
        // Create a scroll pane and add the single answer text pane.
        JScrollPane singleAnswerScrollPane =
         new JScrollPane(singleAnswerTextPane);
        // Create a radio button that is associated with the single
        // answer text pane above.
        JRadioButton singleAnswerRadioButton = new JRadioButton();
        // Add the scroll pane and radio button to the panel (for a single
        // answer).
        singleAnswerPanel.add(singleAnswerScrollPane);
        singleAnswerPanel.add(singleAnswerRadioButton);
        // Add the panel holding a single answer to the panel holding
        // all the answers.
        m_allAnswersPanel.add(singleAnswerPanel);
        // Update the display.  m_allAnswersScrollPane is a JScrollPane
        // that has the m_allAnswersPanel (JPanel) as its view.
        m_allAnswersScrollPane.validate();
    }     Sorry for the length of the message, but I really want to solve this problem. So again, when updating the JScrollPane with validate(), the JTextPane for a single answer resizes to it's contents (plain text currently) and loses it's vertical scrollbars, but I want it to stay the same size and maintain the scrollbars.
    Thanks!

    http://java.sun.com/docs/books/tutorial/uiswing/mini/layout.htmlimport javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Random;
    public class Test extends JFrame {
        int cnt=0;
        Random r = new Random();
        String[] nouns = {"air","water","men","idjits"};
        JPanel mainPanel = new JPanel(new GridBagLayout());
        JScrollPane mainScroll = new JScrollPane(mainPanel);
        JScrollBar mainScrollBar = mainScroll.getVerticalScrollBar();
        public Test() {
         setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
         Container content = getContentPane();
         content.add(new JLabel("QuizMaster 2003"), BorderLayout.NORTH);
         content.add(mainScroll, BorderLayout.CENTER);
         JButton jb = new JButton("New");
         content.add(jb, BorderLayout.SOUTH);
         jb.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent ae) {
              JPanel questionPanel = new JPanel(new GridBagLayout());
              questionPanel.add(new JLabel("Question "+cnt++),
                   new GridBagConstraints(0,0,1,1,0.0,0.0,
                        GridBagConstraints.EAST, GridBagConstraints.NONE,
                        new Insets(1,2,1,2),0,0));
              questionPanel.add(new JLabel("Why is there "+
                            nouns[r.nextInt(nouns.length)]+"?"),
                   new GridBagConstraints(1,0,1,1,0.0,0.0,
                        GridBagConstraints.EAST, GridBagConstraints.NONE,
                        new Insets(1,2,1,2),0,0));
              JTextArea jta = new JTextArea();
              JScrollPane jsp = new JScrollPane(jta);
              jsp.setPreferredSize(new Dimension(300,50));
              questionPanel.add(jsp, new GridBagConstraints(0,1,2,1,0.0,0.0,
                        GridBagConstraints.EAST, GridBagConstraints.BOTH,
                        new Insets(1,2,1,2),0,0));
              mainPanel.add(questionPanel, new GridBagConstraints(0,cnt,1,1,0.0,0.0,
                            GridBagConstraints.EAST,GridBagConstraints.NONE,
                            new Insets(0,0,0,0),0,0));
              mainPanel.revalidate();
              mainScroll.getViewport().setViewPosition(new Point(0, mainPanel.getHeight()));
         setSize(400,300);
         show();
        public static void main( String args[] ) { new Test(); }
    }

  • Refresh Editable ALV Grid inside a custom Container

    Hello all,
    I am having a screen with custom container in which i am populating datas and a entry screen which is going to have my
    filtering condition for this custom container screen..
    The problem i am facing is whenever i come out of the custom container screen after displaying and again give the
    necessary filtering data in the previous screen...
    the custom container screen displays wrong values...
    But when i refresh the data with the refresh icon in the container right datas are coming...
    I even used CALL METHOD C_ALVGD->REFRESH_TABLE_DISPLAY
    EXPORTING
    IS_STABLE = STABLE
    EXCEPTIONS
    FINISHED = 1
    OTHERS = 2. after displaying the values using
    CALL METHOD C_ALVGD->SET_TABLE_FOR_FIRST_DISPLAY
    EXPORTING
    IT_TOOLBAR_EXCLUDING = T_FUNC
    IS_LAYOUT = IT_LAYOUT
    I_SAVE = 'A'
    CHANGING
    IT_OUTTAB = IT_ZCAWNT_V
    IT_FIELDCATALOG = IT_FCAT
    EXCEPTIONS
    INVALID_PARAMETER_COMBINATION = 1
    PROGRAM_ERROR = 2
    TOO_MANY_LINES = 3
    OTHERS = 4.
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    I have refreshed my internal table once when i display and again fetched from the DB according to the filtering conditions given
    in the first screen.
    I have tried clearing the Object created once when i display and again recreated it.But could not get the output.
    solution would be really helpful...

    Hey all,
    Thanks a lot for helping me...
    The problem is solved....
    i just used,
            CALL METHOD C_ALVGD->FREE. 'Grid inside the container
            CLEAR C_ALVGD.
            CALL METHOD C_CCONT->FREE. "Container
            CLEAR C_CCONT.
    when i click BACK Button from screen 2 to screen1.

  • Sometimes a plugin-container.exe instance starts hogging a ton of memory -- I would like to know which plugin is running inside that plugin-container without having to one-by-one disable the plugins. Which process called plugin-container.exe?

    As described above, I have several instances of plugin-container.exe running, which is OK. It would make me feel safer to know which plugins are running inside each of these, since I would be better able to know whether there is malware running inside one of them, or which website might have made the process start hogging memory.
    I am a power user, I usually have 80-100 tabs open, and of course it is hard to track the website or plugin down without having to waste a lot of time.
    Could you provide in future releases this information?
    Is it already available under one of the about: pages (e.g. config, plugins, memory, etc?)

    Thanks Efreak! <br><br>
    Maybe I was not clear. I usually have 4-5 plugin-container.exe processes running. I know now that the large one that hogs is the Adobe Flash player, but, for example I don't know which plug-in initiated the other plugin-container.exe instances.<br><br>
    One of them actually says "googletalkplugin.exe" if you dig deep, which is OK. At least I know why the plugin-container.exe was started. But there are other instances that are just there and there is no way to figure out which plug-in initiated it.<br><br>
    This would of course also help figure out if it is really the Adobe Flash plug in that is hogging all the memory, OR even if within Firefox in the about: pages one could figure out which TABS are using which plug-ins.
    Like that you could freely choose to terminate the process directly, or close the TAB.<br><br>
    1) What I am looking for is a way to determine which plug-in is running under which instance of plugin-container.exe<br>
    2) Additionally it would be great to have a summary of which TABS are using which plugins (e.g. in the about:plugins page or yet another about: page)
    <br><br>
    Thank you

  • How to use EntityManager in a thread inside a J2EE container

    Hi,
    I'm looking for a usage pattern to use an EntityManager inside a thread of J2EE container. I used injection to inject an EntityManager in a EJB3 service and I can use the em with no problem. But the problem occurs when the service spin a thread and operations of the EntityManager (which is obtained using JNDI lookup ) inside that thread always fails.
    What is the correct usage pattern to obtain/use an EntityManager inside a thread of a J2EE container?
    Thanks.

    What you are trying to do should work as long as you are using the Measurement Studio C++ classes in MStudio version 6.0 or later.
    What version of Measurement Studio are you using? Could you post a simple program that demonstrates the problem?
    There is a fundamental limitation in Windows that prevents you from using a Window handle (HWND) in a different thread than the one that created it. However, the Measurement Studio C++ classes (e.g. CNiGraph) are designed to automatically handle accessing the underlying handle from multiple threads. This is done through standard COM marshaling mechanisms and was implemented in version 6.0 of Measurement Studio.
    David Rohacek
    National Instruments

  • Panels resizable contained in a frame resizable

    Hello to all,
    I have the following question, how is it possible to make resizable the panels contained in the frame when frame's resized by the user?
    I had already a look at the swing tutorial but I didn't find the solution :( (may be I didn't understand )
    Can anybody help me?
    I attach here bellow my code
    Thansk in advance
    Mandy
    ublic class SecondClass  extends JFrame{     
         JTextArea cfgArea;
         JTextArea relArea;
         JTextArea resultArea;
         JComboBox searchModeCB;
         public SecondClass(){
             JFrame frame = new JFrame("title");
             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             frame.setResizable(true);
             JPanel mainPanel = new JPanel();
             mainPanel.setBackground(Color.cyan);
             mainPanel.setSize(600,400);
             mainPanel.setLayout(null);
             JPanel  cfgPane = new JPanel ();
             cfgPane.setLayout(null);
             cfgPane.setBackground(Color.red);
             cfgPane.setBounds(10,10,370,280);
             mainPanel.add(cfgPane);
             cfgArea = new JTextArea();
             cfgArea.setBorder(BorderFactory.createEtchedBorder());
             cfgArea.setDragEnabled(true);
             cfgArea.setTransferHandler(new CustomedTransferHandler());
             cfgArea.setDropMode(DropMode.INSERT);
             JScrollPane cfgScrollPane = new JScrollPane(cfgArea);
             cfgScrollPane.setBounds(10, 20, 350, 200);
             cfgPane.add(cfgScrollPane);
             JButton clearCfgButton = new JButton("Clear");
             clearCfgButton.setBounds(70, 230, 70, 20);
             cfgPane.add(clearCfgButton);
             JButton addCfgButton = new JButton("Add");
             addCfgButton.setBounds(200, 230, 60, 20);
             cfgPane.add(addCfgButton);
             mainPanel.add(cfgPane);
             JPanel relPane =  new JPanel();
             relPane.setLayout(null);
             relPane.setBackground(Color.blue);
             relPane.setBounds(10,300,370,280);
             mainPanel.add(relPane);
             relArea = new JTextArea();
             relArea.setBorder(BorderFactory.createEtchedBorder());
             relArea.setDragEnabled(true);
             relArea.setTransferHandler(new CustomedTransferHandler());
             relArea.setDropMode(DropMode.INSERT);
             JScrollPane relScrollPane = new JScrollPane(relArea);
             relScrollPane.setBounds(10, 20, 350, 200);
             relPane.add(relScrollPane);
             JButton clearRelButton = new JButton("Clear");
             clearRelButton.setBounds(20, 230, 70, 20);
             relPane.add(clearRelButton);
             JButton addRelButton = new JButton("Add");
             addRelButton.setBounds(110, 230, 60, 20);
             relPane.add(addRelButton);
             String[] items = {"Something"};
             searchModeCB = new JComboBox(items);
             searchModeCB.setBounds(180, 230, 180, 20);
             searchModeCB.setSelectedItem("Something");
             relPane.add(searchModeCB);
             JButton okRelButton = new JButton("Ok");
             okRelButton.setBounds(300, 255, 60, 20);
             relPane.add(okRelButton);
             JPanel resultPane = new JPanel();
             resultPane.setLayout(null);
             relPane.setBackground(Color.yellow);
             resultPane.setBounds(390,10,580,570);
             resultArea = new JTextArea();
             resultArea.setBorder(BorderFactory.createEtchedBorder());
            mainPanel.add(resultPane);
             JScrollPane resultScrollPane = new JScrollPane(resultArea);
             resultScrollPane.setBounds(10, 20, 560, 490);
             resultPane.add(resultScrollPane);
             JButton clearResButton = new JButton("Clear");
             clearResButton.setBounds(120, 520, 80, 20);
             resultPane.add(clearResButton);
             JButton saveResultButton = new JButton("Save");
             saveResultButton.setBounds(380, 520, 80, 20);
             resultPane.add(saveResultButton);
             JButton exitButton = new JButton("Exit");
             exitButton.setBounds(495, 550, 80, 15);
             resultPane.add(exitButton);
             frame.add(mainPanel);
             frame.setLocation(200,200);
             int width = 980;
             int height = 650;
             frame.setSize(width, height);
             frame.setVisible(true);
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              SecondClass main = new SecondClass();
    }

    ok did some modifications.
    Now it works as I want
         public SecondClass(){
             JFrame frame = new JFrame("title");
             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             frame.setResizable(true);
             JPanel  mainPanel = new JPanel ();
             mainPanel.setSize(600,400);
             mainPanel.setLayout(new GridLayout(0,2));
             JPanel sxPanel = new JPanel();
             sxPanel.setBackground(Color.blue);
             sxPanel.setLayout(new GridLayout(2,0));
             mainPanel.add(sxPanel);
             JPanel dxPanel = new JPanel();
             dxPanel.setLayout(new BorderLayout());
             mainPanel.add(dxPanel);
             // Create cfgArea
              JPanel  cfgPane = new JPanel ();
              cfgPane.setLayout(new BorderLayout());
             sxPanel.add(cfgPane);
             cfgPane.add(new JLabel("  "),BorderLayout.NORTH);
             cfgPane.add(new JLabel("  "),BorderLayout.EAST);
             cfgPane.add(new JLabel("  "),BorderLayout.WEST);
             cfgArea = new JTextArea();
             cfgArea.setBorder(BorderFactory.createEtchedBorder());
             cfgArea.setDragEnabled(true);
             cfgArea.setTransferHandler(new CustomedTransferHandler());
             cfgArea.setDropMode(DropMode.INSERT);
             JScrollPane cfgScrollPane = new JScrollPane(cfgArea);
             cfgPane.add(cfgScrollPane,BorderLayout.CENTER);
             JPanel southCfgPanel = new JPanel();
             cfgPane.add(southCfgPanel, BorderLayout.SOUTH);
             JButton clearCfgButton = new JButton("Clear");
             southCfgPanel.add(clearCfgButton);
             JButton addCfgButton = new JButton("Add");
             southCfgPanel.add(addCfgButton);
             //end og cfg Area
             // Create relArea     
             JPanel relPane =  new JPanel();
             relPane.setLayout(new BorderLayout());
             sxPanel.add(relPane);
             relPane.add(new JLabel("  "),BorderLayout.NORTH);
             relPane.add(new JLabel("  "),BorderLayout.EAST);
             relPane.add(new JLabel("  "),BorderLayout.WEST);
             relArea = new JTextArea();
             relArea.setBorder(BorderFactory.createEtchedBorder());
             relArea.setDragEnabled(true);
             relArea.setTransferHandler(new CustomedTransferHandler());
             relArea.setDropMode(DropMode.INSERT);
             JScrollPane relScrollPane = new JScrollPane(relArea);
             relPane.add(relScrollPane,BorderLayout.CENTER);
             JPanel southRelPanel = new JPanel();
             relPane.add(southRelPanel, BorderLayout.SOUTH);
             JButton clearRelButton = new JButton("Clear");
             southRelPanel.add(clearRelButton);
             JButton addRelButton = new JButton("Add");
             southRelPanel.add(addRelButton);
             String[] items = {"Something"};
             searchModeCB = new JComboBox(items);
             searchModeCB.setSelectedItem("Something");
             southRelPanel.add(searchModeCB);
             JButton okRelButton = new JButton("Ok");
             southRelPanel.add(okRelButton);
            //RESULT PANEL
             JPanel resultPane = new JPanel();
             resultPane.setLayout(new BorderLayout());
             dxPanel.add(new JLabel("  "),BorderLayout.NORTH);
             dxPanel.add(new JLabel("  "),BorderLayout.EAST);
             dxPanel.add(new JLabel("  "),BorderLayout.WEST);
             dxPanel.add(resultPane,BorderLayout.CENTER);
             resultArea = new JTextArea();
             resultArea.setBorder(BorderFactory.createEtchedBorder());
             resultPane.add(resultArea,BorderLayout.CENTER);
             JScrollPane resultScrollPane = new JScrollPane(resultArea);
             resultPane.add(resultScrollPane);
             JPanel southPanel = new JPanel();
             resultPane.add(southPanel, BorderLayout.SOUTH);
             JButton clearResButton = new JButton("Clear");
             southPanel.add(clearResButton);
             JButton saveResultButton = new JButton("Save");
             southPanel.add(saveResultButton);
             JButton exitButton = new JButton("Exit");
             southPanel.add(exitButton);
             frame.add(mainPanel);
             frame.setLocation(200,200);
             // Show the frame
             int width = 980;
             int height = 650;
             frame.setSize(width, height);
             frame.setVisible(true);
         }

  • Problems with resizable container

    Hi,
    I have a resizable JPanel with cubes inside it.
    The problem is when I resize the JPanel the cubes inside it gets resized only after I move the borders of the JPanel ~14 pixels...
    The problem is in the X axis...
    The Y axis "jumps" every ~5 pixels...
    I need content of the JPanel also to resize every 1 pixel (so it would be on the borders of the JPanel)...
    Any Ideas?

    I guess that the only solution is NOT to use gridLayoutWell that would explain the behaviour. It would have been nice if that information was included in the original question. Thats why I always ask for a SSCCE, since you never no what information is importan or not.
    All components in a GridLayout have the same size. So if you have a Grid with 10 component that is 400 pixels wide each component will be 40 pixels wide. As suggested above the size of each component will only be adjusted when you incread the width by 10 or more (since you have 10 components in each row).
    Doing it manually would also be a pain. If you increase the width by 1 pixel you would only be able to increase the size of one component. Then if you increase it by one pixel again you can only change one component, so do you change the first one again or the second. So now you need an algorithm to determine which component gets the extra space.
    I need content of the JPanel also to resize every 1 pixel (so it would be on the borders of the JPanel)...Don't know exactly what your layout is like, but maybe you could center the panel in the frame. That way as you change the size the "border" will change on both sides and it may not look as bad.
    You can try using a BoxLayout. Components will grow as the size is increased but I think you might have problems with the first components always growing first.

  • Selection screen inside a custom container

    hey guys,
    I have a requirement to display a selection-screen inside  a container,How can we solve this problem?
    Hey guys Help me out.
    Regards,
    Midhun Abraham
    Edited by: Midhun Abraham on Oct 7, 2008 7:08 AM

    you can call a selection screen in sub screen area
    declare selection screen as
    begin of selection-screen 0100 as subscreen.
    end of selection-screen...
    then,
    in flow logic of your module pool screen
    PBO
    call subscreen <sub_area> including sy-repid '0100'.
    " at selection-screen output event is called
    PAI.
    call subscreen <sub_area>.
    "at selection-screen is called

  • File Upload UI element is not working properly inside Table Popin container

    Hi Expert,
    I created a table with popin, i placed file-upload UI element inside table popin contatiner.
    The file upload UI element is displaying properly but, when i click the browse button to select  the file, the file open dialog box is not popping out.
    will table popin support file-upload UI element inside it?
    it not is there any other way to call a file_open dialog box from inside the table popin.
    Thanks,
    James

    If you are on NetWeaver 7.01, you can try both the ACFUpDownload UI element or try creating your own FileUpload in Adobe Flex with Flash Islands.  ACFUpDownload requires the KPRO by default (which is why the same application isn't working for you), but you can write your own handler class to act as the KPRO receiver.  Here is an eLearning on the topic:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/109b9b52-bc00-2c10-8786-e4c5e96d7e04
    and source code:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70645070-bb00-2c10-f086-f126721acdb4
    If you want an eLearning on the FlashIslands approach, you can find it here as well:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d42644-91ef-2b10-228c-9e0ae75b274e
    and Source Code:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f044b62c-90ef-2b10-64a6-9ec25294d133
    However in both of these approaches you still have to be careful with how you handle large files.  The problem is that they are processed often a single binary string.  This makes the processing easy, but requires total amount of session memory at least as large as the file being uploaded.  In NetWeaver 7.02 ABAP adds the concept of Streams and Locators to help with the partial processing of large files.  This feature doesn't come until later this year, but if you are interested you can learn about it here:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80f983df-213e-2c10-ba89-b5a12ef178e8

  • Running pppd inside a zone/container

    People,
    I'd like to know if it is possible to call out using pppd from insidea zone?
    I have added the device cua0 to the zone and verified the modem working with
    tip. Both in the global zone and my zone.
    Running "pppd cua0 call myisp" works fine from the global zone, using the
    standard pppd. But from inside a zone, it fails with an error message that the kernel lacks pppd support.
    The goal is of course to have multiple ppp connections running simultaneously, separated from each other.
    I've been hacking around, adding the device /dev/sppp to my zone as well, and it causes pppd to fail with permission problems.
    Realizing that I am just using the trial-and-error method at this point, I hope that you can help me answering the following:
    1) Is it possible at all, in the way described above?
    2) If possible, can you please guide me how to set it up?
    Thank you,
    Magnus

    This is most likely related to limitations about how virtualisation is implemented, but then again other virtualisation technologies also don't allow these kind of constructions luckily. And with Solaris 10 you also have a shared kernel and IP-stack (Sun is working on that) and trying to create interface from within a zone scares the daylight out of me. Also think how the routing needs to be controlled.
    Safe way is to let the global zone handle it. Another way is to have a dedicated device for the network connections and this one is prefered in most cases.

  • Drop Shadow Filter hiding inside the Hbox container

    Hi,
    I have an HBox with roundedRectangle skin inside a repeater
    in a vertical layout. HBox has drop shadow filter applied on it.
    Problem is that, as repeater is executing the drop shadow is
    getting hid by next HBox created below the previous Hbox. I want
    the shadow on the top of next HBox.
    Code Snippet:
    <mx:Repeater id="myrep" dataProvider="{myAC}">
    <mx:HBox borderSkin="RoundedRectangle"
    backgroundColor="0xB9C3C9" backgroundAlpha="1"
    horizontalGap="0" cornerRadius="10" width="80" height="80"
    verticalGap="2" >
    <mx:filters>
    <mx:DropShadowFilter distance="14" angle="45" blurX="10"
    />
    </mx:filters>
    </mx:HBox>
    </mx:Repeater>
    Any way to solve it?

    "nit_vs" <[email protected]> wrote in
    message
    news:gi854o$qn5$[email protected]..
    > Hi,
    > I have an HBox with roundedRectangle skin inside a
    repeater in a
    > vertical
    > layout. HBox has drop shadow filter applied on it.
    Problem is that, as
    > repeater
    > is executing the drop shadow is getting hid by next HBox
    created below the
    > previous Hbox. I want the shadow on the top of next
    HBox.
    > Code Snippet:
    > <mx:Repeater id="myrep" dataProvider="{myAC}">
    > <mx:HBox borderSkin="RoundedRectangle"
    backgroundColor="0xB9C3C9"
    > backgroundAlpha="1"
    > horizontalGap="0" cornerRadius="10" width="80"
    height="80"
    > verticalGap="2" >
    > <mx:filters>
    > <mx:DropShadowFilter distance="14" angle="45"
    blurX="10" />
    > </mx:filters>
    > </mx:HBox>
    > </mx:Repeater>
    > Any way to solve it?
    >
    Draw them from the bottom up, or change the childIndex of
    each one after
    it's drawn.

  • Calling a program inside a splitter container

    hello All,
    Here is my requirement. In the first screen, If I click on a button, then it should pop a dialogue window which will ask for User Input. Once the user gives his input and clicks on "Submit" button of dialogue window, then it should take direct him to a screen which is divided into 3 halves. Each half will show a different graph.
    How do I split my main container into 3 equal size rows and display graphs in each container (by submitting a program)?
    Thanks in advance to all of you,
    Regards,
    Ashish

    hello All,
    Here is my requirement. In the first screen, If I click on a button, then it should pop a dialogue window which will ask for User Input. Once the user gives his input and clicks on "Submit" button of dialogue window, then it should take direct him to a screen which is divided into 3 halves. Each half will show a different graph.
    How do I split my main container into 3 equal size rows and display graphs in each container (by submitting a program)?
    Thanks in advance to all of you,
    Regards,
    Ashish

  • Spawning Threads inside the Web Container

    What are the ramifications of a developer spawning off threads from a "helper"
    object called from a servlet service() method ?
    Thanks in advance.

    That's what I said, it is not at all advisable but if you know what you
    are doing it can work just fine.
    The biggest issue is migration since the behavior is not defined in the
    spec and thus all vendors can implement it differently and it can change
    from version to version, which in turn defeats the J2EE portability
    advantage.
    That is why I highly recommended using JMX timers since it is going to
    be available on all J2EE servers and then the only vendor dependent
    thing is to get the MBeanServer.
    Dejan
    DN wrote:
    Hello
    I was also doing the same thing from my servlet but using another class which
    extends thread.
    I was using JDBC calls in the new thread , eventhough it worked fine I was getting
    warning messages in the console when I was using WSAD.(websphere studio).
    My app is deployed to WLS , i did not see any messages in WLS.
    When I post this issue in a forum , some one advised me that it is not advisable
    to open up threads from the servlets and this is what he said 'quote'
    so eventually (i.e.
    J2EE 1.4) spun threads from a Servlet accessing a
    database outside of a transaction will not be
    supported either.
    "Deyan D. Bektchiev" <[email protected]> wrote:
    Whit,
    If you are not careful you can very well starve the JVM, lose your
    security, transaction contexts and probably some other bad things I
    don't know about...
    But having said all those scary things, I must admit that we do it all
    the time and don't have any issues with that.
    For most purposes you should try to use the JMX timer service instead
    of
    spawning your own threads. You callback will be called in a different
    thread from the Weblogic thread pool and I guess this will be sufficient
    for most cases.
    Regards,
    Dejan
    Whit Armstrong wrote:
    What are the ramifications of a developer spawning off threads from
    a "helper"
    object called from a servlet service() method ?
    Thanks in advance.

Maybe you are looking for