Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #3758
| From | "Stefan Rybacki" <stefan.rybacki@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: render fake titlebar |
| Message-ID | <4872517b$1@news.uni-rostock.de> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <48724c5d$0$13555$7836cce5@newsrazor.net> |
| Date | 2011-04-27 15:46 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui Daniel Pitts schrieb: > Stefan Rybacki wrote: >> Hi there, >> >> I'd like to draw a fake titlebar in my swing gui. But the title bar >> should look like a real title bar using the current selected look and >> feel. >> Any ideas on how to achieve that? >> >> Thanks in advance >> Stefan Rybacki > The real question is, why do you need a fake title bar? Could you use a > JDesktopPane and JInternalFrame instead? > The answer is I might wanna seperate my panel into regions and like the window metaphor where there aren't actual windows. I could use JDesktopPane and JInternalFrame though but was interested whether it is possible to fake a title bar using the current look and feel. I got it working for the Metal look using the proper titlebar ui classes provided in the look and feel. But I was wondering whether there is a more general way to do this. > As I understand it, the platform look and feel actually uses native > components/decorations directly, so there isn't necessarily a way to > draw "fake" window decoration on something that isn't a platform window. > I could be wrong about that though. > Well, I didn't think about the native look and feel which could indeed be tricky but which could be adressed using the look and feel methods to determine whether the look and feel supports decorating windows or not, I could use an alternative implementation of a titlebar in that case. And again, thanks for your help it is appreciated. Stefan Rybacki --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Find similar | Unroll thread
render fake titlebar with "Stefan Rybacki" <stefan.rybacki@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
Re: render fake titlebar "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
Re: render fake titlebar "Stefan Rybacki" <stefan.rybacki@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
csiph-web