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" );