URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13187>

                 Summary: awt: Label.setText() does not seem to affect
FlowLayout
                 Project: classpath
            Submitted by: lindi
            Submitted on: Wed 05/25/05 at 19:33
                Category: classpath
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
        Platform Version: None

    _______________________________________________________

Details:

Steps to reproduce:
1. Compile and run the attached testcase.

Expected results:
1. A window with "label1" shows up.

Actual results:
1. A window shows up but has no visible text.

Testcase:
import java.awt.*;
public class labelSetText extends Frame {
        public static void main(String[] args) {
                new labelSetText();
        }
        public labelSetText() {
                setSize(400, 400);
                setLayout(new FlowLayout(FlowLayout.LEFT));
                Label label = new Label();
                add(label);
                show();
                label.setText("label1");
                validate();
        }
}

FlowLayout seems to think that the label has zero width even after text has
been added to the label. Instead, it should somehow detect that the size of
the label has changed and adjust layout accordingly.







    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13187>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Commit-classpath mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-classpath

Reply via email to