Re: Re: Turning system borders of windows off?
"Piotr Puchalski" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.user-interface |
|---|---|
| Organization | Investdom dGCS sp. z o. o. |
| Message-ID | <op.sublvixrsv0onn@localhost> |
On Fri, 22 Jul 2005 16:01:33 +0200, Marek Slama <[email protected]> wrote: > Piotr Puchalski wrote: > >> On Fri, 22 Jul 2005 13:11:29 +0200, Marek Slama <[email protected]> >> wrote: >> >>> Piotr Puchalski wrote: >>> >>>> Hi! >>>> >>>> As in the subject. Is this possible to turn off system borders of >>>> windows and use java native in Netbeans 4.1? I was looking for it >>>> in setting, but I failed to find anything:( Any ideas? Thanks in >>>> advance, cheers >>>> >>>> Piotr Puchalski >>>> >>> Not sure what do you mean. You can use Metal L&F instead of Win L&F. >> >> >> Sorry, for not being precise:/, but it's probably the lack of my >> english:( I'm using linux(Gentoo, 2.6.11 kernel, Sun JDK 1.5 - if it >> maters), so it is not win L&F for sure;) >> I'll try to explain it in other way: >> generaly "windows managers" draws: the borders of windows, the "title >> bar" above each window with "minimalize", "maximalize" and "close"(X) >> buttons. But I know that java can do it - instead of windows managers. >> And my question is: is it posible to make Netbeans behave this way? >> Very big "Thank YOU":) for this answer and the future ones(I hope so;, >> cheers >> >> Peter > > If you mean usage of JFrame.setDefaultLookAndFeelDecorated(false); AFAIK > it is not supported by NetBeans. I just tried and yes > if you set it to true then Java cares about border and title if false > decoration is native. I've just looked through the source code of application, in wich I've seen such behavior. And yes, ".setDefaultLookAndFeelDecorated(...)" - is code that couse this. But I was wandering if I can achive this effect in Netbeans... and You have answered it too - thanks! :) I think it's a pity that Netbeans don't support it:/ "Java decoration" has better performance on my system - it is probably beacouse of my "exotic" window manager (OroboROX). And sometimes when I try to close a window of application written in java by pressing "the cross in the top right corner";) the content of window turns black but "frame" remains and covers the rest of application to wich it has belonged:( If it is the window showed in "modal state" it will remain there until I close the entire application:( But, thanks anyway very much for Your answers:), best regards Peter > > Marek. > >> >>> >>> Marek. >>> >> >> >> > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/