Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java 2D Question  RSS feed

 
Data Virtue
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Data Virtue",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
Data Virtue
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do not confuse your display name with your login name. You can make your display name your given name. If you would rather not use your real name that is fine -- just make sure that it's not obviously fictitious, not a web site name, not a corporate name, or let on that it's not your real name.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!