James X Williams

Greenhorn
+ Follow
since Dec 07, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by James X Williams

Hi everybody,
Firstly I need to thank everybody here. You have given a big big help for my SCJP. I just passed SCJP at 86% and think about the SCJD.
I am thinking whether there is anybody located at Toronto Canada and who are thinking about the same thing. I hope to prepare for SCJD together with him or her. We can disuss together and help each other, but no plagiarism of code please. I think I can be a very helpful studyingmate anyway. I hope to use no more than 3 months to pass it and I am not start everything yet except reading Java1.3 API and some useful books.
If you think it is fine, please feel free to connect with me:
email: [email protected]
tel: 416-4061376
Looking forward to hearing from you. Thanks!
James wu
Hi everybody,
I just passed SCJP at 86% and think about the SCJD. I have got a lot of help from here. So I am think whether there is anybody located at Toronto Canada and who are thinking about the same thing. I hope to prepare for SCJD together with him or her. We can disuss together and help each other, but no plagiarism of code.
If you think if it is fine, please feel free to connect with me:
email: [email protected]
tel: 416-4061376
Looking forward to hearing from you. Thanks!
James wu
Hi,
can u give me a clear explanation where do we use those and in which situation.
Thanks
james
24 years ago
Hi
can anybody give me explanation about plug-in's
Thank u
James
24 years ago
Find a book for java certificate, finish reading in one week, remember no more than one week, no matter you can understand or not, ONE WEEK!
Then:
Do very mock exams THREE times. And remember every question you did wrong.
And:
Read that book again before you go to bed.(or in bed)
Friends:
Can a thread sleep for infinite amount of time. Sleep method takes long as its argument. So there is no way it can keep executing for infinite amount of time.
Please comment.
James
Friends:
Does the thread lose the monitor on sleep, yield or block. I feel it does not.
Can some one confirm this.
James
How would I do this? Use a 'key' I mean? I'm not understanding what you are getting at. The answer to your question is yes- one user might have access to option a and not option b, while another user has access to option b and not option a.
Thank you

Originally posted by Paul Wheaton:
Rather than user level, have you considered "keys"?
Is it possible that one user might have access to option a and not option b, while another user has access to option b and not option a?

If you give the first user the "a" key and the second user the "b" key, all of this works out.
As for OO: Yes, you should have a user object that contains the access authority information. And then have a secure object that knows how to test the authority.


I am relatively new to Object Oriented Programming and am creating my first decent sized Java application. I have to create an application that users must login to, select which sub-system they want to use, and then select the thing they want to do from a menu. These tasks represent, as I see it, modules that can be developed as separate pieces and then assembled. Here are the modules, again as I see it:
-user login
-select the system the user wants
-menu options (and the rest of the application)
My question is about threads. I know how to make these modules run on different threads. Each module would spawn a new thread for the next module to run on. My question is, is this a good idea or should I just write all of them on the same thread? When is it a good time to spawn a new process off on a separate thread?
Help!!
Thank you very much in advance!!
I am planning my first decent sized Java application. Since I am relatively new to OOP, I have a couple of questions. Many of the features in my application depend on knowing who the user is and their access level to screens and menu options. I need to create a menu system so that a user can only see their menu options. In addition, the user access level will determine how much of the screens they have access to that they will be able to use. For example two users may be able to use a data entry screen, but only one can actually save changes made.
My question is, how I set up a user object so that it is floating out there and when I need to know the user's security level, I grab the user object and ask it about its security clearance. I'm not sure that passing the user object all over the application is a very "Object oriented" way to perform this task. How should I set this up? Thank you very much!
I am planning two medium sized Java apps using Swing for the GUI. I am trying to decide the "better" way to set up search
screens. Lets say that I am on a client information data entry screen and I need to look up an existing client. How should I
set up the search functionality? I have heard two ideas. One is two create a separate screen to gather the search criteria. The
second is to allow the users put search parameters into the entry screen and search for the records that way. Also, what
should I do if the search returns more than one result. Does anyone have any thoughts? Thanks.
25 years ago