forked from Coded/SIPRP
no message
git-svn-id: https://svn.coded.pt/svn/SIPRP@28 bb69d46d-e84e-40c8-a05a-06db0d6337410'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
parent
529d64cfff
commit
1babeaa6f9
@ -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)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in new issue