Java Applet Label Eklemek Java Applet Label Eklemek Label Örneği: import import import import import java.awt.FlowLayout; java.awt.Image; javax.swing.ImageIcon; javax.swing.JApplet; javax.swing.JLabel; public class IconOrnegi extends JApplet { JLabel Metin1=new JLabel(); ImageIcon KucukResim=new ImageIcon(); Image Resim; public void init() { setLayout(new FlowLayout()); /* Resim=getImage(getDocumentBase(), "animals.gif"); KucukResim.setImage(Resim); Metin1.setIcon(KucukResim); */ Metin1.setIcon(new ImageIcon(getImage(getDocumentBase(), "bird.gif"))); Metin1.setVerticalTextPosition(JLabel.BOTTOM); Metin1.setHorizontalTextPosition(JLabel.CENTER); Metin1.setText("Google Firmasi"); ImageIcon Ikon=new ImageIcon(getImage(getDocumentBase(), "bird2.gif")); JLabel Metin2=new JLabel("Dijital Ders", Ikon, JLabel.CENTER); add(Metin1); add(Metin2); } } www.dijitalders.com Java Applet Label Eklemek 1 Java Applet Label Eklemek www.dijitalders.com Java Applet Label Eklemek 2