Thamu Gurung

Ranch Hand
+ Follow
since Feb 02, 2010
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 Thamu Gurung

Hi Pete,

Thankyou for your valuable tips.

This way it was a bit easier and smarter, thanks a lot.



Regards,

13 years ago
Hi Pete,

Can you please give me some hint with codes , in using the Queue<String>. I tried a lot but did not get a single idea . Its really difficult for me .


Please ..

Regards,
13 years ago
Hi Pete,

I am not satisfied with the way i have dealt with the events of the buttons. As you can see in the code of the event captured " the password code to open the door is #423, but if i'm pressing 3 as the first or second or third choice , then the colour of the JTextfield changes to red", but the mechanism is that only after pressing four buttons , the colour should change .

So I want to have the change in the colour of the JTextFiled only after the user has pressed complete four buttons. How to do that ??? I could not figure out the logic ...

And how to encapsulate this event ???

Your much help will be appreciated.

Regards,
13 years ago
Hi,

Thankyou for the previous helps.

I am trying to make autmatic door system , which has some buttons on it and a JTextField at bottom , if the user enters correct the four digit then the JTextField's color turns to green else to red. and by defualt the color the JTextField is black.

I have just made the design and all my codes are in single class, now trying to complete the functuinality and then separating the classes. Now with previous helps , I have synchronized the events of four buttons at some level , but not satisfactory.

All your comments and the hlep will be much appreciated.

Code is mentioned below for more suggestions:-


Regards,
13 years ago
Hi Peter,

Thanks for your kind reply.

It realy gave me idea of using Stacks , which i have never used .

Really appreicate your kind help.


Best Regards ,


Thamu
13 years ago
Hi Peter,

Thanks for the links.

Actually was trying to explore some more events in java , and got strucked in handling two or more button events at the same time.

In my simple design there are four button 1,2,3,4 and below is the textarea which is black in colour bydefault and , when any user cliks on 4 and then 3 , in seqeunce (first 4 , then 3), then the Color of the textarea , should be changed as green.

my code is here below:


Much help be appreciated .


Many Thanks
13 years ago
Hi,

Really appreciate for all you help with my previous project. It was really nice and I got good grades in that . Thankyou everybody who gave their valuable time to me.

Now this time I have got some problems in making a automatic door locking system in State Design Pattern, I have searched internet but could not find any good examples of that .

My another problem is :

1) How to make an array of captured events.
2) how to synchronise the evetns .

Anyone could please help me understand the state desing pattern .

Regards ,

13 years ago
Hi Ilya and Bear ,
Sorry for using the scriplets , and thankyou for your logic

And thankyou Ilya for giving me that hint.

Now its done .

Regards ,


13 years ago
hi,

my error is like this now :-




I could not figure out , how i have used the duplicationn of the local variable user

:- User is a class file which having getter methods returning the values; and " users" is the attribute which was setted.

Regards




13 years ago
hi,

Thankyou . I will try this and let you know.

Regards
13 years ago
Hi,

I am having problems in sendind Re-direct to JSP page .

I am able to get the datas displayed in the servlet ,, bu no idea of redirecting it to JSP page ...fresher in JSP and Servlets

My codings for sevlet is as follows:-



now I want o get all these seven fields to be displayed in a jsp file (users.jsp),, please give me some guidelines to do this .

How to pass the above values in the jsp file.



as my users.jsp file is having errors ..
13 years ago
yah ,

thankyou its working now ,, as simple mistakes ,,makes crazy ,,

please check my JSP thread,,i got problem there
hi ,

The error msg which i'm getting is like this :-

java.sql.SQLException: Column count doesn't match value count at row 1

My files are like this

1.form.jsp



2. insertData.java



3. Table creation in MYSQL
-

4. Web.xml file



Please Help in this

Regards,
hi David its with the DB.....

cant use the prepared statement...