Wednesday, September 26, 2012
Evote.java
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class Evote extends JFrame{
public Evote()
{
setTitle("This is my frame");
setSize(600,400);
setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
Container contentArea = getContentPane();
contentArea.setBackground (Color.green);
JLabel tulisan = new JLabel("E-VOTING",4);
JLabel tulisan1 = new JLabel("Pemilu Ketua RT 06 / RW 06");
JLabel tulisan2 = new JLabel("Kelurahan Jatingaleh Kecamatan Candisari");
JPanel panelKu = new JPanel();
panelKu.setBackground(Color.red);
panelKu.add(tulisan);
panelKu.add(tulisan1);
panelKu.add(tulisan2);
contentArea.add(panelKu, BorderLayout.NORTH);
}
public static void main(String[] args)
{
Evote frame = new Evote();
frame.setVisible(true);
}
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment