Dave Smith

Greenhorn
+ Follow
since Jan 12, 2000
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dave Smith

Thanks very much for both of your responses. There's no need to fight though
17 years ago
This would be quite a complex task. It would involve adding a mouselistener to the textarea, and finding out the word under the mouseEvent point. That would require a bit of work!
Dave
17 years ago
Oops, Reply button got hit early
have a function that from the httpservlet, you can pass itself to class1, which can pass itself into class2:
HttpServletRequest {
...
class1.setParent(this);
...
}
Class1 {
...
public void setParent(HttpServletRequest x) {
class2.setParent(x);
}
...
}
Class2 {
HttpServletRequest main;
public void setParent(HttpServletRequest x) {
main = x;
}
...
}
17 years ago
have a function that from the httpservlet, you can pass itself to class1, which can pass itself into class2:
HttpServletRequest {
17 years ago
Hi,
I am wanting to be able to show a JDialog containing several text fields, and allow the user to close the box by pressing Escape. I imagine this is possible, what do I need to do to pass the keycode to my code. I am aware of the code needed to close the window, and have tried to capture keypresses by implementing a JDialog with the KeyListener interface. However, it didn't appear to be able to recognize any key presses.
Can someone show me an example of extending a JDialog that works?
Thanks.
17 years ago
check out the JavaRanch BunkHouse -- it has lots of book reviews and recommendations.
Ok, the code runs and works as expected. OK. When you don't have the line "super(y)" the JVM tries to execute "super()" except that it can't find that. I expect if you add a constructor to your "Super" class with no args, then you can do what ever you want with it. If you remove the "int x" from the "Super" constructor that you have, it will call that constructor by default.
So, if you don't specify any constructor, a default one with no args and no code is produced. if you do specify one, a default one will NOT be produced.
I am really hoping this answers you question
20 years ago
I don't know of any, but you could try the microsoft MSDN - msdn.microsoft.com. Or, I'm sure it is possible to find a tool which can list the exports for a DLL, though I think you will have to do a bit of work finding out what the parameters are

[This message has been edited by davesmith (edited March 30, 2000).]
20 years ago
Cheers, it does fetch the String, and can be set using the put (though I don't think it works to spec ). Where do I find all the atrtibutes of this dialogue?
Is it in the JDK source?
20 years ago
Cheers, it does fetch the String, and can be set using the put (though I don't think it works to spec ). Where do I find all the atrtibutes of this dialogue?
Is it in the JDK source?
20 years ago
I would imagine you would have to do it this way
Load the windows dll which has this C function (don't know which off the top of my head)
Call that C function from java.
I imagine that this is the only way it can be done.
I hope it helps a small bit
20 years ago
How would I change some of the labels inside a JFileChooser? I am wanting to change labels such as the "Look in" label in the top left. Anyone have any ideas?
20 years ago
How would I change some of the labels inside a JFileChooser? I am wanting to change labels such as the "Look in" label in the top left. Anyone have any ideas?
20 years ago
Just looked at the exception that was generated, it was caused by a nearby function which does a memory allocation, and I'm pleased to say, that the OutOfMemory is now caught.
Dave
20 years ago
I would imagine this would work. You would need to connect via a URLConnection prehaps, then wait until you read the login information from the socket. Then write the stuff to login, and basically control the whole session as if you were typing it yourself.
BTW, you can use the "cat" command to put the contents of the file you have just written to the socket.
Hope this helps.
Dave Smith
20 years ago