Search:

Type: Posts; User: iHank

Page 1 of 2 1 2

Search: Search took 0.11 seconds.

  1. Animations doesn't start at the same time (Alpha and Translate)

    Hello!

    I'm creating an application that has three textviews, and I want them to be presented one by one. I want the presentation to be animated so that the textviews is translated from outside the...
  2. Re: Cannot read files while running program from JAR-file

    Yes, seems like i forgot the DTD-file. You can close this thread.

    --- Update ---

    Thank you for your time!
  3. Re: Cannot read files while running program from JAR-file

    2741
  4. Cannot read files while running program from JAR-file

    Hello!

    I have a program that is a XML-parser, and it works fine when I'm running it from NetBeans. But when I create a JAR-file and run the very same program, it cannot find the xml file. Consider...
  5. Replies
    4
    Views
    998

    Re: Send text file over socket

    No, but i does not work to send anything at all. If i want to send an integer:


    while(true) {
    try {
    Socket socket = fileSocket.accept();
    out = new...
  6. Replies
    4
    Views
    998

    Send text file over socket

    Hi!

    I'm trying to send a text file over a socket, from client to server, but I doesn't work. I will demonstrate a part of the code that isn't working.

    The critical part of the server look like...
  7. Re: Program is working when using "Step into" in debugging mode, but not when running. (Sockets)

    I managed to get it work. Thanks!
  8. Re: Program is working when using "Step into" in debugging mode, but not when running. (Sockets)

    Well, I have a listener for the JButton. In the actionPerformed-method I have a boolean that becomes true when I'm pressing the button. That will break the below loop.


    ...
  9. Re: Program is working when using "Step into" in debugging mode, but not when running. (Sockets)

    Yes, soon. The problem seems to be with the while-loop that is waiting for the JButton to be pressed.
  10. Program is working when using "Step into" in debugging mode, but not when running. (Sockets)

    Hello!

    I have three classes: Server, Client and Cap. I'm trying to send Cap from Server to Client and back through sockets. Server implements runnable and in the run-method there is a infinite...
  11. Replies
    3
    Views
    1,026

    Re: Problems with readObject();

    Well, it suddenly worked. I have no idea what was wrong...

    Thank you for the interest!
  12. Replies
    3
    Views
    1,026

    Problems with readObject();

    Hello!

    I have a three java classes: Client, Server and Cap. Cap implements Serializable and doesn't contain any object that doesn't do the same. The client is sending an object of Cap to the...
  13. Replies
    5
    Views
    2,021

    Re: Update JLabel with new ImageIcon

    Thanks for the help, man. It works now as I used ImageIO.read(InputStream) instead of url directly.
  14. Replies
    5
    Views
    2,021

    Re: Update JLabel with new ImageIcon

    From within the constructor the getImage-method is called and it works perfectly. When I'm clicking at the JButton the actionPerformed-method is called, and within it the getImage-method is also...
  15. Replies
    5
    Views
    2,021

    Update JLabel with new ImageIcon

    Hello!

    I have a JFrame containing a JLabel, JButton and a JScrollPane like:


    JButton b = new JButton();
    JLabel l = new JLabel();
    JScrollPane s = new JScrollPane(l);

    From the constructor a...
  16. Replies
    10
    Views
    1,309

    Re: Why is isDirectory true for File("c:")?

    For me, "c:" is always the path of the the executing program. When I move the executing file, then the path och File("c:") is changing to that directory. That is why I think that PhHein is executing...
  17. Replies
    10
    Views
    1,309

    Re: Why is isDirectory true for File("c:")?

    In the middle example, from what path are you running the program?
  18. Replies
    10
    Views
    1,309

    Re: Why is isDirectory true for File("c:")?

    Yes. It certainly is very strange and, as you say, it seems that this only occurs with "c:".

    It will be interesting to find out what's going on.

    Hank
  19. Replies
    10
    Views
    1,309

    Why is isDirectory true for File("c:")?

    Hello!

    I've create a small program, and when I create a File object like


    File f = new File("c:")

    and then call the method isDirectory, it returns true. Why is that?

    The program is...
  20. Replies
    5
    Views
    1,247

    [SOLVED] Re: JAR-files doesn't seems to run

    Thank you, man. It is working now.

    Hank
  21. Replies
    5
    Views
    1,247

    [SOLVED] Re: JAR-files doesn't seems to run

    Yes, I'm expecting a CMD window to open. I have a few "System.out.println" - streams that I want to see.
  22. Replies
    5
    Views
    1,247

    [SOLVED] JAR-files doesn't seems to run

    Hello!

    I have an annoying problem with JAR-files. I can run the JAR-files from the cmd, but when I double click the JAR-file, nothing seems to happen. I have a program that create two files, and...
  23. Re: Problems with "renameTo" - method in the File class

    Thank you! Now I understand the renameTo-method.

    Hank
  24. Re: Problems with "renameTo" - method in the File class

    I don't get an error at all. The renameTo - method return false.

    Hank
  25. Problems with "renameTo" - method in the File class

    Hello!

    Consider the following code:


    public class TestUppgift1 {

    public static void main(String [] arg) {

    Scanner sc = new Scanner(new...
Results 1 to 25 of 43
Page 1 of 2 1 2