Flex 4 UI Layout Constraint mis-behavior

Hello,
So here is the problem, below is basically my application wireframe in mxml. The problem comes in when I'm looking at a report component, so the reportComponents is visible, not the filterComponents.
What is happening is the UI element is sliding outside the container to the left when the browser resizes, it literally slides right off the screen.
I have tried defining layouts and layout contraints and other various fixes to no avail.
Can anyone help me?
    <s:SkinnableContainer width="100%" minWidth="768" maxHeight="800"  >    
        <!-- Reports Components - ReportsHolder manages which report is being viewed.... SubChiron has variances depending on which report, but configures itself accordingly -->
        <s:Group  id="ReportComponents" horizontalCenter="0" left="5"
                  width="100%" bottom.reportState="0" top="10"
                  height.loadingState="0" height.loadedState="0" height.reportState="100%"
                  alpha.loadingState="0" alpha.loadedState="0" alpha.reportState="1"
                  visible.loadedState="false">    
            <components:SubChiron id="subChiron" top="155" height.loadedState="0" alpha.loadedState="0"
                                  REPORT_VIEW_EVENT="ReportViewStateChange(event)" PE_TO_STATE="pEStateChange(event)" PART_COST_EVENT="pcReportChange(event)"
                                  CPP_EVENT="cppEventHandler(event)" EVAL_QUESTION_EVENT="EvalQuestionEventHandler(event)" EVAL_FILTER_EVENT="EvalFilterHandler(event)"
                                  PRINT_GRID_EVENT="PrintGridHandler(event)"/>
            <views:ReportsHolder top="250" id="reportsComponent" height.reportState="65%" minHeight.reportState="650" width="100%" height="0" bottom="0" left="5"/>
        </s:Group>
        <views:Chiron id="ApplicationControlPanel" top="0"
                      RESET_EVENT="resetDataHandler()" HOME_EVENT="homeEventHandler()" SELECT_SEARCH_EVENT="searchResultHandler(event)" />
        <s:Group id="dashboardComponents"
                 alpha.loadingState="0" alpha.loadedState="1" alpha.reportState="0" visible.reportState="false"
                 height.reportState="0"
                 width="100%" height="100%">
            <mx:HBox top="170" bottom="15" horizontalCenter="0" width="98%" height="100%" horizontalGap="10">
                <views:Filters id="FiltersPanel" left="15" FILTER_EVENT="AddFilterHandler(event)" FILTER_XMLLIST_EVENT="AddSpecialFilterHandler(event)" />
                <views:FiltersStates id="FiltersStatesPanel" FILTER_SET_EVENT="filterSet(event)" FILTER_SET_EVENT2="filterSet(event)" FILTER_SET_EVENT3="filterSet(event)" FILTER_SET_EVENT4="filterSet(event)" left="235" />
                <views:Results id="ResultsPanel" RESULT_SET_EVENT="programCountDispatchHandler()" SELECT_SEARCH_EVENT="searchResultHandler(event)"  />
                <views:Reports id="ReportsPanel" right="15" REPORT_GENERATION_EVENT="doReportGeneration(event)" />
            </mx:HBox>
        </s:Group>
    </s:SkinnableContainer>  

It's really hard to tell what is going on without being able to run your sample.  My wild guess would be that this is working as it should since you set <views:Reports id="ReportsPanel" right="15" ... which means that the panel will always be glued to the right of its parent container.  So if that parent container gets smaller then the reports panel will move to the left to ensure the right="15" constraint is satisfied.

