entries between labels dynamically

Chris Liechti cliechti at gmx.net
Fri Feb 15 14:19:36 EST 2002


Artur Skura <arturs at iidea.pl> wrote in 
news:slrna6qqs9.b35.arturs at aph.waw.pdi.net:
> I have a specific problem: I have to create dialogs on the fly, and
> in those dialog text together with text entries.

Jython 2.1 on java1.4.0 (JIT: null)
>>> import java.awt
>>> f = java.awt.Frame()
>>> f.setLayout(java.awt.FlowLayout())
>>> f.add(java.awt.Label("hello"))
>>> f.add(java.awt.TextField("world"))
>>> f.add(java.awt.Label("something like that?"))
>>> f.pack()
>>> f.show()

does this go in the right direction? the Layouters in java ATW and 
SWING make such things realy easy!

chris

-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list