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.
		
		
		
		
		
			
		
			
				
					
					
						
							56 lines
						
					
					
						
							1.5 KiB
						
					
					
				
			
		
		
	
	
							56 lines
						
					
					
						
							1.5 KiB
						
					
					
				/*
 | 
						|
 * RecomendacoesPanel.java
 | 
						|
 *
 | 
						|
 * Created on 29 de Março de 2004, 11:58
 | 
						|
 */
 | 
						|
 | 
						|
package siprp.ficha;
 | 
						|
 | 
						|
import java.awt.*;
 | 
						|
import javax.swing.*;
 | 
						|
 | 
						|
import com.evolute.utils.documents.*;
 | 
						|
import com.evolute.utils.ui.*;
 | 
						|
 | 
						|
/**
 | 
						|
 *
 | 
						|
 * @author  fpalma
 | 
						|
 */
 | 
						|
public class RecomendacoesPanel extends JPanel
 | 
						|
{
 | 
						|
	private JTextArea recomendacoesText;
 | 
						|
	private JCalendarPanel proximoExamePanel;
 | 
						|
	/** Creates a new instance of RecomendacoesPanel */
 | 
						|
	public RecomendacoesPanel()
 | 
						|
	{
 | 
						|
		setupComponents();
 | 
						|
	}
 | 
						|
	
 | 
						|
	private void setupComponents()
 | 
						|
	{
 | 
						|
		setBorder( BorderFactory.createTitledBorder(
 | 
						|
					BorderFactory.createEtchedBorder(),
 | 
						|
					"Outras Recomenda\u00e7\u00f5es" ) );
 | 
						|
	
 | 
						|
		JScrollPane scp = new JScrollPane();
 | 
						|
		scp.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_NEVER );
 | 
						|
		scp.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS );
 | 
						|
		recomendacoesText = new JTextArea();
 | 
						|
		recomendacoesText.setLineWrap( true );
 | 
						|
		recomendacoesText.setWrapStyleWord( true );
 | 
						|
		recomendacoesText.setDocument( new MaximumLengthDocument( 150 ) );
 | 
						|
		scp.setViewportView( recomendacoesText );
 | 
						|
		JPanel rightPanel = new JPanel();
 | 
						|
		JLabel proximoExameLabel = new JLabel( "Pr\u00f3ximo Exame" );
 | 
						|
		proximoExamePanel = new JCalendarPanel( null );
 | 
						|
		
 | 
						|
		setLayout( new GridLayout( 1, 2, 0, 0 ) );
 | 
						|
		add( scp );
 | 
						|
		add( rightPanel );
 | 
						|
		
 | 
						|
		rightPanel.setLayout( new BorderLayout() );
 | 
						|
		rightPanel.add( proximoExameLabel, BorderLayout.WEST );
 | 
						|
		rightPanel.add( proximoExamePanel, BorderLayout.CENTER );
 | 
						|
	}
 | 
						|
}
 |