commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commit-cp] [bug #13187] awt: Label.setText() does not seem to affect Fl


From: Timo Lindfors
Subject: [commit-cp] [bug #13187] awt: Label.setText() does not seem to affect FlowLayout
Date: Wed, 25 May 2005 19:33:08 +0000
User-agent: Elinks

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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]