This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

How to change the height of the JFrame title bar and its color?  RSS feed

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I change the height of the JFramHow to change the height of the JFrame title bar and its colore title bar and its color? Please don't suggest to change the height by changing the font size of the title bar..Thats a hack and doesn't look good at all. In general, is it possible to write a custom JFrame title bar? Working example will be appreciated. Thanks.
-Dan
 
author and iconoclast
Sheriff
Posts: 24220
40
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's up to the host window system to draw that title bar, so the answer is, generally, no. What you can do, though, is to use a Window instead of a JFrame, and in that Window (which has no title bar) draw a fake title bar yourself. You'd have to handle dragging, click-to-close, etc yourself, but of course you can make it look like whatever you want.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use IFrame instead (http://www-128.ibm.com/developerworks/java/library/j-iframe/)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!