Deirdre McHugh

Greenhorn
+ Follow
since Sep 21, 2006
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 Deirdre McHugh

Hi Tim,

When you run the application with argument 'server' it means you are just starting the RMI server. I dont think there is any such thing as running the app in server mode i.e. starting the server and then running the client as well as the server should be remote and you cant start a server remotely. I know the server could be the localhost but that is why we have standalone option. That confused me initially too but I believe that the intention is that the examiner will start the rmi server on one machine and try to connect to the server from a different client machine.

D
hmmm....I guess I need to include an error message if the client cant connect to the server if they start with no arguments. But I am just wondering is that everyone elses interpretation i.e. that when they start in server mode they are starting the RMI server only.
Hi all,

I am just looking for a little clarification here. From my instructions I have identified 4 modes that application can be started.

1. Start in standalone mode. The application bypasses the networking entirely and everything runs on the one machine. In this instance the user is presented with a configuration screen at startup that allows them to configure location of the database only. This box has been prepopulated with the db location from suncerify.properties.
2. Start in server mode. This will start the RMI server only. Presumably the examiner is then going to come along and start the client (option 3) on a different machine to prove the networking works. The user is presented with a configuration screen at startup that allows them to configure location of the database only. This box has been prepopulated with the db location from suncerify.properties.
3. Start with no arguments. This assumes that there is an RMI server running somewhere and the user is presented with a configuration screen that allows them to configure the host and port that they can connect to. Since the db access is on the server side you cannot connect to a different db when starting the client.
4. Start with invalid arguments. This just throws and exception and tells the user they have not used valid arguments.

So my question: I just want to make sure that my understanding of the networking stuff is correct. When they start in server mode they are just starting the server right? not actually using the application. Unless there is some way to remotely start an RMI server that I am unaware of.

Thanks,

Deirdre
Thanks all, I figured it out after going through the tutorial (which I had read before but I am a bit of a skimmer). Gregg, I will take on your suggestion about the JPanels (this app is getting bigger every day). Thanks again.
17 years ago
Apologies if this is a very basic question. I am new to Swing and am having a some difficulty. I am trying to write a little application which is basically one Frame with a menu bar. When a user clicks on a menu option, I need to open another frame and get them to change some stuff. I dont know how exactly to do this. I need a modal window (where the main frame is the parent) with some custom buttons on (i.e. not just OK / Cancel). My questions is what method should I use to do this. A Dialog box does not seem correct here. Also, I have thought about JInternal Frame but I dont think this is appropriate either. How can I just create a frame that is a child of another frame. This leads me to another question of flow control. What if I wanted more than 1 window in my application? How do I flow from frame to frame. Really what I just need is a tutorial detailing a bigger swing application than what is typically available. I usually do web development so this is a bit of a mind-set problem for me I think.
17 years ago