• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

how to change JLabel shape ???

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well i have to make a program displaying text in given shape
.
. .
. .
| |
|_______|
how to do it???
this is just shape similar to pentagone...
the one we have in wordart...
 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Although your problem is not much clear, it seems that you can use Java2D transformations.

Here is a tip for this:

A demonstration of Java2D transformations
http://www.java-tips.org/java-se-tips/java.awt/a-demonstration-of-java2d-transformations.html

And some more possibly helpful tips related to this:

http://www.java-tips.org/java-se-tips/java.awt.font/how-to-draw-text-on-a-component.html
http://www.java-tips.org/java-se-tips/java.awt/text-animation.html
http://www.java-tips.org/java-se-tips/java.awt.font/how-to-draw-a-text-with-mixed-styles-on-a-component.html
 
look! it's a bird! it's a plane! It's .... a teeny tiny ad
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic