Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

sachin dabhade

Ranch Hand
+ Follow
since Mar 10, 2001
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 sachin dabhade

is there any way by which a client can send some data to server which is processed and sent forward to second client using RMI?
thanks ,
sachin
17 years ago
hello everybody,
i have a simple question.
i have an application where a clients sends a string and server accepts it,finds the string length and return it to client.
as far as this is concerned , all is fine.
but i want to send this string length to second client on the same server.
can anybody tell me how to go about it.
i know it may be simple but i am new to distributed technology.
thanks in advance,
sachini
17 years ago

Originally posted by Michael Ernest:
Hm. Ok, MFC programmers:
Is there a way to call the shut down process for Windows through an application?


this is not the answer to my question
17 years ago
hi,
i want to know if there is any API in java which would help me in developing a window OS application.
like i want to shut down my PC after pressing the button in swings.
thanks in advance.
sachin
17 years ago
But,the documentation which i got with javatoidl.exe says that i should compile it using :
c:>javatoidl Hello.idl
you said to compile using
c:>idlj -fall Hello.idl
is it available with jdk?
whats the difference between idlj -fall Hello.idl and javatoidl Hello.idl?

i will try it today itself after going home from college.
thank you,
sachin
17 years ago
hi,i am new to corba and tried to program my first program "Hello World " using java and corba.
i created an Idl and trying to map it to java using JavatoIdl utility which i got from www.java.sun.com
i have included javatoidl in classpath.
from the command prompt,i write the following command : javatoidl Hello.idl
but when i try this i am getting error : "Fatal Error : cannot preprocess input file "
can anybody take me out of this?
thanks in advance.
sachin
17 years ago
hi all,
i have a project to do in distributed networking and we are given option to use CORBA or JINI.
i am learning both the technologies but dont know which one is better.
can anybody help me which one should i use??
thank you,
sachin
18 years ago
hi all,
i want to know if there is any method where i can avoid the user to change the valued in JTable.
i have a JTable dynamically created after fetching data from database.
but the user can manipulate this data.
i dont want this to happen.
any way??
thanks in advance.
sachin
18 years ago
can anybody tell me how to add data to a JTable??
i have a text box and a button and want to add the data to the JTable on clicking the button.
thanks in davance.
sachin
18 years ago
i have called the function from server with String return type.
i am getting a return statement from server.
and depending upon the message,i am displaying the frames.
eg :
String a = Validate(uid,pwd);//call to remote method
works finely.
if validation is successful,it returns String as "Login Successful "
i can print this on client using System.out.println.
and then on client side i do the following.
====================
if(a.equals("Login Successful")){
SwingApplication cv = new SwingApplication();
//SwingApplication.java is Post Login Screen
//It has JFrame frame;
cv.frame.setVisible(true);
f.setVisible(false);
//f is also JFrame but in Pre Login Screen
System.out.println("Cashier Logged in");
}

==========================
but the problem is that the frame is displayed using the above code but the content is not when running through RMI.i.e empty frame is displayed.

if i run SwingApplication on console with out RMI,it runs finely and displays all the content.
==========================
Hope you got the problem.
please let me know your suggestions because i am new to RMI.
thanks in advance
sachin
[ June 09, 2002: Message edited by: sachin dabhade ]
18 years ago
i am facing a problem with frames in RMI.
i have used JFrame.
i have a frames which i want to display after verification of user id and password.

when i run the frame on its own,everything is fine.
but when i run client program over RMI and on verification of the user name and password,same frame is displayed but it is displayed blank.
the content of the frame is not shown.
but the same content is visible if run directly without RMI.
any clue???
thanks in advance.
sachin
18 years ago
I have an applicatin where i have used JTabbedPane.
It contains a tab called " Inventory" and "Others"
on clicking,inventory i want to open another TabbedPane on the same contentpane with following tabs.
1.Add Item
2.Remove Item
3.Check inventory.
i tried adding another tabbedpane to the same contentpane but only the first tabbedpane is displayed.
the sub tabbed pane is not displayed.
can anybody help me to get a path out of it?
thanks in advance.

sachin
18 years ago
hello all,
i have an application made in swing using frames.
i have a button on it.
what i want to do is on the click event of the button,i want to open a new frame and kill this frame.
can anybody help me how to do this??
thanks in advance.
sachin
18 years ago
i dont want to do that.
i want to call a method on server,if that method is successful only then i want to display message.
how can i fire the message on client side on button event before executing the function.
18 years ago
i have an application where the client calls a remote method using RMI.
i have a swing interface for client.
on the click event of button,i am calling some method.
the method is executing finely.
what i want to do is send a message back to the client that the execution succedded.
i can write a message on server console using System.out.println("Process successful");
i want the same message to be displayed on client console.
can anybody help me??
thanks in advance.
sachin
18 years ago