I'm not sure I know what you mean.King Harold wrote:Ok, it works (of course), but why does it try to use 100% cpu?
Search found 137 matches
- Sat 07 Mar, 2009 6:40 pm
- Forum: Programming Help
- Topic: User Defined Classes [Java]
- Replies: 33
- Views: 56043
Re: User Defined Classes [Java]
- Sat 07 Mar, 2009 4:04 am
- Forum: Programming Help
- Topic: User Defined Classes [Java]
- Replies: 33
- Views: 56043
Re: User Defined Classes [Java]
Okay, here's the download: TrafficLight. I couldn't figure out how to make it an applet. But here it is nonetheless.
- Fri 06 Mar, 2009 8:24 pm
- Forum: Programming Help
- Topic: User Defined Classes [Java]
- Replies: 33
- Views: 56043
Re: User Defined Classes [Java]
Well what is it now? Usually it needs next to no modifications to work as applet (it must not try to create a window or handle the window "events") and then you can just use the class files in an <applet> tag lol. How can you expect me to know what to do when I have never learned about ap...
- Fri 06 Mar, 2009 7:14 pm
- Forum: Programming Help
- Topic: User Defined Classes [Java]
- Replies: 33
- Views: 56043
Re: User Defined Classes [Java]
@Wesley: good, but if you upload the applet to some webhost and make a little page with random <applet> tags we could try it :) Hm... I could upload it on my brother's website, but how do you make it like an applet? I haven't even touched on applets yet. But that would be awesome if you could tell ...
- Fri 06 Mar, 2009 6:34 am
- Forum: Programming Help
- Topic: User Defined Classes [Java]
- Replies: 33
- Views: 56043
Re: User Defined Classes [Java]
I never knew clicking a button to change afake light could be so freakin' difficult. Can ya quickly summzarize the code? Well, the TrafficLightMain class is simply the driver for the program, to make the whole thing appear, basically. It doesn't do too much. The TrafficLightPanel class organizes th...
- Fri 06 Mar, 2009 12:18 am
- Forum: Programming Help
- Topic: User Defined Classes [Java]
- Replies: 33
- Views: 56043
Re: User Defined Classes [Java]
I got it! I can't believe it took me so long. Suddenly I understood what was going on and I finished and optimized the program :rofl: . Here is my code for TrafficLight , TrafficLightPanel , and TrafficLightMain : TrafficLight : Feel free to let me know if anything could be changed or edited to opti...
- Thu 05 Mar, 2009 7:41 am
- Forum: Programming Help
- Topic: User Defined Classes [Java]
- Replies: 33
- Views: 56043
Re: User Defined Classes [Java]
Well, I always like the hard class where I can learn something useful (although, you can learn many useful things in easy courses). I am getting closer to tackling the assignment, but I am still running into some bumpy roads on how to draw the lights whenever the button is pressed.
- Wed 04 Mar, 2009 10:39 pm
- Forum: Programming Help
- Topic: User Defined Classes [Java]
- Replies: 33
- Views: 56043
Re: User Defined Classes [Java]
Oh man, I wish it was as easy as you said. Like I mentioned, we aren't very far into the course yet. We have a GUI section at the end of each chapter in our book and we're only on Chapter 4. Basically, all I can come up with is this for my TrafficLight and TrafficLightPanel classes: My professor gav...
- Wed 04 Mar, 2009 9:46 pm
- Forum: Programming Help
- Topic: User Defined Classes [Java]
- Replies: 33
- Views: 56043
User Defined Classes [Java]
I'm finally beginning to learn some programming! I am in an introductory course and have been understanding everything pretty well, until we reached user-defined classes. My assignment is this: Design and implement an application that draws a traffic light and uses a push button to change the state ...
- Mon 02 Mar, 2009 5:18 am
- Forum: Off Topic
- Topic: The Happy Birthday Thread
- Replies: 538
- Views: 1218711
Re: The Happy Birthday Thread
That's hilarious. MaxCoderz sure is great, eh?kalan_vod wrote:Rofl, thanks ben! I just longed on and went here and did not even remember it was my B-Day lol.benryves wrote:Happy birthday, kalan_vod!
![Laughing :lol:](./images/smilies/grayscale_laugh.gif)
HAPPY BIRTHDAY KALAN_VOD!!!
- Sun 01 Mar, 2009 3:01 am
- Forum: Off Topic
- Topic: Discrete Mathematics Help
- Replies: 14
- Views: 30792
Re: Discrete Mathematics Help
I have found a solution to all my problems! I will no longer have to gruel everyone with my math. I found out about a website, from my chemistry professor, that has solutions to math, chemistry, engineering, etc. problems in textbooks. The website also has a Q&A Board where you can ask additiona...
- Thu 26 Feb, 2009 3:49 am
- Forum: Desolate
- Topic: Desolate Re-write
- Replies: 161
- Views: 1184637
Re: Desolate Re-write
Beginners in asm who might want to see the GS routines might find it helpful (like me). Which netbook did you get? Precisely why I'm interested in the code, although I most likely won't understand it yet. Notebooks are very ideal in programming, very portable, long battery life (that is if you purc...
- Wed 25 Feb, 2009 4:10 am
- Forum: Staff Side Projects & Featured Projects
- Topic: [Featured][Dev] F-Zero
- Replies: 53
- Views: 161512
Re: F-Zero
This is looking better every day! You are doing a great job calc84maniac! I can't do anything but marvel at the talent here at MaxCoderz. There are some real programmers coming around.
Keep up the good work and progress!
Keep up the good work and progress!
- Mon 23 Feb, 2009 4:41 am
- Forum: Off Topic
- Topic: Discrete Mathematics Help
- Replies: 14
- Views: 30792
Re: Discrete Mathematics Help
King Harold, you are a genius! I think you are correct, of course there is that "Warning" in the back of the book. I wrote out up to n =8 and found that the answer is n nPr 4 n is the number of elements in the set. I don't think you even have to worry about n >3 because 3 nPr n >3 is 0. Th...
- Sun 22 Feb, 2009 5:01 pm
- Forum: Off Topic
- Topic: Discrete Mathematics Help
- Replies: 14
- Views: 30792
Re: Discrete Mathematics Help
You guys are dead on with 15.11 and 16.1, I think. Man, I should've thought back to probability and statistics in high school. In this Discrete Mathematics course, they don't use the notation nCr and nPr, so I didn't think about it, but they actually use those for the math of the permutations and wi...