diff --git a/trunk/siprp/ficha/MedicoEditor.java b/trunk/siprp/ficha/MedicoEditor.java new file mode 100644 index 00000000..b9b0e694 --- /dev/null +++ b/trunk/siprp/ficha/MedicoEditor.java @@ -0,0 +1,67 @@ +/* + * MedicoEditor.java + * + * Created on 10 de Abril de 2004, 20:50 + */ + +package siprp.ficha; + +import java.awt.*; +import java.awt.event.*; +import javax.swing.*; +import javax.swing.*; + +import com.evolute.utils.tables.*; + +/** + * + * @author Administrator + */ +public class MedicoEditor extends JDialog + implements ActionListener +{ + private BaseTable table; + private VectorTableModel model; + private JButton okButton; + private JButton cancelarButton; + private JButton novoButton; + private JTextField nomeText; + private JTextField numeroText; + + /** Creates a new instance of MedicoEditor */ + public MedicoEditor() + { + setupComponents(); + } + + private void setupComponents() + { + setSize( 300, 300 ); + setResizable( false ); + + model = new VectorTableModel( new String[]{ "Nome", "NC" } ); + table = new BaseTable( model ); + table.setSelectionMode( ListSelectionModel.SINGLE_SELECTION ); + JScrollPane scp = new JScrollPane(); + scp.setViewportView( table ); + scp.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_NEVER ); + scp.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS ); + table.fixColumnWidth( 0, 200 ); + table.setNonResizableNorReordable(); + + okButton = new JButton( "OK" ); + cancelarButton = new JButton( "Cancelar" ); + novoButton = new JButton( "Novo" ); + okButton.addActionListener( this ); + cancelarButton.addActionListener( this ); + novoButton.addActionListener( this ); + + nomeText = new JTextField(); + numeroText = new JTextField(); + } + + public void actionPerformed(java.awt.event.ActionEvent actionEvent) + { + } + +}