• Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding a button in titlebar

 
great veera
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchguys
Please help me out in this problem, My need is to have a button in the title bar ie one more button apart from minimise,restore,close buttons,
By clicking this new button i want to put the application icon in the windows systray,
If anyone has got ideas and piece of code to help me out will be of great help.
TIA
best regards
veer
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Veera,

You can't do this in Java directly. You would have to make the special frame and the 'put in systray' activity in native code ( like Visual C++ ), and use JNI to connect your Java program to it. I don't really know enough about Visual C++ or JNI to help you out much beyond this point... Sorry!

-Nate
 
great veera
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi nathan,
Thanks for your inputs,i found an answer for that but that's done in VB here is the link members.home.net/machaira/TitleBar.zip
but since i don't have VB in my system, couldn't analyse how he did it,
Thanks & Regards
Veera
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

"great veera"
your name doesnot agree with the javaranch guidelines.
please donot use ficticious names. we do request our
ranchers to register with a profesional looking name.
I should also like to mention that we are not interested
in your real name. all these and additional guidelines
are available at http://www.javaranch.com/name.jsp
please take a moment and re-register after taking a look
at the guidelines.
thanks for your cooperation.
regds.
- satya
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!