Java Miscellaneous: Help how to add backgroud in text2dtext.java?

  • jojoa / 300 / Mon, 25 Jan 2010 20:04:00 GMT / Comments (4)
  • is there anyone know how to add the texture as backgroud , and then have the 3d word in as well . Thank you for ur help!!!
  • Keywords:

    add, backgroud, text2dtext.java, java

  • http://java.itags.org/java-tech/99607/«« Last Thread - Next Thread »»
    1. Redefine the paintComponent method of the component : you set the texture with setPaint of Graphics and then you draw the String with drawString method of Graphics

      antoine_lemoinea | Mon, 16 Jul 2007 02:00:00 GMT |

    2. i am not sure what you need. Background in 3d scene? if so, see examples in j3d sdkAnd if you need word (text?), see examples again :-D

      thidneya | Mon, 16 Jul 2007 02:00:00 GMT |

    3. I want to make a texture image as background, and add text on it , The text can be moved by mouse to anywhere in the background . now , I only made the image as background , and some text on it ,but the text is too big. I typed 搘elcome to garden design? when I run it , I only can see one letter 憌?. I am wondering do u have some idea to make the text smaller . I already changed the size to 1 , but i still can not see the whole words i typed . The code like below

      --

      Font3D f3d = new Font3D(new Font("Arial",Font.PLAIN,1),extrusion0);

      --

      I am tried to use set Scale. But it is not work as well. The code like below .

      TransformGroup objScale = new TransformGroup();

      Transform3D t3d = new Transform3D();

      t3d.setScale(0.2);

      objScale.setTransform(t3d);

      objRoot.addChild(objScale);

      I am wondering how I can change the text to the different location on the backgroud, not only in the center.

      Thank you so much for u help ^-^

      jojoa | Mon, 16 Jul 2007 02:01:00 GMT |

    4. When are you painting the text ?What is objRoot ?

      antoine_lemoinea | Mon, 16 Jul 2007 02:01:00 GMT |

  • Java Miscellaneous Questions

    • Zapata Offshore!Family values

      Its not some company working on outsourcing projects in India!Its name of the oil company which Geor...

      By arjunshastry

    • YUVY Format

      Hello, My camera supported format is YUVY, how can i convert it to RGBFormat ? Where can i read abou...

      By nitza

    • Zero page login in cross domain case

      According to the developer's guide, I can do the "Zero page login" by the URL http://server_name.dom...

      By c_y_kam

    • Server certificate migration.

      Hi,We are using Sun[tm] Crypto Accelerator I Board along with iPlanet 6.0 on a Netra T1 Solaris mach...

      By 705597

    • You can't handle the truth!

      Last night, an old movie surfaced in my mind. I forgot the movie's name, but remembered some of ...

      By johnlee, 14 Comments

    • directory

      i am writing a program for testing some thing in a database.The user enters the directory where he w...

      By avijitsikder, 1 Comments

    • NumberFormatException

      I am trying to create a program that will sort a set of numbers either via a random generated set of...

      By robierunner, 2 Comments

    • Zune Phone

      http://www.youtube.com/watch?v=nRKIDdIaFyEZune Phone...

      By andrewmonkhouse, 2 Comments

    • Zooming to an area

      I'm sure someone has ran into this problem before. My problem is zooming into some areas of the vide...

      By onamikaa, 2 Comments