473,587 Members | 2,487 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Counting figures in a Text based Whiteboard using Java RMI ?

6 New Member
I am new to the Java RMI Concept. I am trying to implement the functionality of RMI by using Serialization to create a whiteboard. I want to make a "text based" version of the whiteboard. I have searched google and have only come across graphical whiteboards using RMI which are far to complex for what I am trying to accomplish. If anybody can show me an example or point me in the right direction...you r help will be greatly appreciated.

What I am trying to implement.....L ets say there are figures (circle, square).
Using Java RMI I want the client show:

What type of figure has been listed previously:
(for example the output maybe like:

Client1> Circle, XCord, YCord, Count (4), Total (7)
Clien2> Square, XCord, YCord, Count(1) Total (1)

Client# -- The client connected
Circle/Square -- Shape of the drawing.
XCord, YCord -- X&Y Cordinates.
Count (#) -- Count of the specific shape made by the client.
Total (#) -- Total count of the specific shape created by all clients on the whiteboard.
)

The Client can input his selection and specify coordinates

For example:

Client1>C 100, 200
Client2>S 100, 300

Client# -- The client connected
C (Circle)-- Shape of the drawing.
S (Square)-- Shape of the drawing.
100, 200-- X&Y Cordinates.


Can anyone help me?
Nov 12 '07 #1
0 1318

Sign in to post your reply or Sign up for a free account.

Similar topics

5
2748
by: Robert J. O'Hara | last post by:
For some time I've struggled with the problem of displaying simple captioned figures on webpages in a way that is robust and scalable. I tend to make "boring" (um, I mean "conservatively elegant") pages that are text-heavy and that resemble academic publications. Despite the origin of HTML in the world of scientific communication, the absence of a FIGURE element to serve as a counterpart to the TABLE element is surprising. This topic has...
3
1955
by: Megan | last post by:
hi everybody- i'm having a counting problem i hope you guys and gals could give me some help with. i have a query that retrieves a bevy of information from several different tables. first let me give you a little background. this database is kind of like a human resources database. it collects info about people, where they work, and if they have any work-related issues where they work.
5
3696
by: Tony Williams | last post by:
I have a table "tblmaintabs" that stores data that is collected from various companies on a quarterly basis in March, June, September and December each year (these dates are stored in a Date/time field called txtmonthlabel formatted mmmm yyyy). I am trying to create a report that shows the figures for the same quarter last year and the figures for the year to date this year and last year. The value is shown on the report in the control...
14
2074
by: Dan | last post by:
Is this discouraged?: for line in open(filename): <do something with line> That is, should I do this instead?: fileptr = open(filename) for line in fileptr: <do something with line>
21
2209
by: Grant Edwards | last post by:
I need to be able to generate a PDF report which consists mostly of vector images (which I can generate as encapsulated Postscript, PDF, or SVG). What I need is a way to combine these figures into a single PDF document. Right now the reports consist entire of these figures, so I just write the figures out to temp files and then use os.system() to run ghostscript with appropriate options to combine them into a single PDF file. I'd...
10
2845
by: dishal | last post by:
Hi, im having a major problem with printing text on a JFrame. This is a simple whiteboard I'm doing but i just cannot seem to print the text properly. It prints all the alphabets on the same point (all the alphabets are piled on top of each other) instead of printing it incrementally like "this is a random string". Can anyone please help me??? Here's what I have so far: import java.awt.*; import javax.swing.*; import...
0
1600
by: dishal | last post by:
I have a whiteboard I'm working on at the moment but I have no idea how i should transport the user's input on the canvas to the recipient. Someone suggested using BufferedImage. Can anyone please explain to me what Serialization and BufferedImage are, what they do, and how they work?? And how I should implement them in a whiteboard??
3
2013
by: riaz1983 | last post by:
Hi, In our company we do have two teams working on online tutoring.A team for php and a team for asp.net&c#. ASP.net people uses flash whiteboard which they got from 3rd party adobe. PHP team uses java whiteboard for which we have to pay seperately. My task is to access the whiteboard (what asp.net are using) into php. Can i do this .Since i am new to php iam struggling in it. Infact they are using webservice,i am able to access it...
0
11583
by: JosAH | last post by:
A Simple Text-Based Menu System Read this this post; there are numerous posts like that: a newbie struggling with some sort of menu implementation. They want nested menus of course and an option to quit the entire thing. Of course they tie their 'business rules' tight together with their (feeble) attempts of their individual menu items and get heavily entangled in complicated control structures. The post (see the link above) made me write...
0
7923
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7852
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8221
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6629
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2364
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1455
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.