Creating chart in java client/server app.

Currently, I'm developing a client/server java app. under windows. I want to create a chart (pie, bar) for graphically reporting, anybody can help me pls........? Thanks a lot
TriAK

There are some solutions...You can use the Java Chart() class or BarChart() from the J2sdk API.
(http://java.sun.com/applets/jdk/1.4/demo/applets/BarChart/example1.html)
Besides, you can use some already build class from some companies like ObjectPlanet.(www.objectplanet.com).
There is also another link(have a look at it) http://www.java4less.com/charts_e.htm
Another way is to build by your own using java.awt(It will be to most difficult in the manner of time consumed).
Finally, I will recommend you to create charts as html page integrate this application as Applet or html in general(Javascript,JSP).
I hope I gave you some ideas.

Similar Messages

  • Creating a simple java client for a session EJB local interface

    Hi all
    Is it possible to create a simple java client for a session ejb local interface with JDeveloper.
    The problem is that it creates a test client for a remote interface only...
    i.e.
    MySessionEJB sessionEJB = context.lookup("MySessionEJB")
    and once i try to adjust it manually for the local interface...
    MySessionEJBLocal sessionEJB = (MySessionEJBLocal) context.lookup("MySessionEJBLocal") (MySessionEJBLocal - is the name of my local interface)
    it generates the exception:
    javax.naming.NotFoundException: SessionEJBLocal not found
    at...........................(RMIClientContext.java:52)
    There is still no problem with accessing the local interface object from the jsf project where i've added <ejb-local-ref> tag into the web.xml file.
    but i need the possibility of testing the simple java client for the local interface to test business methods wich should return objects without indirect properties
    Thanks in advance.
    Alex.

    Pedja thanks for reply.
    I still dont understand what is wrong with my example.
    The first peace of the code i wrote (getting the reference to the remote interface object) works pretty well, and even more it is produced automatically by JDeveloper, so why we cant get a reference to the local interface object the same way?
    Certanly we should use the local interface for getting access to the resource functioning under the same local jvm and i think it doesnt metter wich app server we really use wls or oas or others
    Thanks. Alex.

  • How to create command line java client

    I have a java servlet FileClient.java and am invoking it thru POST method from the html file. How can I create command line java client so that I can execute this class file from windows command prompt.
    e.g. java FileClient <argument>
    TIA

    > .. there's also a "won't work".
    I could post a sample...I know that you can instantiate and call aservlet,
    or even write your own servlet container - butit's
    still a local instance. He can't invoke his remote
    servlet by calling its class on the client like he
    suggested.HttpURLConnection in main.Only if his Servlet has a main method. Which wouldn't really make it a servlet anymore.
    OP said he wants to invoke it from command-line using
    java -cp . TheServletClass
    He said he has a servlet called FileClient. And he can't invoke a servlet directly that way, without building a wrapper that starts it, making it more than a servlet, and it definitely won't execute on the server. That's my whole point. I never wanted to say you can't write a command-line program that invokes a servlet on a remote server. I do it myself after all.
    I guess I should have expressed myself more clearly.

  • How to design socket client-server app for 2-way communication

    Hi, I am writing a client-server application. I have a single server and many clients. Each client will need the ability to send information to the server at any time. The server will also need the ability to send information to a client at any time. Its this second part that I am not sure how to design. Would I need to create a SocketServer on each client to accept incoming messages, or is there a better way? Thanks

    scranchdaddy wrote:
    Don't my requirements sound a lot like an IM application, where a chat server might need to send a message to a chat client at any time?Not really. If that is what you are designing
    in my opinion one could easily be forgiven for thinking you were deliberately obfuscating your goal...
    How does the server know where the client is? Does it know the IP address of the client?I would imagine the server would contain a directory of IPs? I'm not sure.
    What happens if the client is not running?Then I guess the message would not get delivered.
    What happens if the client is behind a firewall that does not allow incoming connections?How do IM chat clients work? How have people solved this in the past?Typically the server would only care about clients currently connected to the server.
    Maybe you should re-think your design. I don't really have a design, just requirements, that's why I'm writing this post.Your subject says "+How to *design* socket client-server app for 2-way communication+".
    Are you saying you expect someone else to do the design for you?

  • Lotus Notes Client Server Apps

    I'm wondering if anyone has tried to connect to lotus notes client server apps. from portal. I've heard that they have to be "webified" first. Is that true or are there different ways to get to the lotus notes app?

    Hi,
    Please post this on PDK forum.
    Thanks,
    Sharmila

  • Help Needed With Basic Client/Server App

    I was wondering if anyone can help with a simple blackjack client/server application i've been writting (basically its a moddified chat application). The problem i'm having seems to lie within the connection management i've written.
    What i'm trying to get is that only 4 players can connect at one time and that each player takes a turn (which i've implemented using threads) to play their hand (as you would if you were playing it for real). The problem is that it will allow the players to connect, but oddly enough, it will not allow a new transaction to be created (i.e. allow a player to take their turn) until 2 players have connected.
    Even when it does create the transaction, after taking input from the client once, the server seems to stop doing anything without any error message of any kind.
    Its really annoyed me now, so you guys are my last hope!
    The code can be found in full here:
    Client Application: http://stuweb3.cmp.uea.ac.uk/~y0241725/WinEchoClient.java
    Server Application: http://stuweb3.cmp.uea.ac.uk/~y0241725/ThreadServer.java
    Card Class: http://stuweb3.cmp.uea.ac.uk/~y0241725/Card.java
    Deck Class: http://stuweb3.cmp.uea.ac.uk/~y0241725/Deck.java
    Please feel free to play around with this code as much as you feel necessary!

    (one last bump back up the forum before i give up on this completely)

  • Integrating DOS/client server apps through portal

    Is there any partners out their that have developed any portlets that will integrate legacy client server or DOS through the portlet in a Citrix NFuse fashion?
    There seems to be a few competitive portal providers out their who claim that this can be done. OBTree does this via Java wrapped emulation software which can be integrated over the web.
    This would be very useful for legacy integration into one place without rewriting a front end etc.
    Any ideas or recommendations?

    Any one got idea how to resolve this problem. We are facing this problem with applet based applications. Pleae let me know if any one know how to write netlet rules to make this app. work through portal.

  • I Need Information about  Open Source Java Client/Server Instant Messaging

    I need your valuable help and collaboration with the following issue:
    I need to know where can find a robust Open Source Java Instant Messaging Client/Server Application.
    I thank in advance for their valuable time. And for the attention and the collaboration lent to me.

    I was going to mention that right off, but since the OP is clearly unaware of the search engines on the Web, I thought I'd give him a hand. Jabber works pretty good - I tried it a while back and some of the clients were ... quirky.

  • Need HELP in JAVA ( client /server application )

    hi there ,
    I need the following codes in java for my client/server application . which i can use to perform certain function on another computer on LAN. This is part of my semester project . I would really appreciate if any one can help me
    ->Open/close the CD-ROM once or in intervals (specified in seconds).
    ->Swap mouse buttons the right mouse button gets the left mouse button's functions and vice versa.
    ->Start optional application.
    ->Play optional sound-file.
    ->Point the mouse to optional coordinates.
    ->Shutdown the system, logoff the user etc.
    ->Mouse can be controlled on the target computer with remote mouse.
    ->Keys (letters) on the keyboard can be disabled.
    ->Increase and decrease the sound-volume.
    ->Listen for keystrokes and send them back to you!
    I would really appreciate if some1 can help me find these codes in java
    thanx
    Alamzaib Shafi
    [email protected]

    Dude, if you did your own homework once in a while you'd be able to handle your own semester project. I hope you fail your class and get kicked out of the program. One less idiot with a diploma competing with us hackers for the tech jobs.
    You are indeed a most worthy recipient of my unemployed angst.

  • OSX: multi client server app with NSNetService

    hello
    i have a small osx server app
    that uses NSNetService to manage connection and set up streams
    but it seems to stop advertising as soon as a clients connects
    how can i make it multiclient so it keeps advertising and when a new client connects uses the same streams ?
    thanks in advance
    nonnus

    superdeportivo wrote:
    Hello fellahs, as the title of this post says I'm making a client and server application. The server are supposed to handel several clients, and the communication is done true UDP. Out of interest why have you chosen UDP rather than TCP?
    I have got two questions concerning this. The first one is if a exception is throws in the server should I then send the exception back to the client in serialized form. If I choose to do this then I also would need to handel the exception classen to the client. Or should I send back a regular IOException and use it's init cause to define the exception which occured in the server. That is up to you, you can do either. I would do the first option.
    The second question is concerning the multi client support. If this is going to work then I would need to time-out the connection i the server environment, and I have not a clue about how long it should be?It should be long enough that you don't timeout a valid connection. There is no simple answer to this.

  • How to create a custom java client Security Policy File?

    I have a stand-alone java client which invokes a .NET WSE 3.0 enabled web service. The web service SOAP header requires username token to be passed from my java client.
    Could some one kindly provide a sample of a client-side Security Policy File?
    Your help is very much appreciated.
    Mike

    This is still a workaround...
    But if you put checks on all your forms to see if the user has accepted the terms (assumes there is an attribute tracking this) then you can redirect the user to the terms/conditions forms. Still not spoof-proof, but it would be bookmark proof. (and a pain if you have too many forms)

  • Authetication problem in client/server app

    I am presently developing a client/server program, and I'm wondering what will be the best form of authentication. I plan to develop a protocol for the programs, any deviation leading to socket closure. I thought about signatures, but I don't think any body's ready to vouch for me(ie I don't know how to go about signatures). Is there any help?

    Learn about JAAS

  • [beginner] Creating a secure Java client

    Hi all,
    I have a Java application whose presentation tier is JSP, middle tier is EJB and it's secured with HTTPS.
    Now I need to write a Java desktop application which connects to the EJB tier. How can I secure the communication between the Java application and the middle tier ?
    If client uses Secure Sockets (SSL), can I use the same certificates that the web application uses ?
    I'd like to use a central point of security both for the web client and for the desktop client.......
    Any help ?
    Thanks
    Francesco

    Pedja thanks for reply.
    I still dont understand what is wrong with my example.
    The first peace of the code i wrote (getting the reference to the remote interface object) works pretty well, and even more it is produced automatically by JDeveloper, so why we cant get a reference to the local interface object the same way?
    Certanly we should use the local interface for getting access to the resource functioning under the same local jvm and i think it doesnt metter wich app server we really use wls or oas or others
    Thanks. Alex.

  • Client/Server apps using custom objects

    I have wrote an ip transaction server and I am trying to pass objects across to it that don't have to reside on the server. I have created an interface that implements serializable and then the class I am trying to pass implements the interface. I read that as long as the interface is on both the client and the server that the object doesn't need to be using this approach.
    I, however, keep getting a classdefnotfound error for the custom object when I do a readObject().
    Can this really be done?
    Thanks in advance.
    Relevant code snippets:
    interface Workable implements java.io.Serializable
         public abstract int getToWork();
    public class test1 implements Workable
         public int getToWork()
              System.out.println("Test 11 value = ");
              return 1;
    Server code:
    Workable ipdata;
    ipdata = (Workable)in.readObject();//Blows up trying to read object here
    ipdata.getToWork();

    Take a look at the thread on this newsgroup named:
    deserialization loads classes more eagerly than construction?
    That seems similar to your complaint (Java's object serialization not conforming to its own specs about "classes that don't need to be present", in that thread it is a non-serializable member object that blocks things). I get the feeling you hit a bug in Java's serialization mechanism and that it is caused by a faulty heuristic in Java serialization.

  • Using Class Timer  in a client/server app

    In my program i d like the server execute draws every 5 min choosing numbers randomly from1 to 10.
    Clients, when connected will inform server about the number they chose. (This works correctly)
    Next, the clients will wait until notified by the server about the number drawn in the last draw and
    about if they won or not.
    i ve found that i have to use classes Timer and TimerTask but API does not help me enough
    about how to use them. Could anyone help me?
    Here is the piece of code i think it need to be changed.
      // control thread's execution
          public void run()
             int message=0;
             int rnum=randGen.nextInt(10);
             display.append( "\n"+ "THE MAGIC NUMBER IS: " + rnum );
    // process connection
             try {
                // read message from client
                do {
                   try {
                      message =  input.readInt();
                      if (message==rnum){output.writeUTF("SERVER>>> YOU WON: MAGIC NUMBER IS: " +rnum);}
                       else {output.writeUTF("SERVER>>> YOU LOSE: MAGIC NUMBER IS: " +rnum);}
                      display.append( "\n\n" +"PLAYER " + clientNumber + " SELECTED NUMBER " + message );
                      display.setCaretPosition( display.getText().length() );
                   // process problems reading from client
                   catch ( IOException ioException ) {
                      display.append( "\nUnknown object type received" );
                } while ( message!=-1 );
                display.append( "\nClient terminated connection" );
                display = null;
             // close streams and socket
             finally {
                try {
                   output.close();
                   input.close();
                   connection.close();
                // process problems with I/O
                catch ( IOException ioException ) {
                   ioException.printStackTrace();
                clients.remove( this );
          }  // end method run
        

    I just implemented something like this so I know what you are trying to do.
    Basically TimerTask is an Abstract class, which means you can't make an instance of it. So TimeTask t = new TimeTask() won't work. Instead what you need to do is make your own class that extends TimerTask. You then need to implement the run() method which is abstract in TimerTask.
    This sounds complicated at first, but it is very easy.
    This is my DelayTimerTask:
    import java.util.TimerTask;
    *Author: Jon Parise
    *email: [email protected]
    public class DelayTimerTask extends TimerTask{
        private boolean timeExpired = false;
        /** Creates a new instance of DelayTimerTask */
        public DelayTimerTask() {
            timeExpired =false;
        public void run(){
            timeExpired =true;
        public boolean isExpired(){
            return this.timeExpired;
    }All this class does is set a flag when it is run.
    The Timer class schedules a TimerTask, in this case a DelayTimer. When the scheduled time comes, everything in run is executed, which in this case sets the flag.
    To schedule the task do this:
    Timer delayTimer = new Timer();
    DelayTimerTask delayTimerTask = new DelayTimerTask();
    delayTimer.schedule(delayTimerTask,5000);
    while(!delayTimerTask.isExpired()){
         //DoSomething Here
    }This will create a new delayTimer, and then schedule it to go off in 5 seconds(5000 millaseconds). When it goes off isExpired will become true and break you out of the loop.
    Hope this helps,
    Jon

Maybe you are looking for

  • My macbook is running very slow all of a sudden

    m having the same issue. All at once my download speed, processing speed, everything turns into rainbow wheel. Heres my report: Hardware Information:           MacBook Pro (13-inch, Mid 2012)           MacBook Pro - model: MacBookPro9,2           1 2

  • Message mapping not generating target fields

    hi iam doing jdbc--->rfc (bpm) created a one2one message mapping to import rfc table. thanks in advance sri

  • MS Project plan for the upgrade of 10.7 SC to 11i

    Can some kind person supply me with a MS Project plan for the upgrade of 10.7SC to 11i. Our applications are GL/AP/FA/Project Acc. Any other doco would be most helpful. Thank you [email protected]

  • Slow file copy speeds

    Hello, I can't ul or dl files from client to me or vice-versa faster than 70kbs. Both connections are static, both are 7mbs up and 2.5+mbs down and both isps have assured me that no throttling is taking place. Ports are set correctly, encryption is o

  • Windows 8.1 x64 enteprise default domain profile creation nightmare

    I have huge problem to create default windows 8.1 x64 enteprise profile without sysprep. I am create xml file with default start apps (for enteprise 8.1up1) for my domain users and that is ok. I have default profile that I am customize and rename int