aspose file tools
The moose likes Swing / AWT / SWT and the fly likes New button to JFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "New button to JFrame" Watch "New button to JFrame" New topic
Author

New button to JFrame

Martin Schneider
Ranch Hand

Joined: May 16, 2002
Posts: 42
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

Joined: Oct 18, 2000
Posts: 4121

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...


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: New button to JFrame
 
Similar Threads
handling excel sheet with java
How To Make the "Browse ..." Button Work?
how to create new textbox on clicking of a button
how to create a button via J2ME
creating button with dual purpose