Nathe Chan

Ranch Hand
+ Follow
since Mar 12, 2009
Merit badge: grant badges
For More
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 Nathe Chan

Hi, can someone give me a hand with this project.

I have problem figuring out what the GridLayout is with the top part. It's a JFrame; I know that.

Here is the URL: http://www.scribd.com/doc/13082448/CSIS1275Assign3w2009

Here is the part I want to be laid out.

If someone can help me ASAP, that would be great.

http://smg.photobucket.com/albums/v85/nategenerations/selectedpartlayout.jpg

I tried so hard already and I haven't accomplished anything.

- Nathe


14 years ago
Hi everyone,

I need help ASAP.

If you can help me on this, that would be appreciated. Currently, I have two animations (two classes) in a Java Applet. I would like to know how to animate both at the same time. Here they are.



If you cannot understand the code, here is a brief explaination of both of it's functionality.

The 'Buy More at Nathan Chan Movie Buy' text is supposed to move from the right of the screen to the left of the screen.
Moreover, the Austin Powers picture array is supposed to animate from the left of the screen to the right of the screen.

My objective is to animate two of these animations both at the same time.

What code is needed in order for both to "multithread"?
Hi everyone,

I am stuck on Java. I have a JPasswordField, and I need to know how to solve this scenario. If I press JButtons on my box, they should be concatenated onto the textbox. What if I had JButtons named 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', and 'J'. How would I enter the JButtons to form a character password string such as 'C','H','A','A'? Can someone provide with the code to solve my problem? Sincerely, I do not have much time left on my hands and I need an answer ASAP.

Thank you very much,

Nathe
14 years ago

Michael Dunn wrote:> Here is my coding so far, if you want to look at it and try to fix it.

if you follow the advice I gave in reply #1, lots of people will probably look at it

https://coderanch.com/t/437075/Swing-AWT-SWT-JFace/java/JAVA-JList



Does anyone have a different suggested answer?
14 years ago
Hi everyone,

I am confused again. This time, I'm stuck on question 4 and I need some good hints to get me by.

Here's the URL for the pictorial view of the assignment.

I need to get my Movie Titles, number of copies I want to implement (Combo Box), type of movie, DVD or Blu ray and Pricing when I press the JButton "Buy".

The main idea is that I want to get things to show up.
I have been using the getSelectedIndex() feature and I've been getting values like -1. Eek?!? :S

Here is my coding so far, if you want to look at it and try to fix it.

MOVIEBUY.JAVA



MOVIEINFO.JAVA


14 years ago
Just figured out the answer. Problem solved. Thanks.
14 years ago
Hi everyone, here's an odd problem that I have . .
The problem is that I have many panels in my code.
And, I don't have a container.

By the way, here it is. I have serious trouble getting my JScrollPane onto my JList. If you want a portion of the code, I have cropped it out carefully. Thanks for reading, and I hope that you can help fix my problem.



CROPPED CODE:


When the JList is added in::



I need help on this ASAP.

Thanks
- Nathe
14 years ago
And, yes you would need to add a

addListSelectionListener(this); to it first!
14 years ago
Thanks Michael Dunn!! ..
I'm so happy now cause' I figured out the solution and had a breakthrough.

For the public who want to understand more of this code, here it is!


14 years ago
Okay .. . I have already added a listener to each list. Then . .?
14 years ago
Does it go along the lines of?



Oh my goodness, I still don't get it.

- Nathe
14 years ago
I'm guessing that the answer has to do with getSelectedIndex() and setSelectedIndex(), but I can't figure it out yet.
14 years ago
No .. that's not what I said. I want to select a movie from the Movie Titles list and then the program will automatically highlight the DVD/ blu Ray stock in their respective colours(green for DVD, yellow for blu Ray) for that movie title. eek..
14 years ago
This is what I have so far, but it doesn't make any sense to me. Plus, it doesn't work. Can you give me some guidance?


14 years ago
That's way too vague. . SIGH.
14 years ago