Results 1 to 2 of 2
  1. #1
    Guru. is offline Member
    Join Date
    Oct 2013
    Rep Power

    Post How can i develop a GUI for a Java RMI application and What concepts i should learn?

    I am planning to develop a project in Java Rmi for my distributed Computing class, So I have gone through the concepts of Java RMI in various books( Java RMI by William grosso, Distributed computing concepts and design chapter 4 & 5 on RMI, Java how to program by dietel chapter 20 on RMI). I got a clear idea of how to develop a Java RMI application, But in all the books I studied, they do not mention about how to link a java RMI application to a GUI,

    The user needs a GUI to enter values and perform an action, and these values are taken by client and pass these to the server and server performs the action requested by client and returns answer to the client. The client displays it to user through GUI ,Then the user able to see the result visually.

    MY question is
    How can I create a GUI and connect it to the client program? What concepts I need to study to develop a GUI for a user to perform client-server interaction in RMI?
    can I use HTML to collect information from clients as we do in servlets and send them to server in RMI or is there other standard way to do so?

    Please help me

  2. #2
    rfq is offline Member
    Join Date
    Mar 2012
    Novosibirsk, Russia
    Rep Power

    Default Re: How can i develop a GUI for a Java RMI application and What concepts i should lea

    If you want connect client and server via RMI, then client has to be a java program, and most natural way to make a GUI for java program is using Swing (or AWT, SWT, JavaFX).

    For the first version, embed access to RMI into methods which react to GUI events (buttons etc). You'll notice that GUI freezes while RMI request is processed. This may lead to bad user experience when network connection is lost. In the second version, perform RMI requests in a separate thread. There are lots of ready solutions to make GUI-Thread communications, the simplest is SwingWorker.

Similar Threads

  1. Replies: 0
    Last Post: 10-08-2013, 03:21 AM
  2. Develop Java Database Application
    By rona in forum Advanced Java
    Replies: 4
    Last Post: 12-31-2012, 01:53 PM
  3. Best way to develop desktop based application in java
    By sreenathgvl in forum New To Java
    Replies: 2
    Last Post: 09-07-2012, 10:11 AM
  4. Replies: 10
    Last Post: 06-11-2012, 03:04 PM
  5. How to develop a standalone application using java
    By santhoshkeleti in forum New To Java
    Replies: 2
    Last Post: 11-15-2011, 07:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts