You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SIPRP/trunk/siprp/ficha/MedicoEditor.java

68 lines
1.5 KiB

/*
* 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)
{
}
}