Matt DeLacey

Ranch Hand
+ Follow
since Oct 12, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Matt DeLacey

Does anyone know if you can specify log files at the web module level, and if so how? So if you had 7 web modules running under one server, and you wanted them each to have their own logging, can you do this?

Also, does anyyone know what the 'additional classpaths' is for in the application assembly tool when setting up a web module?

With respect,
Matt DeLacey
20 years ago
Hello:
I have an application that allows printing from an applet. When the print dialogue box appears, the user is able to print to a file. I would like to disallow printing to a file. It seems like I cannot do this if I use the standard print dialog. Is that true?

With Respect,
Matt DeLacey
21 years ago
I just recently added some code using the java.awt.geom package. When I exported the code and tried to run, I got this error (never seen before):
Exception in doDisplay = java.io.InvalidClassException: PrintLabelDataCode39; Local class not compatible: stream classdesc serialVersionUID=-7055949461334852060 local class serialVersionUID=-4873628894647225212 java.io.InvalidClassException: PrintLabelDataCode39; Local class not compatible: stream classdesc serialVersionUID=-7055949461334852060 local class serialVersionUID=-4873628894647225212 at java.io.ObjectStreamClass.validateLocalClass(Unknown Source) at java.io.ObjectStreamClass.setClass(Unknown Source) at java.io.ObjectInputStream.inputClassDescriptor(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.inputObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.inputArray(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.inputClassFields(Unknown Source) at java.io.ObjectInputStream.defaultReadObject(Unknown Source) at java.io.ObjectInputStream.inputObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.inputClassFields(Unknown Source) at java.io.ObjectInputStream.defaultReadObject(Unknown Source) at java.io.ObjectInputStream.inputObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at LabelPrinter.getObjectFromUrl(LabelPrinter.java) at LabelPrinter.getLabelMetrics(LabelPrinter.java) at LabelPrinter.doDisplay(LabelPrinter.java) at LabelPrinter.init(LabelPrinter.java) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

I'm pretty far along in the development cycle, and haven't had any problems heretofore, so it's not like I'm just figuring all this stuff out. It SEEMS like the class files used in the java.awt.geom.* are not compatible with the jvm. They are separate. One is the jvm that comes with VisualAge for java. I believe it is 1.2.2 for the version I am using.
It is 1.2.2 on the server too. The only difference is Windows versus Solaris, but I've never had any troubles with that in the past (and shouldn't). Any thoughts?

With respect,
Matt DeLacey
21 years ago
Thanks so much. I have no idea why that repaint() was in there! When I took it out, you're right, it fixed the time issue, AND it fixed the double click issue. Bizaree! Thanks a million for the help.
With respect,
Matt
I am really grateful for your help. That works with no exceptions, but there is some incredibly strange behavior! First of all, it registers button clicks, but V-E-R-Y slowly. Also, every button click registers TWICE!!! If you have a spare moment, could you see what I'm doing wrong? It must be very simple, but for the life of me, I can't figure out how it could be registering two button clicks!


With Respect,
Matt DeLacey
Thanks a million!

It works great, but I am getting an IllegalMonitorException. So, you call the applets wait method, but you notify the thread? Is that right in your pseudocode?

With respect,
Matt DeLacey
Hey! I am having a problem with threads in applets. So I launch my applet. When the user clicks a button, then code is run, and ultimately I want to wait until the user clicks another button. So essentially, I've want a wait in one button handler, and a notify in another. No matter what I try this doesn't seem to work. Basically, no matter how I try to do it, the whole applet seems to lock up when I get to the wait. I've tried anonymous inner classes, separate action listener classes, and having the applet itself handle the events. I've tried wait/notify, I've tried sleeping in a loop and then testing a flag, and I've tried using locks. Nothing seems to work, and the behavior always seems to be that the applet locks up. Any help would be appreciated. A fragment of code would be nice, because I think there is something fundamental I am missing. I've got several books here and have tried a variety of things, but they never seem to work.

With Respect,
Matt DeLacey
We're using the Java plugin in an app of ours and the customer demands complete 508 Compliance. However, the dialog box that pops up to tell you about accepting the plugin and about security aren't 508 Compliant. Does anyone know when/if Sun plans on providing this, and if there is any way to request such a thing?

With Respect,
Matt DeLacey
21 years ago
I can't get text I add to a JOptionPane to wrap. Any advice?

With Respect,
Matthew DeLacey
21 years ago
I did do a search, and there were several that were similar to this, but nothing that was close enough to answer my question. My question is: I have installed Red Hat Linux (8) with support for Chinese characters. It works well, and all that is fine. But I have a GUI app that pulls in text from a .txt file and it should be displayed in Chinese as well. It appears to work for French and German and some of the others, but when I switch to Chinese, I get:
font specified in font.properties not found [tlc-song-medium-r-normal--*-%d-*-*-c-*-gbk-0] several times, and the text in the app that is supposed to be in Chinses is not. So, I know that the fonts are there because the desktop is using them fine, and I can see there is a file font.properties.zh that says it is the support for Chinese and song-medium-r-normal font is referenced in there. But I have no idea what to do to tell Java to look at RedHat's ttfs...I know where they are, just not specifically how to tell Java where to look.

With Respect,
Matthew DeLacey
21 years ago
Is there a way to have a Java Program go to a webpage, and push a button on that webpage?

With Respect,
Matt
22 years ago
To own a farm with 50 acres. I'd have a big orchard and a HUGE garden, and a small pond with catfish. I'd plant nut trees, and all kinds of berry bushes. I'd feed the deer and wild turkeys. I may or may not raise rabbits (not sure if I could "harvest" them). I'd live very, very simply and think a lot and read a lot and generally try to figure out what it's all about.

With Respect,
Matt
22 years ago
Yes, it can be done with Class.forName(String).
I used a bad example in the first post, one that, as has been pointed out, would call for polymorphism.

With Respect,
Matt
22 years ago
For the record, I realize that's it's NOT a good idea, and that there ARE better ways. I am wondering if it is possible.
With Respect,
Matt
22 years ago
I have a firm understanding of polymorphism. You are thinking too much about my first example. My question still stands:
Is it possible to create an instance of a class using a String? Again, I'm not asking if it is a good idea or not, or if there is a better way. I am asking if it is possible.
With Respect,
Matt
22 years ago