Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!

George Thomas

Ranch Hand
+ Follow
since Oct 06, 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 George Thomas

Thank you Rene Larsen!
That did it!!!
15 years ago
Nope,
All tomcat services are shut down.
I even tried port 9090 but to no avail.
Thanks,
George.
15 years ago
Hi all,
I've been trying to get the code from an article
on the O'Reilly site to work. It starts an instance of tomcat inside a java application.
For me, tomcat starts except a message is displayed "Couldn't create connector."
This is the result of the following statement:

Tomcat is running but cannot be reached using
http://localhost:8080/
Anybody try this?
Here is the url:
http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html
Thanks,
George.
15 years ago
Hello all,
I need to open up a serial port with an applet using the javax.comm api. My code works fine as an application but as an applet it still gets what seems to be some kind of security exception.
I have modified the java.policy file to grant

java.security.AllPermission;
And I changed the IE 6 settings to allow any java operation.
but still no luck.
Is what I'm trying to do possible?
Any thoughts?
Thanks in advance.
George.
15 years ago
I'm begining to use the J2ME emulator and now
I'm thinking about purchasing a PALM device.
My question is: would say a PALM VIIx come 'ready
to roll' as far as the MIDP and KVM (all the things required to run my programs) and if not how does this work? How much prep is required to run programs developed on the emulator to run on the PALM?
I'm new to this so please pardon my ignorance.
Any advice on PALM purchase would be greatly appreciated.
My requirement is that am able to connect to a
J2EE server either through a modem, or network connection.
Wireless in the future.
Thanks in advance.
George.
16 years ago
Yes!
InputStream in = this.getClass().getResourceAsStream("/text.txt");
works!
I'll check out the javadocs as you suggested to see if I
can get clear in my mind what is happening here.
Thanks again,
George.
16 years ago
Yes!
InputStream in = this.getClass().getResourceAsStream "/text.txt");
does work.
I'll go to the javadocs and see if I can get my mind clear on
what is happening here.
Thanks, George.
16 years ago
Thanks again,
However...

I'm not sure why...
George.
16 years ago
Thanks Peter, I'll give it a try.
George.
16 years ago
Is it possible read a file other than an image file from an applet's jar. I was thinking about sending some static data down in xml format
16 years ago
Try running from the \\<your tomcat directory>\bin
tomcat start
to stop run:
tomcat stop
16 years ago
Thanks Chris,
You are probably right, I have the constraint of planting this applet right onto the HTML page so I can't subclass JFrame which opens up a separate 'Java Applet Window'. As I've been developing this I've come to the conclusion that some of these components behave 'differently' on the JApplet container than on the JFrame. (I can get my drag and drop routines for the tree to work by sub classing JFrame but the drop events don't fire when I sub class JApplet.) Yes, I probably need to use the JDesktopFrame (although my big Swing book (O'Reilly) says you can use any container). I tried that and I was probably doing something wrong with that cause my controls wouldn't paint on top of it at all...I just got the JDesktopFrame (?). Unfortunately I don't have time to do much controlled experimentation...this search thing is required for an upcoming demo of the application...(crunch). So I've come up with the idea of adding a tab for the search criteria to make them persistant and then another to display the results. When things quiet down I'll get back to this. Who am I kidding? Things don't quiet down here !
Thanks again.
George.
16 years ago
Mike,
Thanks for the reply...I think I tried that already but I'll try it again just in case.
I was doing some searches on the problem and apparently there are numerous bugs in jdk 1.3 relative to the sizing of the JInternalFrame.
George.
16 years ago
Here's some tree cell renderer code:
(ConfigTreeNode is a sub class of DefaultMutableTreeNode)

16 years ago
Here's some code I wrote to go through the components on a JPanel. This might help.
16 years ago