Data Virtue

Greenhorn
+ Follow
since Apr 28, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Data Virtue

Sebastian Janisch wrote:punching 'java soundex' into google returns http://commons.apache.org/codec/apidocs/org/apache/commons/codec/language/Soundex.html as the very first result!



Yeah, DoubleMetaphone seems a better choice though. We'll see how it goes.
15 years ago
I need a class that will build soundex codes from whatever strings I ask of it.

I also need some more information on how to compare the various codes to determin if I had a good search result.

I have searched around a bit and have found nothing straight-forward.

Thanks in advance.
15 years ago
I used this code to set my renderer.

return new DefaultTableModel(data,headers){
public Class getColumnClass(int column) { //this code makes sure the proper renderer is used
return DV.idObject(this.getValueAt(0,column));
}
};

In my idObject method I returned Date.class when I ran into a Long column.

Next question, What is the best way to change the date format of the default renderer?

Sean
16 years ago
I need to render or display dates from the long values stored in my table model. What is the best way to do this. I've found other info on this but it assumed you had Date objects in the tablemodel.

Sean
16 years ago
I went off about this before and they left my name in place. I logged in just fine. Also if anyone cares to look you can end up with my home adress in about two clicks by visiting the website seen in my signature.

Again, I tried to follow your rules even though I log in everywhere with the name DataVirtue; my "real" name was already taken. Data Virtue is a legal name for me anyway as I have stated before.

Your forums are nice but please quit accusing me of ficticious names when in fact it is a "real" & legal name for me to operate under.

I think most of my posts are now dealing with the ficticious name issue.

Killroy, killroy...

Sean
17 years ago
This class simulates a line printer and allows you to print text strings easily from Java.
Tell it the font, feed it some text and you have a printed (8.5 x 11) document.
Portrait or Landscape, you can also change the font when issuing a form feed.

Print Example is public domain

Link: http://www.datavirtue.com/Software/dev/LinePrinter.java

17 years ago
My given name was rejected, what you see is my legal and proper name as well. Hardly ficticious it is registered and is also the title of my website that contains all of my personal information.

Sean
17 years ago
I'm trying to create single labels for a DYMO or Co Star Label Writer. I have set the page size and everything works fine except the actual address (text) is positioned wrong on the page (label, graphics). In the DymoLabel class I commented out the translations code (g2d.translate) once and it printed the same. I don't have any experience with 2D exept for this.

I'm not sure how everything is handled (translation, positioning) when you change the page orientation.

Any help is very much appreciated.

Code Download: http://www.datavirtue.com/dwnlds/DymoPrinter.java

When I have fixed this and it is complete I will leave this download in place for others as public domain.
17 years ago