POLITECHNIKA RZESZOWSKA - WydzM Bdttt«*hrtH I IrlowtyW
Java
JPanel panel “ naw JPanel ()» GcoupLayou
GroupLayout layout ■ ńew GroupLayout(panel)»
panel.setLayout (layout); Uew: I 1
layout. setAutoCreateGaps (trua); Penów* f
layout.se tAutoCraataContainorCaps(trua)l
GroupLayout.Se^pianti»1 Group hGroup ■ layout.eraateSequentielGroupO» hGroup.addGroup!layout.craataParallalGroupO .addComponent (labell).addComponen t(label2));
hGroup. addGroup (layout. createParallalGroupO .addComponent (tf 1) .addComponent (t *2)11
layout.satHorizontalCroiy (hGroup);
GroupLayout.SoguantialGroup vGroup “ layout.croataSaquantialGroup() f vGroup.addGroup(layout.createParallelGroup(Alignment.BASELINE).addComponent(1 abell).addComponent(tfl));
TGroup.addGroup(layout.createParallelGroup(Alignment.BASELINE).addComponent(1 abel2).addComponent(tf2))i layout.aetVarticalGroup(vGroup)<
JAVA Wykład3
copyright &J012 Jan PKOKOP
46/71