JDK 1.5 Tiger Layout Manager Problems anyone?

Discussion in 'Java' started by Michael Pitoniak, Feb 10, 2004.

  1. Greetings,

    I tried running my application under the beta release of Tiger and it
    worked, but the GUI was messed up with what appear to be layout
    problems. Anyone else seeing this?

    Thanks,

    mike
     
    Michael Pitoniak, Feb 10, 2004
    #1
    1. Advertisements

  2. I don't see these problems. But the different Java versions
    1.4.1x, 1.4.2xx, 1.5.0bxx use different component sizes
    in the core l&fs.

    Changes should be minimal in the Java l&f, even
    if you use the new Ocean theme. But the Windows l&f
    component sizes have changed (often due to Insets).

    Changes in the component sizes can affect the
    overall layout. But if you carefully use layout
    management this should not be the case.

    I've tested all my freeware applications with the
    1.5 betas and have seen no differences in the
    GridBagLayout, BorderLayout and FlowLayout.

    Karsten
     
    Karsten Lentzsch, Feb 10, 2004
    #2
    1. Advertisements

  3. Michael Pitoniak

    Chris Smith Guest

    No, but you might try telling us at least what look and feel and what
    layout managers you're working with. Better yet, post a simple example
    (GUI code only, with no logic) that demonstrates the difference. I'd be
    happy to try it out in both places and try to help you puzzle out the
    reasons for the difference.

    --
    www.designacourse.com
    The Easiest Way to Train Anyone... Anywhere.

    Chris Smith - Lead Software Developer/Technical Trainer
    MindIQ Corporation
     
    Chris Smith, Feb 10, 2004
    #3
  4. Sorry for lack of data. Just wanted to get a general sense of
    stability.I tried both Oceans and Steel look and feel with same results.
    I developed the GUI in NetBean 3.51. Here is the GUI portion of the
    code as the entire class had too much additional unneccecary data. The
    behavior I am seeing is that the buttons amd combo boxes are only a
    few pixels in height, and the footer JPanel is not even displayed.
    Looks fine when run under 1.4.2. The app actually works, the GUI is
    just mangled.

    Hope this provides some insight. Many thanks for your time.

    mike

    ==========================================================================

    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    */
    private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;

    titlejPanel = new javax.swing.JPanel();
    testNamejLabel = new javax.swing.JLabel();
    titleSpacerjLabel = new javax.swing.JLabel();
    iPheaderJPanel = new javax.swing.JPanel();
    targetIPjComboBox = new javax.swing.JComboBox();
    editjButton = new javax.swing.JButton();
    runjButton = new javax.swing.JButton();
    targetIPSpacerjLabel = new javax.swing.JLabel();
    scriptheaderJPanel = new javax.swing.JPanel();
    testScriptJComboBox = new javax.swing.JComboBox();
    clearjButton = new javax.swing.JButton();
    stopjButton = new javax.swing.JButton();
    scriptSpacerjLabel = new javax.swing.JLabel();
    selectjButton = new javax.swing.JButton();
    deletejButton = new javax.swing.JButton();
    argsjPanel = new javax.swing.JPanel();
    argjLabel = new javax.swing.JLabel();
    scriptArgsjTextField = new javax.swing.JTextField();
    jTabbedPane = new javax.swing.JTabbedPane();
    outputjPanel = new javax.swing.JPanel();
    outputjScrollPane = new javax.swing.JScrollPane();
    errorjPanel = new javax.swing.JPanel();
    errorjScrollPane = new javax.swing.JScrollPane();
    debugjPanel = new javax.swing.JPanel();
    debugjScrollPane = new javax.swing.JScrollPane();
    loggerjPanel = new javax.swing.JPanel();
    loggerjScrollPane = new javax.swing.JScrollPane();
    footerjPanel = new javax.swing.JPanel();
    outPutjCheckBox = new javax.swing.JCheckBox();
    infojCheckBox = new javax.swing.JCheckBox();
    clearjCheckBox = new javax.swing.JCheckBox();
    footerSpacerjLabel = new javax.swing.JLabel();
    scriptIterationCntjLabel = new javax.swing.JLabel();
    scriptIterationCntjTextField = new javax.swing.JTextField();
    totalCntjLabel = new javax.swing.JLabel();
    totalCntjTextField = new javax.swing.JTextField();
    failCntjLabel = new javax.swing.JLabel();
    failCntjTextField = new javax.swing.JTextField();
    successCntjLabel = new javax.swing.JLabel();
    successCntjTextField = new javax.swing.JTextField();

    setLayout(new java.awt.GridBagLayout());

    setBorder(new javax.swing.border.EtchedBorder());
    setMinimumSize(new java.awt.Dimension(650, 530));
    setPreferredSize(new java.awt.Dimension(650, 530));
    titlejPanel.setLayout(new java.awt.GridBagLayout());

    titlejPanel.setMinimumSize(new java.awt.Dimension(529, 30));
    testNamejLabel.setFont(new java.awt.Font("Dialog", 1, 18));
    testNamejLabel.setText("*** Test");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill =
    java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 0);
    titlejPanel.add(testNamejLabel, gridBagConstraints);

    titleSpacerjLabel.setMaximumSize(new java.awt.Dimension(0,
    24));
    titleSpacerjLabel.setMinimumSize(new java.awt.Dimension(0,
    24));
    titleSpacerjLabel.setPreferredSize(new java.awt.Dimension(0,
    24));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill =
    java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.ipadx = 460;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
    titlejPanel.add(titleSpacerjLabel, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill =
    java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(10, 5, 5, 5);
    add(titlejPanel, gridBagConstraints);

    iPheaderJPanel.setLayout(new java.awt.GridBagLayout());

    iPheaderJPanel.setMinimumSize(new java.awt.Dimension(270,
    30));
    targetIPjComboBox.setMinimumSize(new java.awt.Dimension(75,
    23));
    targetIPjComboBox.setPreferredSize(new java.awt.Dimension(300,
    23));
    targetIPjComboBox.addItemListener(new
    java.awt.event.ItemListener() {
    public void itemStateChanged(java.awt.event.ItemEvent evt)
    {
    IPAddrComboBoxItemStateChange(evt);
    }
    });

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 5);
    iPheaderJPanel.add(targetIPjComboBox, gridBagConstraints);

    editjButton.setText("Edit");
    editjButton.setToolTipText("Edit Script");
    editjButton.setMaximumSize(new java.awt.Dimension(80, 25));
    editjButton.setMinimumSize(new java.awt.Dimension(80, 25));
    editjButton.setPreferredSize(new java.awt.Dimension(80, 25));
    editjButton.addActionListener(new
    java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent
    evt) {
    editjButtonActionPerformed(evt);
    }
    });

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 0;
    iPheaderJPanel.add(editjButton, gridBagConstraints);

    runjButton.setText("Run");
    runjButton.setToolTipText("Run Script");
    runjButton.setMaximumSize(new java.awt.Dimension(80, 25));
    runjButton.setMinimumSize(new java.awt.Dimension(80, 25));
    runjButton.setPreferredSize(new java.awt.Dimension(80, 25));
    runjButton.addActionListener(new
    java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent
    evt) {
    runjButtonActionPerformed(evt);
    }
    });

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 5);
    iPheaderJPanel.add(runjButton, gridBagConstraints);

    targetIPSpacerjLabel.setPreferredSize(new
    java.awt.Dimension(10, 10));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.ipadx = 10;
    gridBagConstraints.ipady = 10;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    iPheaderJPanel.add(targetIPSpacerjLabel, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill =
    java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    add(iPheaderJPanel, gridBagConstraints);

    scriptheaderJPanel.setLayout(new java.awt.GridBagLayout());

    scriptheaderJPanel.setMinimumSize(new java.awt.Dimension(440,
    30));
    testScriptJComboBox.setMinimumSize(new java.awt.Dimension(75,
    23));
    testScriptJComboBox.setPreferredSize(new
    java.awt.Dimension(300, 23));
    testScriptJComboBox.addItemListener(new
    java.awt.event.ItemListener() {
    public void itemStateChanged(java.awt.event.ItemEvent evt)
    {
    testScriptJComboBoxItemStateChanged(evt);
    }
    });

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
    scriptheaderJPanel.add(testScriptJComboBox,
    gridBagConstraints);

    clearjButton.setText("Clear");
    clearjButton.setToolTipText("Clear All Output");
    clearjButton.setMaximumSize(new java.awt.Dimension(80, 25));
    clearjButton.setMinimumSize(new java.awt.Dimension(80, 25));
    clearjButton.setPreferredSize(new java.awt.Dimension(80, 25));
    clearjButton.addActionListener(new
    java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent
    evt) {
    clearjButtonActionPerformed(evt);
    }
    });

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 5);
    scriptheaderJPanel.add(clearjButton, gridBagConstraints);

    stopjButton.setText("Stop");
    stopjButton.setToolTipText("Stop Script");
    stopjButton.setMaximumSize(new java.awt.Dimension(80, 25));
    stopjButton.setMinimumSize(new java.awt.Dimension(80, 25));
    stopjButton.setPreferredSize(new java.awt.Dimension(80, 25));
    stopjButton.addActionListener(new
    java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent
    evt) {
    stopjButtonActionPerformed(evt);
    }
    });

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 5;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
    scriptheaderJPanel.add(stopjButton, gridBagConstraints);

    scriptSpacerjLabel.setPreferredSize(new java.awt.Dimension(10,
    10));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.ipadx = 10;
    gridBagConstraints.ipady = 10;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    scriptheaderJPanel.add(scriptSpacerjLabel,
    gridBagConstraints);

    selectjButton.setText("< Select");
    selectjButton.setToolTipText("Select Script");
    selectjButton.setMaximumSize(new java.awt.Dimension(80, 25));
    selectjButton.setMinimumSize(new java.awt.Dimension(80, 25));
    selectjButton.setPreferredSize(new java.awt.Dimension(80,
    25));
    selectjButton.addActionListener(new
    java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent
    evt) {
    selectjButtonActionPerformed(evt);
    }
    });

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
    scriptheaderJPanel.add(selectjButton, gridBagConstraints);

    deletejButton.setText("Delete");
    deletejButton.setToolTipText("Delete Script");
    deletejButton.setMaximumSize(new java.awt.Dimension(80, 25));
    deletejButton.setMinimumSize(new java.awt.Dimension(80, 25));
    deletejButton.setPreferredSize(new java.awt.Dimension(80,
    25));
    deletejButton.addActionListener(new
    java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent
    evt) {
    deletejButtonActionPerformed(evt);
    }
    });

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
    scriptheaderJPanel.add(deletejButton, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill =
    java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    add(scriptheaderJPanel, gridBagConstraints);

    argsjPanel.setLayout(new java.awt.GridBagLayout());

    argsjPanel.setMaximumSize(new java.awt.Dimension(2147483647,
    2147483647));
    argsjPanel.setMinimumSize(new java.awt.Dimension(690, 30));
    argsjPanel.setPreferredSize(new java.awt.Dimension(940, 30));
    argjLabel.setText("Script Args:");
    argjLabel.setMaximumSize(new java.awt.Dimension(2147483647,
    2147483647));
    argjLabel.setMinimumSize(new java.awt.Dimension(75, 30));
    argjLabel.setPreferredSize(new java.awt.Dimension(75, 30));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 0);
    argsjPanel.add(argjLabel, gridBagConstraints);

    scriptArgsjTextField.setText("host=doc-sesa-1
    username=admin password=p");
    scriptArgsjTextField.setMinimumSize(new
    java.awt.Dimension(450, 35));
    scriptArgsjTextField.setPreferredSize(new
    java.awt.Dimension(450, 35));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill =
    java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 0, 5, 5);
    argsjPanel.add(scriptArgsjTextField, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.fill =
    java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    add(argsjPanel, gridBagConstraints);

    outputjPanel.setLayout(new java.awt.GridBagLayout());

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.ipadx = 657;
    gridBagConstraints.ipady = 521;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    outputjPanel.add(outputjScrollPane, gridBagConstraints);

    jTabbedPane.addTab("OutPut", outputjPanel);

    errorjPanel.setLayout(new java.awt.GridBagLayout());

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.ipadx = 657;
    gridBagConstraints.ipady = 521;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    errorjPanel.add(errorjScrollPane, gridBagConstraints);

    jTabbedPane.addTab("Error", errorjPanel);

    debugjPanel.setLayout(new java.awt.GridBagLayout());

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.ipadx = 657;
    gridBagConstraints.ipady = 521;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    debugjPanel.add(debugjScrollPane, gridBagConstraints);

    jTabbedPane.addTab("Debug", debugjPanel);

    loggerjPanel.setLayout(new java.awt.GridBagLayout());

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.ipadx = 657;
    gridBagConstraints.ipady = 521;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    loggerjPanel.add(loggerjScrollPane, gridBagConstraints);

    jTabbedPane.addTab("Logger", loggerjPanel);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    add(jTabbedPane, gridBagConstraints);

    footerjPanel.setLayout(new java.awt.GridBagLayout());

    outPutjCheckBox.setSelected(true);
    outPutjCheckBox.setText("OutPut");
    outPutjCheckBox.setToolTipText("Enable Output");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(10, 0, 10, 0);
    footerjPanel.add(outPutjCheckBox, gridBagConstraints);

    infojCheckBox.setText("Display Info");
    infojCheckBox.setToolTipText("Enable Output");
    infojCheckBox.setMinimumSize(new java.awt.Dimension(65, 24));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(10, 0, 10, 0);
    footerjPanel.add(infojCheckBox, gridBagConstraints);

    clearjCheckBox.setSelected(true);
    clearjCheckBox.setText("Clear");
    clearjCheckBox.setToolTipText("Enable Output");
    clearjCheckBox.setMinimumSize(new java.awt.Dimension(60, 24));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(10, 0, 10, 0);
    footerjPanel.add(clearjCheckBox, gridBagConstraints);

    footerSpacerjLabel.setMinimumSize(new java.awt.Dimension(0,
    20));
    footerSpacerjLabel.setPreferredSize(new java.awt.Dimension(0,
    20));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill =
    java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(10, 0, 10, 0);
    footerjPanel.add(footerSpacerjLabel, gridBagConstraints);

    scriptIterationCntjLabel.setText("Script Pass:");
    scriptIterationCntjLabel.setMaximumSize(new
    java.awt.Dimension(65, 20));
    scriptIterationCntjLabel.setMinimumSize(new
    java.awt.Dimension(50, 20));
    scriptIterationCntjLabel.setPreferredSize(new
    java.awt.Dimension(75, 20));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(10, 0, 10, 0);
    footerjPanel.add(scriptIterationCntjLabel,
    gridBagConstraints);

    scriptIterationCntjTextField.setEditable(false);
    scriptIterationCntjTextField.setMinimumSize(new
    java.awt.Dimension(60, 20));
    scriptIterationCntjTextField.setPreferredSize(new
    java.awt.Dimension(60, 20));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 5;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(10, 0, 10, 0);
    footerjPanel.add(scriptIterationCntjTextField,
    gridBagConstraints);

    totalCntjLabel.setText("Total Cnt:");
    totalCntjLabel.setMaximumSize(new java.awt.Dimension(40, 20));
    totalCntjLabel.setMinimumSize(new java.awt.Dimension(50, 20));
    totalCntjLabel.setPreferredSize(new java.awt.Dimension(60,
    20));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 6;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(10, 5, 10, 0);
    footerjPanel.add(totalCntjLabel, gridBagConstraints);

    totalCntjTextField.setEditable(false);
    totalCntjTextField.setMinimumSize(new java.awt.Dimension(60,
    20));
    totalCntjTextField.setPreferredSize(new java.awt.Dimension(60,
    20));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 7;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(10, 0, 10, 0);
    footerjPanel.add(totalCntjTextField, gridBagConstraints);

    failCntjLabel.setText("Fail Cnt:");
    failCntjLabel.setMaximumSize(new java.awt.Dimension(40, 20));
    failCntjLabel.setMinimumSize(new java.awt.Dimension(50, 20));
    failCntjLabel.setPreferredSize(new java.awt.Dimension(50,
    20));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 8;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(10, 5, 10, 0);
    footerjPanel.add(failCntjLabel, gridBagConstraints);

    failCntjTextField.setEditable(false);
    failCntjTextField.setMinimumSize(new java.awt.Dimension(60,
    20));
    failCntjTextField.setPreferredSize(new java.awt.Dimension(60,
    20));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 9;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(10, 0, 10, 0);
    footerjPanel.add(failCntjTextField, gridBagConstraints);

    successCntjLabel.setText("Success Cnt:");
    successCntjLabel.setMaximumSize(new java.awt.Dimension(60,
    20));
    successCntjLabel.setMinimumSize(new java.awt.Dimension(50,
    20));
    successCntjLabel.setPreferredSize(new java.awt.Dimension(80,
    20));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 10;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(10, 5, 10, 0);
    footerjPanel.add(successCntjLabel, gridBagConstraints);

    successCntjTextField.setEditable(false);
    successCntjTextField.setMinimumSize(new java.awt.Dimension(60,
    20));
    successCntjTextField.setPreferredSize(new
    java.awt.Dimension(60, 20));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 11;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(10, 0, 10, 0);
    footerjPanel.add(successCntjTextField, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 5;
    gridBagConstraints.fill =
    java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    add(footerjPanel, gridBagConstraints);

    }


    // Variables declaration - do not modify
    private javax.swing.JLabel argjLabel;
    private javax.swing.JPanel argsjPanel;
    private javax.swing.JButton clearjButton;
    private javax.swing.JCheckBox clearjCheckBox;
    private javax.swing.JPanel debugjPanel;
    private javax.swing.JScrollPane debugjScrollPane;
    private javax.swing.JButton deletejButton;
    private javax.swing.JButton editjButton;
    private javax.swing.JPanel errorjPanel;
    private javax.swing.JScrollPane errorjScrollPane;
    private javax.swing.JLabel failCntjLabel;
    private javax.swing.JTextField failCntjTextField;
    private javax.swing.JLabel footerSpacerjLabel;
    private javax.swing.JPanel footerjPanel;
    private javax.swing.JPanel iPheaderJPanel;
    private javax.swing.JCheckBox infojCheckBox;
    private javax.swing.JTabbedPane jTabbedPane;
    private javax.swing.JPanel loggerjPanel;
    private javax.swing.JScrollPane loggerjScrollPane;
    private javax.swing.JCheckBox outPutjCheckBox;
    private javax.swing.JPanel outputjPanel;
    private javax.swing.JScrollPane outputjScrollPane;
    private javax.swing.JButton runjButton;
    private javax.swing.JTextField scriptArgsjTextField;
    private javax.swing.JLabel scriptIterationCntjLabel;
    private javax.swing.JTextField scriptIterationCntjTextField;
    private javax.swing.JLabel scriptSpacerjLabel;
    private javax.swing.JPanel scriptheaderJPanel;
    private javax.swing.JButton selectjButton;
    private javax.swing.JButton stopjButton;
    private javax.swing.JLabel successCntjLabel;
    private javax.swing.JTextField successCntjTextField;
    private javax.swing.JLabel targetIPSpacerjLabel;
    private javax.swing.JComboBox targetIPjComboBox;
    private javax.swing.JLabel testNamejLabel;
    private javax.swing.JComboBox testScriptJComboBox;
    private javax.swing.JLabel titleSpacerjLabel;
    private javax.swing.JPanel titlejPanel;
    private javax.swing.JLabel totalCntjLabel;
    private javax.swing.JTextField totalCntjTextField;
    // End of variables declaration
     
    Michael Pitoniak, Feb 10, 2004
    #4
  5. Michael Pitoniak

    Sudsy Guest

    Michael Pitoniak wrote:
    What's this all about?
     
    Sudsy, Feb 10, 2004
    #5
  6. Thanks for looking at the code. I am not sure how that got set, as it
    was generated by the NetBeans visual delevopment tools. I will go back
    in and clkean those settings up and retest. The interesting thing is
    that JDK1.4.2 didn't seem to mind about the existing settings. It may
    just be that 1.5 layout managers are more strict. I will post results.

    Thanks so much for the time.

    mike
     
    Michael Pitoniak, Feb 11, 2004
    #6

  7. Thanks to all for the suggestions. The above mentioned issue was in
    fact the problem. When i cleaned up all of the setMaximumSize() values
    in NetBeans the GUI behaved much better. Tiger appears to be less
    willing to accept programming oversights than was 1.4.2. Thanks so
    much for the help, as JDK1.5 cleans up a nasty JTextPane memory leak
    that affected my app, and now I have a solution.

    Best Regards,

    Mike
     
    Michael Pitoniak, Feb 11, 2004
    #7
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.