• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why Swing is HTML enabled?

 
harilal ithikkat
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator




i was searching how to add some simple effects to my button..and it ended on a code which passing HTML code as parameter..
Can anyone say how we can use it effectively...i mean upto which extend we can use it..
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the future, please restrict yourself to a single question mark at the end of a sentence; it's sufficient.

Swing supports HTML 3.2, so that's what you can use. But you shouldn't overdo it - buttons in particular should look like buttons, lest they confuse the user. Form elements in particular will not work, since there's no web server behind it. But it's not uncommon to use HTML in JLabels.
 
harilal ithikkat
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sorry.i have changed it to single question mark.... .
 
Amir Iqbal
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i would like to share a really good news with you guys.

Sun in introducing a new face to swing components with the name "Nimbus". it changes the look and feel of components in an awesome way.
i really love it.


Regards,
 
Campbell Ritchie
Marshal
Posts: 52581
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't introduce unrelated material into an existing thread, Amir Iqbal.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> Sun in introducing a new face to swing components with the name "Nimbus".

and what if you don't use 1.6.0_10(?)+
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!