IBM IFrame help
Hello i need help to create rounded window using IFrame framework.
I know that i have to create a subclass of IContentPane overide isMouseOnBorder(), but i m stuck with the area that has to be transparent in order for my originally rectangular window to be displayed as rounded.
If someone could give code sample to get me started.
Thanks a lot.
# 1
Is the size of the title bar included in the size of the frame ?If i want to draw rounded corner do i have to setTransparent the corner of the title bar in the top of window and setTransparent the corner of the contentPane in the bottom ?Thanx for help
# 2
Usually, the titlebar is.I can't really help you otherwise, as I've never used IBM's libraries. I wouldn't expect many people here have. You might want to look into the Skin Look and Feel.
# 3
> Usually, the titlebar is.
Thanks.
> I can't really help you otherwise, as I've never used
> IBM's libraries. I wouldn't expect many people here
> have.
Nobody is doing rounded windows with java ?
You might want to look into the Skin Look and
> Feel.
What is this for ?
# 4
Most people just use Swing, I would guess. or maybe some SWT, but not sure it supports what you want.
search for Skin L&F, it's a Swing L&F that supposed to have transparent windows support. But it might not be available for every OS, as it's got to have some native code to do that.
# 5
> Most people just use Swing, I would guess. or maybe
> some SWT, but not sure it supports what you want.
>
> search for Skin L&F, it's a Swing L&F that supposed
> to have transparent windows support. But it might
> not be available for every OS, as it's got to have
> some native code to do that.
native code : this is what i want to avoid!
There is jna also with wich i can do rounded windows but its more complicated than IFrame.
Thank you for you help.
# 6
IBM's library would have to include native code too, to do transparency in frames. Otherwise you could do it with Swing.There are hack ways to fake it in Swing, using screen captures and stuff, but that's only good if your background never changes or you don't move things
# 7
> IBM's library would have to include native code too,
> to do transparency in frames. Otherwise you could do
> it with Swing.
>
> There are hack ways to fake it in Swing, using screen
> captures and stuff, but that's only good if your
> background never changes or you don't move things
> around.
Then this framework must use some of these hacks cause its not using any of native code, and its made with swing and just few classes that extends swing components, but it seems quite good even if its some hacks. I'd really like to get some rounded windows to work to see it in action.
# 8
I see... IBM's IFrame is doing the same screenshot hack. Which is probably why they point out that transparency makes things slower. Skin L&F should be better performing. But it's not free either, I think.
# 9
Well then i think i ll have a deeper look at jna. The demos are cool i tried on my pc but it takes time to get to know and start using new framework like this one just to have rounded windows.Have you used it ?Message was edited by: JusteUneQuestion
# 10
No, have not. Looks interesting, but I work mostly with applets these days and that's the last thing I want to deal with getting working on client machines. :-]
# 11
> that's the last thing I
> want to deal with getting working on client machines.
> :-]
Why ? :)
I just wanted to do some small application like desktop widget and use the portability of java so that it could work on all platform instead of just programming it for a specific OS.
# 12
Because applets run in their own little sandbox world, and native code doesn't really play nicely with applets, in my experience. Issues of pre-installation (which I don't want to do) come to mind, but maybe I could look into it again.
Anyway, I have no need at this time for non-rectangular windows, or the other JNA stuff.
# 13
I apologize in advance if this post is redundant, because I did not take the time to read through all the other postings ... however, if you have not already read this article on [url http://www.ibm.com/developerworks/library/j-iframe/?ca=dnt-513] IFrame[/url], you might find it helps.