forked from Coded/SIPRP
				
			
			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.
		
		
		
		
		
			
		
			
				
					
					
						
							104 lines
						
					
					
						
							2.4 KiB
						
					
					
				
			
		
		
	
	
							104 lines
						
					
					
						
							2.4 KiB
						
					
					
				| /*
 | |
|  * UpperPanel.java
 | |
|  *
 | |
|  * Created on 29 de Março de 2004, 17:44
 | |
|  */
 | |
| 
 | |
| package siprp.ficha;
 | |
| 
 | |
| import java.awt.*;
 | |
| import javax.swing.*;
 | |
| 
 | |
| import com.evolute.utils.dataui.*;
 | |
| 
 | |
| /**
 | |
|  *
 | |
|  * @author  fpalma
 | |
|  */
 | |
| public class UpperPanel extends JPanel
 | |
| 	implements FillerSaverWrapper
 | |
| {
 | |
| 	private JTextField empresaText;
 | |
| 	private JTextField nomeText;
 | |
| 	private JTextField medicoText;
 | |
| 	private JTextField cpText;
 | |
| 	
 | |
| 	/** Creates a new instance of UpperPanel */
 | |
| 	public UpperPanel()
 | |
| 	{
 | |
| 		setupComponents();
 | |
| 	}
 | |
| 	
 | |
| 	private void setupComponents()
 | |
| 	{
 | |
| 		JLabel empresaLabel = new JLabel( "Empresa/Entidade" );
 | |
| 		empresaText = new JTextField();
 | |
| 		empresaText.setEditable( false );
 | |
| 		JLabel nomeLabel = new JLabel( "Nome" );
 | |
| 		nomeText = new JTextField();
 | |
| 		nomeText.setEditable( false );
 | |
| 		JLabel medicoLabel = new JLabel( "M\u00e9dico" );
 | |
| 		medicoText = new JTextField();
 | |
| 		JLabel cpLabel = new JLabel( "c.p." );
 | |
| 		cpText = new JTextField();
 | |
| 		
 | |
| 		GridBagLayout gridbag = new GridBagLayout();
 | |
| 		setLayout( gridbag );
 | |
| 		GridBagConstraints constraints = new GridBagConstraints();
 | |
| 		constraints.insets = new Insets( 0, 1, 0, 1 );
 | |
| 		constraints.fill = GridBagConstraints.HORIZONTAL;
 | |
| 		constraints.gridheight = 1;
 | |
| 		constraints.weighty = 0;
 | |
| 		
 | |
| 		constraints.gridwidth = 1;
 | |
| 		constraints.weightx = 0;
 | |
| 		gridbag.setConstraints( empresaLabel, constraints );
 | |
| 		add( empresaLabel );
 | |
| 		
 | |
| 		constraints.gridwidth = GridBagConstraints.REMAINDER;
 | |
| 		constraints.weightx = 1;
 | |
| 		gridbag.setConstraints( empresaText, constraints );
 | |
| 		add( empresaText );
 | |
| 		
 | |
| 		constraints.gridwidth = 1;
 | |
| 		constraints.weightx = 0;
 | |
| 		gridbag.setConstraints( nomeLabel, constraints );
 | |
| 		add( nomeLabel );
 | |
| 		
 | |
| 		constraints.gridwidth = GridBagConstraints.REMAINDER;
 | |
| 		constraints.weightx = 1;
 | |
| 		gridbag.setConstraints( nomeText, constraints );
 | |
| 		add( nomeText );
 | |
| 		
 | |
| 		constraints.gridwidth = 1;
 | |
| 		constraints.weightx = 0;
 | |
| 		gridbag.setConstraints( medicoLabel, constraints );
 | |
| 		add( medicoLabel );
 | |
| 		
 | |
| 		constraints.gridwidth = 1;
 | |
| 		constraints.weightx = 0.8;
 | |
| 		gridbag.setConstraints( medicoText, constraints );
 | |
| 		add( medicoText );
 | |
| 		
 | |
| 		constraints.gridwidth = 1;
 | |
| 		constraints.weightx = 0;
 | |
| 		gridbag.setConstraints( cpLabel, constraints );
 | |
| 		add( cpLabel );
 | |
| 		
 | |
| 		constraints.gridwidth = GridBagConstraints.REMAINDER;
 | |
| 		constraints.weightx = 0.2;
 | |
| 		gridbag.setConstraints( cpText, constraints );
 | |
| 		add( cpText );
 | |
| 	}
 | |
| 	
 | |
| 	
 | |
| 	public void fill(Object value)
 | |
| 	{
 | |
| 	}
 | |
| 	
 | |
| 	public Object save()
 | |
| 	{
 | |
| 		return null;
 | |
| 	}
 | |
| }
 |