Search:

Type: Posts; User: lex25288

Search: Search took 0.13 seconds.

  1. Replies
    12
    Views
    2,744

    Re: Thread syncronization JAVA GUI

    what?? I figured the problem out by myself, so I thought I'd post the corrected classes, should anyone need them :)
  2. Replies
    2
    Views
    1,690

    Re: Client disconnecting

    why are you flushing System.out instead of out :confused: ... also why are you always re-initializing in and out???
  3. Replies
    2
    Views
    3,118

    Re: Handling TCP and UDP in same server

    Well you certainly can't use the same port.... so you are going to have to use one for the UDP server and the another one for the TCP one!
  4. Replies
    1
    Views
    3,087

    Re: Send file via DatagramSocket

    Files, unlike strings and ints (any primitive type for that matter) are not serializable.
    So if you want to send a file via a socket (may the protocol be UDP or TCP) you are going to have to send...
  5. Replies
    12
    Views
    2,744

    Re: Thread syncronization JAVA GUI

    I finally figured it out!
    I managed to make it work by deleting the Upload Button and actionPerformed() and moved the code in it into run()....
    Then I replaced ObjectInputStream and...
  6. Replies
    12
    Views
    2,744

    Re: Thread syncronization JAVA GUI

    These two classes are part of a much larger project for my dissertation (for my bachelor's)..... Once the client's logged in, they can choose what to do amongst four possible choices: Remotely...
  7. Replies
    12
    Views
    2,744

    Re: Thread syncronization JAVA GUI

    it's oos; I added the following lines of code before oos.writeInt(selectedFiles.length);
    if(oos==null) System.out.println("oos is null");
    else System.out.println("oos is not null");

    and it...
  8. Replies
    12
    Views
    2,744

    Re: Thread syncronization JAVA GUI

    the server side just hangs (well that's normal, since it's waiting for the the number of files to be transferred)
    here's the the exception stack trace:
    Exception in thread "AWT-EventQueue-0"...
  9. Replies
    12
    Views
    2,744

    Thread syncronization JAVA GUI

    Hi there I have been having some thread synchronization issues lately, I am trying to write a client/server application which is supposed to transfer files from one computer to another using a given...
  10. Replies
    5
    Views
    3,634

    Re: program loops never ending

    Just a word of advice, you should probably reduce your WHILEs to a minimum... since the higher the number of loops is the more complex your algorithm is. As for the ending problem, whenever you want...
  11. Replies
    3
    Views
    2,756

    Re: Binary Search Tree

    It all goes smooth except for removeHigh... which doesn't seem to do anything...

    here's the tester I used



    public static void main(String[] x){
    BSTImpl dic = new BSTImpl();
    ...
  12. Replies
    6
    Views
    2,412

    Re: Need help using Recursion in an assignment

    import java.io.File;
    import java.util.Scanner;
    import java.util.*;
    import java.util.LinkedList;

    public class Homework3 {
    public static void main(String[] args) throws Exception{

    ...
  13. Replies
    3
    Views
    2,756

    Binary Search Tree

    hi, I'm new to this forum, so first of all I think I should introduce myself, hi I'm lex.... So basically the other day I was given the following assignment: 'Given the following interface (BST) and...
Results 1 to 13 of 13