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...
Type: Posts; User: iHank
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...
Yes, seems like i forgot the DTD-file. You can close this thread.
--- Update ---
Thank you for your time!
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...
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...
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...
I managed to get it work. Thanks!
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.
...
Yes, soon. The problem seems to be with the while-loop that is waiting for the JButton to be pressed.
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...
Well, it suddenly worked. I have no idea what was wrong...
Thank you for the interest!
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...
Thanks for the help, man. It works now as I used ImageIO.read(InputStream) instead of url directly.
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...
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...
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...
In the middle example, from what path are you running the program?
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
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...
Thank you, man. It is working now.
Hank
Yes, I'm expecting a CMD window to open. I have a few "System.out.println" - streams that I want to see.
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...
Thank you! Now I understand the renameTo-method.
Hank
I don't get an error at all. The renameTo - method return false.
Hank
Hello!
Consider the following code:
public class TestUppgift1 {
public static void main(String [] arg) {
Scanner sc = new Scanner(new...