From 4008ec2d512531fe70f27b7d9c9e6a4e30e9d2ee Mon Sep 17 00:00:00 2001 From: Frederico Palma Date: Tue, 30 Mar 2004 14:18:42 +0000 Subject: [PATCH] no message git-svn-id: https://svn.coded.pt/svn/SIPRP@10 bb69d46d-e84e-40c8-a05a-06db0d633741 --- trunk/siprp/ficha/TrabalhadorPanel.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/trunk/siprp/ficha/TrabalhadorPanel.java b/trunk/siprp/ficha/TrabalhadorPanel.java index 0e47f383..a1887cf1 100644 --- a/trunk/siprp/ficha/TrabalhadorPanel.java +++ b/trunk/siprp/ficha/TrabalhadorPanel.java @@ -10,8 +10,9 @@ import java.awt.*; import javax.swing.*; import java.util.*; +import com.evolute.utils.data.*; import com.evolute.utils.ui.*; -import com.evolute.utils.ui.button.*; +import com.evolute.utils.ui.panel.*; /** * @@ -20,7 +21,7 @@ import com.evolute.utils.ui.button.*; public class TrabalhadorPanel extends JPanel { private JTextField nomeText; - private RadioButtonGroup sexoGroup; + private RadioButtonFixedPanel sexoPanel; private JCalendarPanel dataNascimentoPanel; private JTextField nacionalidadeText; private JTextField numeroMecanograficoText; @@ -45,11 +46,11 @@ public class TrabalhadorPanel extends JPanel JLabel nomeLabel = new JLabel( "Nome" ); nomeText = new JTextField(); JLabel sexoLabel = new JLabel( "Sexo" ); - JPanel sexoPanel = new JPanel(); - sexoGroup = - new RadioButtonGroup( sexoPanel, - new Vector( Arrays.asList( new String[]{ "M", "F" } ) ), - false ); + sexoPanel = + new RadioButtonFixedPanel( + new IDObject[]{ new MappableObject( new Integer( 1 ), "M" ), + new MappableObject( new Integer( 2 ), "F" ) }, + 1, 2, RadioButtonPanel.ORIENTATION_HORIZONTAL, false ); JLabel dataNascimentoLabel = new JLabel( "Data de Nascimento" ); dataNascimentoPanel = new JCalendarPanel( null ); JLabel nacionalidadeLabel = new JLabel( "Nacionalidade" );