Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Java 

Panel not showing in roulette game (help pls)

I am working on a roulette game for class and don't know what went wrong. It compiles but when I run it the panel just doesn't show up. It would be great if one of you could take a look at my code. And I know that I could use a loop to do a lot of this stuff but for now I just want to get it working.

Edit: Problem fixed, setVisible(true); needed to be moved to after panel.add(MoneyLabel);
Sorry, but what the hell is:
Code
if(b33 == true) { TotalChecked++; }
      if(b34 == true) { TotalChecked++; }
      if(b35 == true) { TotalChecked++; }
      if(b36 == true) { TotalChecked++; }

      if(Random == 1){ if(b1 == true){ AmountOfMoney = AmountOfMoney - TotalChecked + 36; MoneyEarned = 36 - TotalChecked ; JOptionPane.showMessageDialog(this,"Congratulations you won $" + (36-TotalChecked)); }   }
      if(Random == 2){ if(b2 == true){ AmountOfMoney = AmountOfMoney - TotalChecked + 36; MoneyEarned = 36 - TotalChecked ; JOptionPane.showMessageDialog(this,"Congratulations you won $" + (36-TotalChecked)); }   }
      if(Random == 3){ if(b3 == true){ AmountOfMoney = AmountOfMoney - TotalChecked + 36; MoneyEarned = 36 - TotalChecked ; JOptionPane.showMessageDialog(this,"Congratulations you won $" + (36-TotalChecked)); }   }
      if(Random == 4){ if(b4 == true){ AmountOfMoney = AmountOfMoney - TotalChecked + 36; MoneyEarned = 36 - TotalChecked ; JOptionPane.showMessageDialog(this,"Congratulations you won
(Jun 21, 2015 06:31 PM)JavaProfit Wrote:  Sorry, but what the hell is:
Code
if(b33 == true) { TotalChecked++; }
      if(b34 == true) { TotalChecked++; }
      if(b35 == true) { TotalChecked++; }
      if(b36 == true) { TotalChecked++; }

      if(Random == 1){ if(b1 == true){ AmountOfMoney = AmountOfMoney - TotalChecked + 36; MoneyEarned = 36 - TotalChecked ; JOptionPane.showMessageDialog(this,"Congratulations you won $" + (36-TotalChecked)); }   }
      if(Random == 2){ if(b2 == true){ AmountOfMoney = AmountOfMoney - TotalChecked + 36; MoneyEarned = 36 - TotalChecked ; JOptionPane.showMessageDialog(this,"Congratulations you won $" + (36-TotalChecked)); }   }
      if(Random == 3){ if(b3 == true){ AmountOfMoney = AmountOfMoney - TotalChecked + 36; MoneyEarned = 36 - TotalChecked ; JOptionPane.showMessageDialog(this,"Congratulations you won $" + (36-TotalChecked)); }   }
      if(Random == 4){ if(b4 == true){ AmountOfMoney = AmountOfMoney - TotalChecked + 36; MoneyEarned = 36 - TotalChecked ; JOptionPane.showMessageDialog(this,"Congratulations you won
good code

u woldnt no about it
(Jun 21, 2015 07:33 PM)badvibes Wrote:  good code

u woldnt no about it

Know* <3

But no thats not that great quite a bit of redundancy.
Hi
(Jun 22, 2015 05:54 AM)badvibes Wrote:  u correct no but u don't correct u or woldnt

fk u thts good code

Your fucking spelling is horrible.
Hi
(Jun 22, 2015 05:58 AM)badvibes Wrote:  fk u u dnt no my story
or my lief

i came
i conkered

I hope you are trolling, now go somewhere no one likes a troll that doesn't know good code.
Hi
(Jun 22, 2015 05:59 AM)sdk Wrote:  I hope you are trolling, now go somewhere no one likes a troll that doesn't know good code.

mfw my spellin is almost as bad ur code
http://pastebin.com/zFfzzcMT


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by SkunT3lloOct 20, 2021 04:24 AM 3 115 Oct 20, 2021 04:24 AM
Last Post: Lindros
[.NET] by Dangerous BeefJan 24, 2016 03:58 PM 19 404 Jan 24, 2016 03:58 PM
Last Post: Dangerous Beef
[Python] by Baba YagaNov 8, 2015 11:04 AM 1 185 Nov 8, 2015 11:04 AM
Last Post: gungunfebrianza