Swing

SüKuN Harbi Aktif Üye
swing ve awt kullanarak basit bir uygulama
import java.awt.*;
import javax.swing.*;
public class examp extends jComponent
{
static JFrame mfrm;
public void paint(Graphics g)
{
g.setColor(color.back);
g.drawString("Welcome to the world of swing programing",30,20);
}
public static void main (String args[]);
{
mfrm=new JFrame(Welcome to teh ");
examp ep=new examp();
mfrm.getContentPane().add("Center",ep);
mfrm.setSize(200,100);
mfrm.setVisible(true);
}
}
 
Üst