From: frebourg@cui.unige.ch (FREBOURG Fabrice)
Subject: Transposition between Java and Ada 95 (intermetrics)
Date: 1996/12/16
Date: 1996-12-16T00:00:00+00:00 [thread overview]
Message-ID: <593uk3$9rr@uni2f.unige.ch> (raw)
Hello,
I'm a beginner in Ada. So I have got some problems with the formalism
in Ada. I would like to create an applet. Espacially create a frame
window with the following constructor (FrameWindow). How I could write
such a code in Ada 95.
class FrameWindow extends Frame {
public TextArea Text;
public TextField entry;
public Button b1,b2;
public Panel p1,p2;
public FrameWindow() {
setLayout(new BorderLayout());
p1 = new Panel();
p2 = new Panel();
p1.setLayout(new BorderLayout());
p2.setLayout(new BorderLayout());
entry = new TextField();
p1.add("North",entry);
Text = new TextArea();
p1.add("Center",Text);
b1 = new Button("b1");
b2 = new Button("b2");
p2.add("West",b1);
p2.add("East",b2);
add("Center",p1);
add("South",p2);
} // Constructor FrameWindow
.
.
.
.
I would like to thank you in advance for your answer.
Good Bye.
Fabrice (frebourg@cui.unige.ch)
reply other threads:[~1996-12-16 0:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox