Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Rick Stewart

Greenhorn
+ Follow
since Mar 02, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rick Stewart

Check out the course COMP 266 - "Introduction to Web Programming" at Athabasca University. Its offered online and internationally.

Course Syllabus

You do have to complete 1 Prerequisite before you can take COMP 266, either COMP 200 or COMP 210. ( I took COMP 200 and it was pretty easy ).

Rick...
Some good tips Mihai, thank you!

Rick...
Hi Harry,

I checked the various editors at home and at work and you were correct, a few of them were using variable width fonts. I've now set everything up with the new courier font, 10 pitch, and I can now move source code between any two editors and everything keeps its place as it should.

Thanks for the tip.

Rick...
Hi all,

The Developers assignment seems to be touchy about spacing and having your comments all line up, etc.. I have noticed that when I develop an application on my Eclipse IDE everything looks good and properly formatted on my screen, but sometimes on another IDE or simple editor the formatting looks messed up, for example the comments no longer appear in a straight line, or a line runs past the 80 column mark. I have Eclipse set up so that tab inserts real spaces, 4 of them.

My concern is that when I submit the assignment to be marked, the formatting that looks good on my PC will look bad on the marker's PC.

Is there a particular font type and size that I need to be using to generate my codes?
just a quick note.

I've ordered up both Expert One-on-One J2EE Development without EJB & Head First EJB. These two will nicely round out the course text book.

thanks for the help.

Rick...
15 years ago
Hey Kameron, thanks for stepping up to give me a little guidance. I have both Head First Java and Head First Design Patterns, and I enjoyed them both very much. I'll look up your other suggestions on Amazon to see which ones fits in the best with Java programming in the enterprise, and then I'll order up a copy.

Thanks again,

Rick...
15 years ago
Well I guess from the response, all the J2EE books must suck!
15 years ago
Hello,

I'm in about the same boat. I'm starting a Networking II course (java) soon and would like to purchase a good companion book, something that does a good job at introducing J2EE.

Any recommendations?
15 years ago
Hello Ernest, thanks for your reply, and the tip about using , that sure makes everything look better!

There are just 2 places where startGUI() gets called, the first is in main() when I first run "c:\>java MyGUI", and then thereafter its only ever called from inside run() when I start up a new copy.

As you suggested I've looked up Window dispose(), and it is just the thing I was looking for I think. I have lots of books that explain threads and run(), but all the examples dealt with simple threads, and none that I saw dealt with a thread that would live past the life of the run() method.

Thanks very much,

Rick Stewart
Sorry the code looks like heck, I couldn't get tab to work, and when I posted the message, all the leading line spaces that were formatting the code were removed.

Rick...
Hello, I hope this is not one of those " Oh My God, EVERYBODY knows that!" kind of questions. But implementing threads is new for me.

I have a GUI application that is allowed to spawn new copies of itself, which then in turn can spawn more new copies, etc.. No problem there, that functionality works. My problem comes when trying to shut them down. Each spawned GUI application must be able to terminate itself without terminating any of the other copies, "killSelf". They must each also be able to terminate all running GUI applications, "killAll". The killAll part is easy, any GUI copy calling System.exit() stops the JVM, so they all will stop.

My question is, how do I implement "killSelf"? I had thought that when a thread is started inside run(), and then when run() finishes that thread should terminate. But in the code below, when run() returns and the message "exiting run()" is printed to the console, the new MyGUI application is still running. How can I get it to terminate?

The commented out code was going to be how I stopped the new MyGUI, but it didn't work.

Here is a sketch of my code:



Any suggestions whould be appreciated. Perhaps there is a pattern I should be following?

Thanks,

Rick Stewart

[ September 30, 2006: Message edited by: Rick Stewart ]

[ September 30, 2006: Message edited by: Rick Stewart ]

[ September 30, 2006: Message edited by: Rick Stewart ]
[ September 30, 2006: Message edited by: Rick Stewart ]
Hello all,

I have an intermittent problem in my Eclipse editor window. Sometimes when I scroll up and down inside the editor window, the top portion of my code disappears. For example, lets say I have 100 lines of code, and then after scrolling I find that lines 1 through maybe 20 have disappeared when I scroll back to the top of the file.

When I save the file, exit out of the editor, then open the file back up in a fresh editor window all the code is back.

If it only happened occasionally I wouldn't mind, but its fairly frequent.

Anyone have an idea how to fix this, or what perhaps I am doing wrong?

Rick Stewart
46 years of age and thinking of finishing your career ?
I know people who have lost their jobs at this age and have successfully gone on to build another, sort of a mini-career in a different company!!
With your experience in telecommunications, you could probably think of an aquaitance with j2me.

[ March 04, 2006: Message edited by: shankar Iyer ]

:roll: In fact Shankar, a mini-career is just what I was thinking when I wrote that. This would be a third major career change for me, and if it lasted 15 or 20 more years that would be just fine with me!!
15 years ago
Hi Mark,

Thanks for your reply, and encouraging words. Working from home is an icing on the cake thing for me, it would be great, but I do recognize that it has a lot of downside. The main problem is I live in a rural community about an hour+ highway drive from the city of Halifax. I currently have a 3 hour round trip drive to work, and I would dearly love to be free of it. But you do what you have to do.

Your advice about finding work that can make use of what I already know is I think great advice. I may possibly be able to get some programming experience with my current employer. For school I have to do either two "3 credit" lab courses, or one "6 credit" lab course, consisting of a large programming problem. The university will allow the programming project to be something that needs doing with your current employer, if you have one, so I may try to get my employer to throw a few crumbs my way. This could also lead to programming work down the road.

My best chance for employment in my home community is probably government work.

Anyway Mark, I appreciate your time and your thoughts.

Rick...
15 years ago

Originally posted by Homer Phillips:
Do you think the content of this story is an urban myth?



Hey Homer, that sure does not paint a very rosy picture...
15 years ago