Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JDialog  RSS feed

 
Ajit B
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can i add icon to the titlebar of JDialog? if yes how to add it.
thx in advance..........Ajit B
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ajit,
No, not directly from Java. Since the JDialog look and feel is controlled by the native window system (based on Window, which is still heavyweight component), you can't add anything using java.
You could however, use JNI and add something ...
Regards,
Manfred.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!