This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

New button to JFrame

 
Martin Schneider
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
how I can create new button to upper right corner (right next to the minimize, maximize and close)? And how I can create a logo for it? I'd like to have a question mark on it.
Please help.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The buttons on the frame are platform dependent... so there is no way to really add a button to it other than making your own platform dependent frame in C++ and using JNI to use it in Java. You can fake a button by using a Window and drawing all the frame decorations on yourself in the Window's paint() method, though... plus implementing all the MouseMotionListeners to make the Window move and resize like a Frame...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!