Sachindra Pratap

Ranch Hand
+ Follow
since Jun 03, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Sachindra Pratap

Hi All,
There is query regarding the usage of attribute maxFilesQuantity.
Acutally while file upload ,i want to restrict to only one file upload.
The following code is used to upload the single file, but code is not working,here i mean to say, after one file get uploaded, again the add file option is availabe to add another file , i want to restrict to only single file upload. Please provide the solution to above problem.



regards,
Sachindra Pratap
12 years ago
JSF
hi,
Actually i am using the touch screen in my application, front end.

But the problem is ,on particular button i have added the event, mouse pressed and mouse released.

ie. in state of mouse pressed some task is performed and ,on release of mouse some other task gets executed.
all the task takes place when operations are performed throu mouse, but while using fingers on touch screen,
task don't get perform .


So please let me know any event which could work similar to mouse press and mouse release on touch screen.


thanks,
sachindra
15 years ago
hi ,
write an application in which i display a JTable containig result from database. Everything works fine but i discover that JTable gives the user a chance to change columns' positions when the JTable is displayed. i want to prevent the user from doing this change in JTable's columns positions. How can i perform that.
Many thanks
16 years ago


query:
The problem is regarding Socket time out exception.
please suggest what could be the problem in this udp socket class.


regards
Sachindra
hi,
In my application ,i am using jTable.
jTable consist of four column.
At fourth column ,check box is being added,during run time.

So now the problem description.
Suppose in database table there are four records,i get those records,
and set them in jTable,with corresponding check box.

So now in jtable there are four records as well as four corresponding check box.

next ,when in table there are only two records,programtically i will get
those records, set them again in jtable ,but now this time two records are
set in jtable ,with corresponding check box,but the next two other rows
also contain the check box.

so please write, what could be the problem

regards
Sachindra
16 years ago
Hi,
In my application ,i am using udp sockets.
The problem arise,when there is late reply,or no reply from the
udp server,due to which timed out exception comes,as effect of this,
my gui application gets hang,as i have used JOptionPane.showmessageDialog(null,"As the response of udp server"), to show response.

so please anybody tell what could be the problem.

regards Sachindra
Congratulation!
16 years ago
Thankyou all of you!

regards
Sachindra
16 years ago
hi,
In my swing application ,i want to remove the close icon which comes at upper right cornor of the window.
I want to logout my application, by making use of logout button which i have put.

please convey the solution!.

regards
Sachindra
16 years ago
Thanks for the reply,
well i wanted to activate the shutdown command for remote pc
hi,
I have an application, which deals with the client Server implementation.
I use to send request to UDP server and in udp server class ,JOptionPane.showmessageDialog(null,"" ) is implemented in catch block, when ever there is delay in retrieval of response from server
side.
Since udp client socket waits for particular amount of time.
I there is delay in response,or connection is not establish,
jOptionPane gets pop.

But problem is that many times,when this jOptionPane pop come gui hangs.

Please do the favour by giving any suggestion.
regards,
Sachindra
16 years ago
hi,
What i anaylized from your reply is as follows:
On three different machine there would be running client and server both.
But from one machine (through which is want to shutdown other two systems)
Throu the client on A machine ,i would send a request to the other two machine,which would have there own server running.And They would execute,
Runtime.exec(),to shutdown that particular machine.

But my query is ,could there be any way to directly hit shutdown,to remote
machine, through our program.
(may be throuh rmi ,but i don't have any idea about).

So please help in understanding me the situation.
regards,
Sachindra


Make a object of this class , and then through this object call function within this class, in argument giving the ip address you want to ping.
If this ip is reachable it will return true.
Actually,
We are planning to develop a client service which would be running at,
client's end.Where the swing based application is running.
That swing based application has hashtable which needs to be updated through
the web services at run time.

Steps which are being performed:
1.There is database on one machine.
2.There is oneserver side web service running on server, which would be contineously pinging and retrieving the data from database.
3.And client web service would be continous ping this server web service
and update the swing based hashtables.
4. need clarification for pre requisites on running the client web service.


regards,
Sachindra
16 years ago
Can we update swing based application using web services?
16 years ago