Similar Messages

  • [svn:fx-trunk] 15679: Made layout constraint animation actually work.

    Revision: 15679
    Revision: 15679
    Author:   [email protected]
    Date:     2010-04-23 16:33:44 -0700 (Fri, 23 Apr 2010)
    Log Message:
    Made layout constraint animation actually work. Animating constraints (left, right, etc.) with the Animate effect worked previously, but only if the animation values were explicitly specified or, in a transition, if both states had valid values for the constraint. But if you attempted to run a transition animating "left" where the constraint was cleared in either state, the animation would fail.
    The fix checks for invalid values in the states and, when they occur, animates other related properties instead, or in addition. For example, an animation on "left" may turn into an animation on "x".
    QE notes: None (added new checkintest AnimateConstraintsTest; might be interesting to see for further Mustella test development)
    Doc notes: None
    Bugs: None
    Reviewer: Jason
    Tests run: checkintests (with new test), Mustella spark/effects
    Is noteworthy for integration: Yes. Downstream teams asked for this functionality.
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Animate.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/Resize.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateInstance .as
        flex/sdk/trunk/frameworks/tests/basicTests/BasicTests-config.xml
        flex/sdk/trunk/frameworks/tests/basicTests/BasicTests.mxml
    Added Paths:
        flex/sdk/trunk/frameworks/tests/basicTests/spark/scripts/AnimateConstraintsTestScript.mxm l
        flex/sdk/trunk/frameworks/tests/basicTests/spark/views/AnimateConstraintsTests.mxml

    You have used elements like header, footer, footer1 and nav without using the correct DOCTYPE declaration. Replace the first line of your code with
    <!doctype html>
    Also have a look here for other problems http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fhome.surewest.net%2Fstorytales%2F test%2Fforposting.html
    After the above has been fixed, please come back here to fix the remaining problem(s)
    Gramps

  • How to add layout constraints in CSS?

    Is there a way to specify layout constraints in CSS? For example how can I specify that the first column in a GridPane should be aligned right? This can be done programmatically by adding a column constraint to a GridPane, like here:
    GridPane gridpane = new GridPane();
    ColumnConstraints column = new ColumnConstraints();
    column.setHalignment(HPos.RIGHT);
    gridpane.getColumnConstraints().add(column);

    As far as I understand it this is not supported in CSS. In general size and layout is not included in JFX CSS by design:
    JavaFX CSS does not support CSS layout properties such as float, position, overflow, and width. However, the CSS padding and margins properties are supported on some JavaFX scene graph objects. All other aspects of layout are handled programmatically in JavaFX code.
    This is from: http://download.oracle.com/javafx/2.0/api/javafx/scene/doc-files/cssref.html
    This is a bit limiting at times as they are often heavily related. I imagine it was a decision around separation of concerns - I'm not sure yet whether this is a good idea or not.
    [url http://download.oracle.com/javafx/2.0/api/javafx/fxml/doc-files/introduction_to_fxml.html]FXML is worth a look at for making layouts as scripts, that non-Java programmers can work with. It doesn't solve the 'style' issue but might go some way to help you.
    Cheers,
    zonski
    Did you find this answer useful? If so, please mark as 'Correct' or 'Helpful'.

  • How to layout constraint rows and columns "right"?

    Hi.
    I have a complex constraint layout with 8 columns and 11 rows. Since this layout is not an MXML-file, I need to do it in actionscript. Is there a "best pratice" on how to layout this without the Design view in Flash Builder?
    Is it possible to display the columns and rows like in HTML, where I could say "border=1" or use css?
    Regards,
    Jo

    What makes you think that it is not there? Any form which doesn't have the same set of members across rows and dimensions are asymmetric.
    Asymmetric rows and columns contain different sets of members selected across the same dimensions
    Oracle Hyperion Planning, Fusion Edition Administrator's Guide
    I can add a column with only Q1 and then another column with Q2, Q3, Q4 which will make it an asymmetric form. Keep in mind not to check "Place selection in separate columns".
    Regards
    Celvin
    http://www.orahyplabs.com

  • Fill mis-behavior

    Win7 Pro, 64-bit. 16Gg RAM
    I am new to Illustrator. I have the CS4 version, and chose (maybe bad idea for someone new to the SW) to use it to make vector a scan I was placing in a Photoshop (CS6) document. When Placing I of course put it on its own layer and it became a Smart Object.   I now  have uncontrolled fill behavior.
    First, I am trying in Illustrator to get different areas as defined by a bunch of paths to be black or transparent (or white if that's what I have to have). There is one all-inclusive "outer" path, and small interior shapes. The art I scanned called for one contiguous shape in black -- but with cut outs (closed interior areas) to be transparent -- therefore all these paths/borders, making shapes needed for definition of the silhouette, which I turned into paths in Photoshop and then opened the file in Illustrator.
    As Illustrator booted I noticed that this CS4 version seemed to be having trouble with a Registry setting/item. During boot the sw showed an error about the Registry and called an Adobe routine for reg fix. This happens every time I boot Illustrator. I mention this in case it is relevant (not likely, though.)
    The desired result is a black fill of the outside path with all the narrow cutout shapes "inside" remaining transparent. I'd settle for white! I have selected all the inside paths in Illustrator and set them to the front while setting the outside path to be "at the back". I expected the fill to be behind the other shapes. I can still select them through the black fill and specify a color fill but then the dialog/tool is finished the shape still does not show against the black.
    I can imagine that an inside path at the top level cannot force transparency down through the other fills. Perhaps I have to close off segments of the whole background fill and fill those one by one.
    suggestions, anyone?

    Monika, Thank you! I am right near the deadline for this, so all help is appreciated. more below.
    Client-supplied art: a scan of black paper cut with exacto knife. I took the big bitmap and made a vector file. Those thin slivers are each defined by their own path. In this version I have different stroke widths selected throughout the set. I will research "compound paths".
    I want the inside black with transparent cutouts.Probably no visible stroke because the final product is just black ink on a clear label.
    Again, thanks,
    jonathan7007

  • Setting Grid Bag Layout Constraints

    Hi any body can tell me whether the following gridbag constraints are correct or wrong in the java class.
    My problem is that the two butons (cancel and submit) are not displayed i am using Eclipse Ide Visual editor 2.1.
    Please any body can help me out if there are any changes to be done .
    * Created on May 25, 2004
    * To change the template for this generated file go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    package demo;
    import java.awt.*;
    import javax.swing.border.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.JMenuBar;
    import javax.swing.JPanel;
    import javax.swing.JLabel;
    import javax.swing.JTextField;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    * @author kv5459
    * To change the template for this generated type comment go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    public class DataBase extends JFrame {
         private javax.swing.JPanel jContentPane = null;
         JPanel XXqqds_GridField2;
         JPanel XXqqds_GridField3;
         JLabel XXqqds_TextGraphic4;
         JTextField XXqqds_DataField5;
         JLabel XXqqds_TextGraphic6;
         JTextField XXqqds_DataField7;
         JPanel XXqqds_GridField8;
    JButton XXqqds_PushButton9;
         JButton XXqqds_PushButton10;
         * This is the default constructor
         public DataBase() {
              super();
              initialize();
         * This method initializes this
         * @return void
         private void initialize() {
              this.setSize(500, 375);
              this.setContentPane(getJContentPane());
              setTitle("");
              setLocale(java.util.Locale.getDefault());
              setResizable(true);
              setState(Frame.NORMAL);
              setSize(500,375);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setVisible(true);
         * This method initializes jContentPane
         * @return javax.swing.JPanel
         private javax.swing.JPanel getJContentPane() {
              if (jContentPane == null) {
                   jContentPane = new javax.swing.JPanel();
                   jContentPane.setLayout(null);
              XXqqds_GridField2= new JPanel();
              XXqqds_GridField2.setBackground(getContentPane().getBackground());
              XXqqds_GridField2.setForeground(getContentPane().getForeground());
              XXqqds_GridField2.setLayout(new GridBagLayout());
              jContentPane.add(XXqqds_GridField2);
              XXqqds_GridField3= new JPanel();
              XXqqds_GridField3.setBackground(XXqqds_GridField2.getBackground());
              XXqqds_GridField3.setForeground(XXqqds_GridField2.getForeground());
              XXqqds_GridField3.setLayout(new GridBagLayout());
              XXqqds_GridField3.setBounds(new Rectangle(0,0,175,39));
              GridBagConstraints c1 = new GridBagConstraints();
              c1.gridx = 0;
              c1.gridy = 0;c1.gridwidth = 2;
              c1.anchor = java.awt.GridBagConstraints.CENTER;
              c1.weightx=0;c1.weighty=0;
              c1.fill = java.awt.GridBagConstraints.NONE;
              XXqqds_GridField3.setPreferredSize(new java.awt.Dimension(205,192));
              c1.ipadx = 0;c1.ipady = 0;
              XXqqds_TextGraphic4= new JLabel();
              XXqqds_TextGraphic4.setText("Name");
              XXqqds_TextGraphic4.setBackground(XXqqds_GridField3.getBackground());
              XXqqds_TextGraphic4.setForeground(XXqqds_GridField3.getForeground());
              XXqqds_TextGraphic4.setBounds(new Rectangle(13,2,49,15));
              GridBagConstraints c2 = new GridBagConstraints();
              c2.gridx=0;
              c2.gridy=0;
              c2.gridwidth=1;c2.gridheight=1;
              c2.anchor = java.awt.GridBagConstraints.NORTHWEST;
              c2.weightx = 0.0D;c2.weighty = 1.0D;
              c2.ipadx=0;c2.ipady=0;
              c2.fill = java.awt.GridBagConstraints.NONE;
              c2.insets = new java.awt.Insets(10,20,0,0);
              XXqqds_DataField5= new JTextField();
              XXqqds_DataField5.setBackground(new Color(255,255,255));
              XXqqds_DataField5.setForeground(XXqqds_GridField3.getForeground());
              XXqqds_DataField5.setBounds(new Rectangle(77,0,122,19));
              XXqqds_DataField5.setHorizontalAlignment(SwingConstants.LEADING);
              GridBagConstraints c3 = new GridBagConstraints();
              c3.gridx=1;
              c3.gridy=0;
              c3.gridwidth=1;c3.gridheight=1;
              c3.anchor = java.awt.GridBagConstraints.NORTH;
              c3.weightx=0;c3.weighty = 0.0D;
              c3.ipadx = 0;c3.ipady=0;
              c3.insets = new java.awt.Insets(10,0,0,5);
              XXqqds_DataField5.setPreferredSize(new java.awt.Dimension(117,20));
              XXqqds_GridField2.setSize(275, 192);
              XXqqds_GridField2.setLocation(96, 15);
              c3.fill=GridBagConstraints.HORIZONTAL;
              XXqqds_TextGraphic6= new JLabel();
              XXqqds_TextGraphic6.setText("Password");
              XXqqds_TextGraphic6.setBackground(XXqqds_GridField3.getBackground());
              XXqqds_TextGraphic6.setForeground(XXqqds_GridField3.getForeground());
              XXqqds_TextGraphic6.setBounds(new Rectangle(0,24,77,15));
              GridBagConstraints c4 = new GridBagConstraints();
              c4.gridx=0;
              c4.gridy = 0;
              c4.gridwidth=1;c4.gridheight=1;
              c4.anchor = java.awt.GridBagConstraints.NORTHWEST;
              c4.weightx=0;c4.weighty=0;
              c4.ipadx=0;c4.ipady=0;
              c4.fill=GridBagConstraints.NONE;
              c4.insets = new java.awt.Insets(40,20,0,0);
              XXqqds_DataField7= new JTextField();
              XXqqds_DataField7.setBackground(new Color(255,255,255));
              XXqqds_DataField7.setForeground(XXqqds_GridField3.getForeground());
              XXqqds_DataField7.setBounds(new Rectangle(77,22,123,19));
              XXqqds_DataField7.setHorizontalAlignment(SwingConstants.LEADING);
              GridBagConstraints c5 = new GridBagConstraints();
              c5.gridx=1;
              c5.gridy=0;
              c5.gridwidth=1;c5.gridheight=1;
              c5.anchor = java.awt.GridBagConstraints.NORTH;
              c5.weightx=0;c5.weighty=0;
              c5.ipadx=0;c5.ipady=0;
              //c.fill=GridBagConstraints.VERTICAL;
         //     c.fill=GridBagConstraints.HORIZONTAL;
              XXqqds_GridField8= new JPanel();
              XXqqds_GridField8.setBackground(XXqqds_GridField2.getBackground());
              XXqqds_GridField8.setForeground(XXqqds_GridField2.getForeground());
              XXqqds_GridField8.setLayout(new GridBagLayout());
              XXqqds_GridField8.setBounds(new Rectangle(28,39,118,22));
              GridBagConstraints c6 = new GridBagConstraints();
              c6.gridx=0;
              c6.gridy = 0;
              c6.anchor = java.awt.GridBagConstraints.SOUTH;
              c6.weightx=0;c6.weighty = 1.0D;
         //     c.fill=GridBagConstraints.BOTH;
    XXqqds_GridField8.setPreferredSize(new java.awt.Dimension(205,42));
              c6.ipadx=0;c6.ipady=0;
    XXqqds_DataField7.setPreferredSize(new java.awt.Dimension(117,20));
    XXqqds_PushButton9= new JButton();
              XXqqds_PushButton9.setBackground(XXqqds_GridField8.getBackground());
              XXqqds_PushButton9.setForeground(XXqqds_GridField8.getForeground());
              XXqqds_PushButton9.setBounds(new Rectangle(68,0,67,22));
    GridBagConstraints c7 = new GridBagConstraints();
    c1.gridheight = 1;
    c5.insets = new java.awt.Insets(40,0,0,0);
              c7.gridx=0;
              c7.gridy=0;
              c7.gridwidth=1;c7.gridheight=1;
              c7.anchor = java.awt.GridBagConstraints.WEST;
              c7.weightx = 1.0D;c7.weighty = 0.0D;
              c7.ipadx=0;c7.ipady=0;
              //c.fill=GridBagConstraints.BOTH;
    c7.insets = new java.awt.Insets(0,20,0,0);
    XXqqds_GridField8.add(XXqqds_PushButton9, c7);
              XXqqds_PushButton9.setText("Submit");
              XXqqds_PushButton9.setPreferredSize(new java.awt.Dimension(74,20));
              XXqqds_GridField3.add(XXqqds_TextGraphic4, c2);
              XXqqds_GridField3.add(XXqqds_DataField5, c3);
              XXqqds_GridField3.add(XXqqds_TextGraphic6, c4);
              XXqqds_GridField3.add(XXqqds_DataField7, c5);
              XXqqds_GridField2.add(XXqqds_GridField3, c1);
              XXqqds_GridField2.add(XXqqds_GridField8, c6);
         /*     XXqqds_PushButton9= new JButton();
              XXqqds_PushButton9.setBackground(XXqqds_GridField8.getBackground());
              XXqqds_PushButton9.setForeground(XXqqds_GridField8.getForeground());
              XXqqds_PushButton9.setBounds(new Rectangle(68,0,67,22));
    GridBagConstraints c7 = new GridBagConstraints();
              c7.gridx = 0;
              c7.gridy = 0;
              c7.gridwidth=1;c7.gridheight=1;
              c7.anchor = java.awt.GridBagConstraints.WEST;
              c7.weightx = 1.0D;c7.weighty = 0.0D;
              c7.ipadx=0;c7.ipady=0;
         //     c7.fill=GridBagConstraints.BOTH;
    c7.insets = new java.awt.Insets(0,20,0,0);
    XXqqds_PushButton9.setPreferredSize(new java.awt.Dimension(74,22));
    XXqqds_PushButton9.setText("Submit");
              XXqqds_GridField8.add(XXqqds_PushButton9, c7);
    XXqqds_PushButton10= new JButton();
              XXqqds_PushButton10.setBackground(XXqqds_GridField8.getBackground());
              XXqqds_PushButton10.setForeground(XXqqds_GridField8.getForeground());
              XXqqds_PushButton10.setBounds(new Rectangle(0,0,68,22));
    GridBagConstraints c8 = new GridBagConstraints();
              c8.gridx = 1;
              c8.gridy = 0;
              c8.gridwidth=1;c8.gridheight=1;
              c8.anchor = java.awt.GridBagConstraints.EAST;
              c8.weightx=0;c8.weighty=0;
              c8.ipadx=0;c8.ipady=0;
              //c.fill=GridBagConstraints.BOTH;
    c8.insets = new java.awt.Insets(0,0,0,15);
    XXqqds_DataField7.setPreferredSize(new java.awt.Dimension(117,20));
              XXqqds_PushButton10.setText("cancel");
              XXqqds_PushButton10.setPreferredSize(new java.awt.Dimension(74,22));
              XXqqds_GridField8.add(XXqqds_PushButton10, c8);
              return jContentPane;
         public static void main(String a[])
         new DataBase();

    Hi EvilEdna,
    First of all thanks for the suggession. Now i am sending properly indented code.
    My problem is PushButton9 And PushButton10 are not displayed properly.Please check the constraints of
    buttons 9 & 10.And i am using eclipse Visual editor IDE(2.1).
    * Created on May 25, 2004
    * To change the template for this generated file go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    package demo;
    import java.awt.*;
    import javax.swing.border.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.JMenuBar;
    import javax.swing.JPanel;
    import javax.swing.JLabel;
    import javax.swing.JTextField;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    * @author kv5459
    * To change the template for this generated type comment go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    public class DataBase extends JFrame {
         private javax.swing.JPanel jContentPane = null;
    JPanel XXqqds_GridField2;
         JPanel XXqqds_GridField3;
    JLabel XXqqds_TextGraphic4;
         JTextField XXqqds_DataField5;
         JLabel XXqqds_TextGraphic6;
         JTextField XXqqds_DataField7;
    JPanel XXqqds_GridField8;
    JButton XXqqds_PushButton9;
    JButton XXqqds_PushButton10;
         * This is the default constructor
         public DataBase() {
              super();
              initialize();
         * This method initializes this
         * @return void
         private void initialize() {
              this.setSize(500, 375);
              this.setContentPane(getJContentPane());
              setTitle("");
              setLocale(java.util.Locale.getDefault());
              setResizable(true);
              setState(Frame.NORMAL);
              setSize(500,375);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setVisible(true);
         * This method initializes jContentPane
         * @return javax.swing.JPanel
         private javax.swing.JPanel getJContentPane() {
              if (jContentPane == null) {
                   jContentPane = new javax.swing.JPanel();
                   jContentPane.setLayout(null);
              /* JPanel */     
              XXqqds_GridField2= new JPanel();
              XXqqds_GridField2.setBackground(getContentPane().getBackground());
              XXqqds_GridField2.setForeground(getContentPane().getForeground());
              XXqqds_GridField2.setLayout(new GridBagLayout());
              jContentPane.add(XXqqds_GridField2);
    /* JPanel */     
    XXqqds_GridField3= new JPanel();
              XXqqds_GridField3.setBackground(XXqqds_GridField2.getBackground());
              XXqqds_GridField3.setForeground(XXqqds_GridField2.getForeground());
              XXqqds_GridField3.setLayout(new GridBagLayout());
              XXqqds_GridField3.setBounds(new Rectangle(0,0,175,39));
              GridBagConstraints c1 = new GridBagConstraints();
              c1.gridx = 0;
              c1.gridy = 0;
    c1.gridwidth = 2;
    c1.gridheight = 1;
              c1.anchor = java.awt.GridBagConstraints.CENTER;
              c1.weightx=0;c1.weighty=0;
              c1.fill = java.awt.GridBagConstraints.NONE;
              XXqqds_GridField3.setPreferredSize(new java.awt.Dimension(205,192));
              c1.ipadx = 0;c1.ipady = 0;
    XXqqds_GridField2.add(XXqqds_GridField3, c1);
    /* JLabel */
              XXqqds_TextGraphic4= new JLabel();
              XXqqds_TextGraphic4.setText("Name");
              XXqqds_TextGraphic4.setBackground(XXqqds_GridField3.getBackground());
              XXqqds_TextGraphic4.setForeground(XXqqds_GridField3.getForeground());
              XXqqds_TextGraphic4.setBounds(new Rectangle(13,2,49,15));
              GridBagConstraints c2 = new GridBagConstraints();
              c2.gridx=0;
              c2.gridy=0;
              c2.gridwidth=1;c2.gridheight=1;
              c2.anchor = java.awt.GridBagConstraints.NORTHWEST;
              c2.weightx = 0.0D;c2.weighty = 1.0D;
              c2.ipadx=0;c2.ipady=0;
              c2.fill = java.awt.GridBagConstraints.NONE;
              c2.insets = new java.awt.Insets(10,20,0,0);
    XXqqds_GridField3.add(XXqqds_TextGraphic4, c2);
    /* JTextField */
              XXqqds_DataField5= new JTextField();
              XXqqds_DataField5.setBackground(new Color(255,255,255));
              XXqqds_DataField5.setForeground(XXqqds_GridField3.getForeground());
              XXqqds_DataField5.setBounds(new Rectangle(77,0,122,19));
              XXqqds_DataField5.setHorizontalAlignment(SwingConstants.LEADING);
              GridBagConstraints c3 = new GridBagConstraints();
              c3.gridx=1;
              c3.gridy=0;
              c3.gridwidth=1;c3.gridheight=1;
              c3.anchor = java.awt.GridBagConstraints.NORTH;
              c3.weightx=0;c3.weighty = 0.0D;
              c3.ipadx = 0;c3.ipady=0;
              c3.insets = new java.awt.Insets(10,0,0,5);
              XXqqds_DataField5.setPreferredSize(new java.awt.Dimension(117,20));
              c3.fill=GridBagConstraints.HORIZONTAL;
    XXqqds_GridField3.add(XXqqds_DataField5, c3);
    /* JLabel */
              XXqqds_TextGraphic6= new JLabel();
              XXqqds_TextGraphic6.setText("Password");
              XXqqds_TextGraphic6.setBackground(XXqqds_GridField3.getBackground());
              XXqqds_TextGraphic6.setForeground(XXqqds_GridField3.getForeground());
              XXqqds_TextGraphic6.setBounds(new Rectangle(0,24,77,15));
              GridBagConstraints c4 = new GridBagConstraints();
              c4.gridx=0;
              c4.gridy = 0;
              c4.gridwidth=1;c4.gridheight=1;
              c4.anchor = java.awt.GridBagConstraints.NORTHWEST;
              c4.weightx=0;c4.weighty=0;
              c4.ipadx=0;c4.ipady=0;
              c4.fill=GridBagConstraints.NONE;
              c4.insets = new java.awt.Insets(40,20,0,0);
    XXqqds_GridField3.add(XXqqds_TextGraphic6, c4);
              /* JTextField */
    XXqqds_DataField7= new JTextField();
              XXqqds_DataField7.setBackground(new Color(255,255,255));
              XXqqds_DataField7.setForeground(XXqqds_GridField3.getForeground());
              XXqqds_DataField7.setBounds(new Rectangle(77,22,123,19));
              XXqqds_DataField7.setHorizontalAlignment(SwingConstants.LEADING);
              GridBagConstraints c5 = new GridBagConstraints();
              c5.gridx=1;
              c5.gridy=0;
              c5.gridwidth=1;c5.gridheight=1;
              c5.anchor = java.awt.GridBagConstraints.NORTH;
              c5.weightx=0;c5.weighty=0;
              c5.ipadx=0;c5.ipady=0;
    c5.insets = new java.awt.Insets(40,0,0,0);
    XXqqds_DataField7.setPreferredSize(new java.awt.Dimension(117,20));
         XXqqds_GridField3.add(XXqqds_DataField7, c5);
    /* JPanel */
    XXqqds_GridField8= new JPanel();
              XXqqds_GridField8.setBackground(XXqqds_GridField2.getBackground());
              XXqqds_GridField8.setForeground(XXqqds_GridField2.getForeground());
              XXqqds_GridField8.setLayout(new GridBagLayout());
              XXqqds_GridField8.setBounds(new Rectangle(28,39,118,22));
              GridBagConstraints c6 = new GridBagConstraints();
              c6.gridx=0;
              c6.gridy = 0;
              c6.anchor = java.awt.GridBagConstraints.SOUTH;
              c6.weightx=0;c6.weighty = 1.0D;
         XXqqds_GridField8.setPreferredSize(new java.awt.Dimension(205,42));
              c6.ipadx=0;c6.ipady=0;
    XXqqds_GridField2.add(XXqqds_GridField8, c6);
    /* Submit Button */
    XXqqds_PushButton9= new JButton();
              XXqqds_PushButton9.setBackground(XXqqds_GridField8.getBackground());
              XXqqds_PushButton9.setForeground(XXqqds_GridField8.getForeground());
              XXqqds_PushButton9.setBounds(new Rectangle(68,0,67,22));
    GridBagConstraints c7 = new GridBagConstraints();
    c7.gridx=0;
              c7.gridy=0;
              c7.gridwidth=1;c7.gridheight=1;
              c7.anchor = java.awt.GridBagConstraints.WEST;
              c7.weightx = 1.0D;c7.weighty = 0.0D;
              c7.ipadx=0;c7.ipady=0;
              c7.insets = new java.awt.Insets(0,20,0,0);
              XXqqds_PushButton9.setText("Submit");
              XXqqds_PushButton9.setPreferredSize(new java.awt.Dimension(74,20));
              XXqqds_GridField8.add(XXqqds_PushButton9, c7);
         /* Cancel Button */
    XXqqds_PushButton10= new JButton();
              XXqqds_PushButton10.setBackground(XXqqds_GridField8.getBackground());
              XXqqds_PushButton10.setForeground(XXqqds_GridField8.getForeground());
              XXqqds_PushButton10.setBounds(new Rectangle(0,0,68,22));
    GridBagConstraints c8 = new GridBagConstraints();
    c8.gridx = 1;
              c8.gridy = 0;
              c8.gridwidth=1;c8.gridheight=1;
              c8.anchor = java.awt.GridBagConstraints.EAST;
              c8.weightx=0;c8.weighty=0;
              c8.ipadx=0;c8.ipady=0;
         c8.insets = new java.awt.Insets(0,0,0,15);
    XXqqds_PushButton10.setText("cancel");
              XXqqds_PushButton10.setPreferredSize(new java.awt.Dimension(74,22));
    XXqqds_GridField8.add(XXqqds_PushButton10, c8);
              return jContentPane;
         public static void main(String a[])
         new DataBase();

  • Brush Tool (Mis)Behavior in CS4

    I've been experiencing a recurring problem with the brush tool as well as several other (but not all) tools. When opening multiple documents (RAW > TIFF) as is typical for my workflow, I can only paint on a mask, replace color, etc. on the first file and then the tool(s) stop functioning when attempting to work on the remaining files. I've attempted to correct this issue by resetting all tools and preferences to no avail. The only solution I've been able to come up with is to close all files and restart PS CS4. The problem does not occur if I open, work and close one file at a time but this is not a desirable workflow.
    System is XP Pro on historic 3.0 GHz P4 machine; 512 MB NVidia video card with 260.99 driver update running dual 20" monitors; 2.4 GB available RAM w/70% allocated to PS; Open GL enabled w/advanced options all disabled (runs best this way); 11.02 CS4 update is installed; driver for Wacom tablet is 6.1.6-7. Other than some slightly sticky scrubby sliders, CS4 runs well. Any suggestions for solving the tool problem would be much appreciated!

    A bit of a longshot, but try disabling the Advanced OpenGL drawing settings.  Edit - Preferences - Performance, then press the [Advanced Settings...] button, then UNcheck all the boxes.  Make sure you restart Photoshop after changing these.
    I mention this because I personally had a troublesome system that was stabilized by doing exactly as I noted above.
    If it doesn't help, make sure to remember to set them back to what they were.
    If it does help, you can try re-enabling the settings one by one until you isolate the one causing the problem.  Me, I just left them all disabled and CS4 started to behave very well.  I didn't notice performance degradation,.
    -Noel

  • Flex 3 AIR Liquid layout

    Hai Freinds,
    I have issue on Flex AIR liquid layout, actually i have an
    WindowedApplication in which i have VBox(width:955, height:600) and
    so on.., but i need it to be liquid layout, It could be great
    helpful if any body help me
    Thank you

    Hai Freinds,
    I have issue on Flex AIR liquid layout, actually i have an
    WindowedApplication in which i have VBox(width:955, height:600) and
    so on.., but i need it to be liquid layout, It could be great
    helpful if any body help me
    Thank you

  • Dynamically changing Layout Managers Constraints

    Hi,
    Does any one worked on Changing the layout Constraints dynamically before ?, If so Can you explain me your experience and how it can be possible ?
    Thanks,
    Chekks

    There are several ways of doing this, it really depends on your requirements as to which is suitable. (There are probably other ways of doing this as well).
    - Try Reports XML Customizations
    This is available in 6i and allows you to create a report dynamically on the fly. The template used will also allow you to change the paper size as well. The main limitation is that you are relying only on Reports defaulting to create the layout for you. The advantage is that you can store all your information to create the report in meta-data which can be driven by another tool.
    - Use lexical parameters for queries and format triggers
    Here, you have a fixed layout but dynamically change the query columns to the correct order. You would normally standardise on a "character" column type in order to do this. Even though the layout is fixed, you can use variable sized fields to push objects around. This can be difficult to setup.
    - Use several layouts
    You're reducing the options for the user, but you can have several layouts in the same report and turn them on/off. Effectively creating differing views of the same data.

  • Java Swings Vs Flex which is better?

    Hi,
       I do not know whether this is the right place to post this thread. We are planning to replace Java Swings client with Adobe Flex GUI. So I am in the process of analyzing the performances and advantages of Flex over Java Swings.
    So, Can any one kindly let me know whether Flex supports all the features of Java Swings (like components... etc).
    Actually my backend server is also Java and the communication between client and server is based on CORBA.
    So, considering all these constraints please comment on this.
    Regards,
    Purush.

    Both support object-oriented GUI development. The same core ideas apply to both, so the jump for a developer isn't too intense. Perhaps the largest difference is that Flex has XML layout files which is a nice plus (although many abuse the capability of injecting logic into it as well). JavaFX is the Java-world answer to Flex, so you may want to play around with that first since it will be more familiar.

  • Flex 4 Premium reference to the Stage issue! width and height seem to be switched??

    So I am doing a very basic resize effect with a panel, but if I want it to fill the screen, I have to switch stage.stageWidth and stage.stageHeight. I have also traced them out and they come out as switched values. Anyone else having this issue?
    protected function panel1_addedToStageHandler(event:Event):void
          trace(stage.stageWidth, " " , stage.stageHeight);

    Hi,
    You maybe running into some sort of layout constraint also it depends on how you are initiating the animation, if you are doing it on startup you need to wait for creationComplete to ensure all your dimensions have been calculated for the browser. You shouldn't need to use stage dimensions either. The following code resizes a panel to fill the browser. (note using top/left/bottom/right is a lot smoother than width and height).
    David
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx"
       creationComplete="application1_creationCompleteHandler(event)">
    <fx:Script>
    <![CDATA[
    import mx.events.FlexEvent;
    protected function application1_creationCompleteHandler(event:FlexEvent):void
    pw.valueFrom=pnl.width;
    ph.valueFrom=pnl.height;
    fillscreen.play();
    ]]>
    </fx:Script>
    <fx:Declarations>
    <s:Animate id="fillscreen" target="{pnl}" repeatCount="1" duration="1000">
    <s:SimpleMotionPath id="pw" property="width" valueTo="{width}"/>
    <s:SimpleMotionPath id="ph" property="height" valueTo="{height}"/>
    </s:Animate>
    </fx:Declarations>
    <s:Panel id="pnl" width="250" height="200" horizontalCenter="0" verticalCenter="0">
    </s:Panel>
    </s:Application>

  • Change the color of selecteditem in a LIST FLEX

    i WANT TO CHANGE THE COLOR OF SELECTEDITEM IN A LIST.  WHEN EVER USER DOUBLE CLICK THE ITEM IT SHOULD CHANGE THE COLOR...
      THIS IS MY LIST WITH DOUBLE CLICK EVENT...PLEASE HELP.....THIS SEEMED SO SIMPLE BUT I ALREADY SPENT FEW HOURS..
    HELP WILL BE APPRECIATED. THANKS
    <s:List id="shopslist1" left="0" right="0" top="57" bottom="0"
                initialize="shopslist1.dataProvider=actions" labelField="details" color="Red"   doubleClick="shopslist1_doubleClickHandler(event)">      
        </s:List>
    protected function shopslist1_doubleClickHandler(event:MouseEvent):void
                    shopslist1.selectedItem. ?????????

    Hello,
    Please see following code:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- dpcontrols\spark\SparkListSimpleStyles.mxml -->
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx">
    <s:layout>
    <s:VerticalLayout/>
    </s:layout>
    <fx:Script>
    <![CDATA[
    protected function myList_doubleClickHandler(event:MouseEvent):void
    myList.setStyle("selectionColor" ,"#CC6600");
    ]]>
    </fx:Script>
    <s:List id="myList"
    alternatingItemColors="[#66FFFF, #33CCCC]"
        doubleClick="myList_doubleClickHandler(event)">
    <s:dataProvider>
    <mx:ArrayCollection>
    <fx:String>Flex</fx:String>
    <fx:String>Flash Builder</fx:String>
    <fx:String>Flash</fx:String>
    <fx:String>Director</fx:String>
    <fx:String>Dreamweaver</fx:String>
    <fx:String>ColdFusion</fx:String>
    </mx:ArrayCollection>
    </s:dataProvider>
    </s:List>
    </s:Application>
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

  • In Calendar app for iOS 6, behavior of badges is inconsistent

    My company has a good number of iPhones and iPads using Activesync to access our Exchange 2007 email environment. We have noticed that the behavior of "badges" in the Calendar seems inconsistent or inapporpriate.
    Example: UserA has iPhone and iPad, both running iOS 6, and Outlook 2007 under Windows 7.. Both iOS devices share the same AppleID.
    UserA receives a Calendar invitation. The invitation shows up on all three devices as an email. The "badge" count indicating the number of unresponded-to Calendar invitations count increments by 1 on iPad and iPhone. So far, so good.
    UserA opens the invitation on the iPad and accepts or delines the invitation. The badge count decrements by one on both iPad and iPhone. Again, so far, so good.
    But if UserA opens the invitation on the iPhone and accepts/declines, the badge count decrements on the iPhone, but NOT on the iPad. Doesn't make any difference how long he waits; refreshing mail on the iPad has no effect on badge count.
    This (mis) behavior seems quite consistent. Do we have a setting wrong somewhere, or is this a known bug? I should say the badge counts on a number of my iPhone and iPad applications behave in, let's say, an unusual or uninformative manner. But this behavior in an enterprise environment is driving my CIO crazy.

    Search the app store. There are several MS Office compatible apps. Quickoffice and Documents to Go are two to look into, but there are more. Numbers can certainly be used "offline" and personally I prefer it to many of the othes available (and you should be able to download a prior version: http://support.apple.com/kb/ht5919). Depending on the specific needs, however, there may not be a substitute for Excel on a computer. No iOS spreadsheets apps handle pivot tables, for example, or include the ability to use macros.

  • ADF Form no longer functioning after being wrapped in layouts.

    JDeveloper 11.1.1.0.1 + ADF BC + ADF RC
    I had an ADF panelFormLayout that was functioning perfectly until I wrapped it in a panelSplitter and wrapped the panelSplitter in a panelStretchLayout.
    Now, when I query the correct results are initially displayed, but when I press the Next button, certain inputTexts don't change to display the correct values.
    Some of them change to reflect the current values in the iterator (those with partialTriggers), but most simply continue to display the values of the first record returned. The Previous button doesn't seem to work at all anymore.
    What am I missing here? Why would wrapping the panelFormLayout in other layouts cause this behavior?
    Thanks All!

    Heres the steps to create:
    - New > Application
    - New > 'Business Components From Tables' and make BCs for Employees and Departments
    - Edit EmployeesView to include where clause "WHERE Employees.LAST_NAME LIKE :last, and create String bind variable for 'last'
    - New > JSF JSPX
    - Insert PanelSplitterLayout into Form component
    - Drag ExecuteWithParams operation from EmployeesView into PanelSplitterLayout 'Second' facet as ADF Parameter Form
    - Drag EmployeesView from Data Controls as ADF Form with navigation buttons under ExecuteWithParams parameter form.
    - Set disabled=true for EmployeeId, FirstName, and LastName inputTexts in ADF Form
    - Drag DepartmentsView from DataControls into PanelSplitterLayout 'First' facet as ADF Tree, creating a two level tree: Department Name > Employees First and Last Name
    To produce the problem once running:
    - Enter '%' into the text box for the bind variable 'last', and click ExecuteWithParams button
    - You will see the next button does nothing
    - If you click ExecuteWithParams button again, everything starts to work again.
    Much thanks.
    Edited by: Alexander Pepper on Feb 4, 2009 7:51 AM

  • Gridbag layout - set size

    can I set a pixel width size for the cell of a gridbag?

    Set the minimum width and height as well as preferred width and height and let the layout manager take care of the size.
    You can not set the absolute width and height because components under GridbagLayout do not have adjustable size. Their size is determinded by layout manager, and the only thing you can set is the layout constraints and minimum/maximum/preferred size.

Maybe you are looking for