Poll

$40 budget or Skyrim pre-order?

$40
106 (63.9%)
Skyrim Pre-order
60 (36.1%)

Total Members Voted: 165

Author Topic: Raffle over!!  (Read 51515 times)

http://steamcommunity.com/id/scout333
Changed what game I want.
The Sims 3 it's forty dollars, brb, getting a different game
Left 4 Dead 2.. again
Number(If we're still using those): 333
« Last Edit: August 06, 2011, 02:52:47 PM by Watcher In The Myst »




Code: [Select]
import javax.swing.*;
import javax.swing.event.*;

import java.awt.event.*;
import java.awt.*;
import java.util.*;

public class IkeTheGeneric extends JFrame{

JLabel copy;
JLabel how;
JButton start;
JButton add;
JTextField enter;
JTextField winner1;
JTextField winner2;
JTextField winner3;
JTextField winner4;
JTextField winner5;
JTextField winner6;
JList candidates;
JRadioButton four;
JRadioButton six;
ButtonGroup num;
static String[] canarray = {};
static ArrayList<String> candidateslist = new ArrayList();
static int nummers=0;
Font font;
static int way;

public static void main(String[] args){
IkeTheGeneric ike = new IkeTheGeneric();
}
public IkeTheGeneric(){
super("IkeTheGeneric's Hat");
setLayout(new FlowLayout());
setSize(250,400);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBackground(Color.BLUE);
setVisible(true);

final JLabel how = new JLabel("0 People are currently in the contest");
add(how);

enter = new JTextField("Enter Candidate Here",20);
add(enter);

add = new JButton("Add the candidate");
add(add);

four = new JRadioButton("Four people",false);
six = new JRadioButton("Six people",true);
add(four);
add(six);
num = new ButtonGroup();
num.add(four);
num.add(six);

candidates = new JList(canarray);
candidates.setVisibleRowCount(4);
candidates.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
add(new JScrollPane(candidates));

start = new JButton("Start");
add(start);

winner1 = new JTextField("Winner 1 will be displayed here",20);
winner1.setEditable(false);
add(winner1);
winner2 = new JTextField("Winner 2 will be displayed here",20);
winner2.setEditable(false);
add(winner2);
winner3 = new JTextField("Winner 3 will be displayed here",20);
winner3.setEditable(false);
add(winner3);
winner4 = new JTextField("Winner 4 will be displayed here",20);
winner4.setEditable(false);
add(winner4);
winner5 = new JTextField("Winner 5 will be displayed here",20);
winner5.setEditable(false);
add(winner5);
winner6 = new JTextField("Winner 6 will be displayed here",20);
winner6.setEditable(false);
add(winner6);

font = new Font("Serif",Font.ITALIC,10);
copy = new JLabel("Copyright © 2011 keesfani. All rights reserved.");
copy.setFont(font);
add(copy);

add.addActionListener(
new ActionListener(){
public void actionPerformed(ActionEvent event) {

candidateslist.add(enter.getText());
nummers++;

String[] people = new String[nummers];

people = candidateslist.toArray(new String[candidateslist.size()]);

candidates.setListData(people);
how.setText(nummers+" People are currently in the contest");

}

}
);

four.addItemListener(
new ItemListener(){
public void itemStateChanged(ItemEvent event) {
if(event.getSource() == four && event.getStateChange() == event.SELECTED){
way = 4;

winner5.setText("Winner 5 will be displayed here");
winner6.setText("Winner 6 will be displayed here");
}
}
}
);

six.addItemListener(
new ItemListener(){
public void itemStateChanged(ItemEvent event) {
if(event.getSource() == six && event.getStateChange() == event.SELECTED){
way = 6;
}
}
}
);

start.addActionListener(
new ActionListener(){
public void actionPerformed(ActionEvent event) {
Collections.shuffle(candidateslist);

if(way == 4){
winner1.setText(candidateslist.get(0));
winner2.setText(candidateslist.get(1));
winner3.setText(candidateslist.get(2));
winner4.setText(candidateslist.get(3));
}else{
winner1.setText(candidateslist.get(0));
winner2.setText(candidateslist.get(1));
winner3.setText(candidateslist.get(2));
winner4.setText(candidateslist.get(3));
winner5.setText(candidateslist.get(4));
winner6.setText(candidateslist.get(5));
}
}

}
);

candidates.addListSelectionListener(new ListSelectionListener(){
public void valueChanged(ListSelectionEvent event) {
int well;

well = JOptionPane.showConfirmDialog(null, "Are you sure that you want to delete '"+ candidateslist.get(candidates.getSelectedIndex())+"' from the list?");

if(well==0){

candidateslist.remove(candidates.getSelectedIndex());
nummers--;
how.setText(nummers+" People are currently in the contest");
String[] people = new String[nummers];

people = candidateslist.toArray(new String[candidateslist.size()]);

candidates.setListData(people);
}
}

});

}
}

This is the code, I did not do anything with it.

it could be rigged :O

That kind of stupidity gets you banned from the raffle.


ill pm you my steam account

and i want oblivion please :)

My steam
I would like the Orange Box please

When is the deadline? Just wondering.

A week and a day from now

Ike, could you make a list of everyone  in your hat?
So we know if were on it?

Ike, could you make a list of everyone  in your hat?
So we know if were on it?

Why would you have any doubts if you're on it or not?

So far I've put everyone on the list except for Davy

IKE: I do NOT want fallout. If I win, don't gift me it. I want Old World Blues for fallout: new vegas or the elder scrolls: oblvion GOTY.

Are HL: EP 1 and 2 under $20?
If so, gift them to .:Fancypants:. So I can record myself playing gm_ghosthunt 2

Are HL: EP 1 and 2 under $20?
If so, gift them to .:Fancypants:. So I can record myself playing gm_ghosthunt 2
Yeah.
They're both 7 dollars.