Reputation: 78 Whiz
- Active Members
- Active Posts:
- 229 (0.43 per day)
- 04-October 12
- Profile Views:
- Last Active:
- Feb 07 2014 02:39 PM
- OS Preference:
- Favorite Browser:
- Favorite Processor:
- Favorite Gaming Platform:
- Your Car:
- Dream Kudos:
Posts I've Made
Posted 21 Jan 2014This immediately reminded me of the "A Brief, Incomplete, and Mostly Wrong History of Programming Languages"
Quote1970 - Guy Steele and Gerald Sussman create Scheme. Their work leads to a series of "Lambda the Ultimate" papers culminating in "Lambda the Ultimate Kitchen Utensil." This paper becomes the basis for a long running, but ultimately unsuccessful run of late night infomercials. Lambdas are relegated to relative obscurity until Java makes them popular by not having them.
Looks like that is all changing
Posted 21 Jan 2014You should never be using Threads as a timer. It makes code hard to read and makes intent difficult to follow.
There is a Timer class which was made for this exact reason.
How to use Timer and TimerTask Classes
Naming your variables with meaningful names is always a good practice no matter what. This will make future you and other programmers reading your code a lot happier.
It should also be said as an added note that while, yes, you getting numbers as an input. You could compare them as Strings since you aren't really doing any calculations.
In this case, looking at the reverse and equals method in the String class.
Posted 17 Jan 2014Here is something that might help you.
When beginners start thinking about layouts, they think about the whole window having a single layout. (Probably because most examples only show one layout.)
When you think of it like this your window basically has 8 possible layouts, and only has 8 looks.
In reality, your whole window can have multiple containers with varying shapes, sizes, and layouts.
This especially becomes true when your GUI becomes more and more complex, and it takes a lot of practice and messing around to see what works.
This is why layout questions are difficult to answer. You are basically asking what is the best way to add two numbers to make 10. Some people might say 5+5, others would say 4+6, the creative ones will say 10 + 0, and the wacky ones will say 16 + -6.
Have a mess around with layouts, and make some simple GUI interfaces for simple programs (I.E. phone books, cash registers, website registration) They do not even have to be functional. It's just for the practice.
Once I'm not sleep deprived in the morning, I can try to be of some more help and give specific examples.
Posted 17 Jan 2014http://www.minecraft...server-support/
This would be your best bet to find a solution
Posted 14 Jan 2014What exactly is PlayGrid? Is it some kind of container? If so, then why do you have a container keeping track of your player scores?
I should probably make this answer more.. useful?
Your GUI is in charge of handling things on the screen. This can be layouts, what's on the screen at what time, etc.
With your design, if you don't want to change it, couldn't you simply make a public getScore method inside PlayGrid? Then when MainScreen updates, it can say
- Member Title:
- D.I.C Head
- 18 years old
- April 5, 1995
- Oklahoma City
- I enjoy playing music, coding, and talking to people.
- Full Name:
- Clayton Buenning Barritt Jr.
- Years Programming:
- Programming Languages: