26 lines
		
	
	
		
			637 B
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			637 B
		
	
	
	
		
			Java
		
	
	
	
	
	
| import javax.swing.*;
 | |
| import java.awt.*;
 | |
| 
 | |
| public class Acceuil extends JComponent {
 | |
|     private Image logo;
 | |
| 
 | |
|     public Acceuil() {
 | |
|         super();
 | |
|         this.logo = Toolkit.getDefaultToolkit().getImage("img.png");
 | |
|     }
 | |
| 
 | |
|     @Override
 | |
|   	protected void paintComponent(Graphics pinceau) {
 | |
|     Graphics secondPinceau = pinceau.create();
 | |
|     secondPinceau.setColor(this.getForeground());
 | |
| 
 | |
|     Font fonte = new Font("TimesRoman", Font.BOLD,24);
 | |
|     secondPinceau.setColor(new Color(128,0,128));
 | |
|     secondPinceau.setFont(fonte);
 | |
|     secondPinceau.drawString("IUT", 10, 20);
 | |
| 
 | |
|     secondPinceau.drawImage(this.logo, 20,30, this);
 | |
| 
 | |
| 
 | |
|     }
 | |
| } |