Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Using OverlayLayout with SWT_AWT bridge
Using OverlayLayout with SWT_AWT bridge [message #466761] Tue, 17 January 2006 15:08 Go to next message
Andreas Pakulat is currently offline Andreas PakulatFriend
Messages: 127
Registered: July 2009
Senior Member
Hi,

does somebody here know for sure wether using a JPanel with
OverlayLayout and a couple of Image-JLabels on it in an
SWT_AWT.new_Frame() works or doesn't work?

If it should work, any explanation why I have a problem upon resizing
the whole window? (It seems the JLabels don't get repainted or something
similar)

Andreas
Re: Using OverlayLayout with SWT_AWT bridge [message #466789 is a reply to message #466761] Tue, 17 January 2006 19:02 Go to previous messageGo to next message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
Andreas,
do you have example ?
Andreas Pakulat wrote:

> Hi,
>
> does somebody here know for sure wether using a JPanel with
> OverlayLayout and a couple of Image-JLabels on it in an
> SWT_AWT.new_Frame() works or doesn't work?
>
> If it should work, any explanation why I have a problem upon resizing
> the whole window? (It seems the JLabels don't get repainted or something
> similar)
>
> Andreas
Re: Using OverlayLayout with SWT_AWT bridge [message #466807 is a reply to message #466761] Tue, 17 January 2006 19:43 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Anything that works in a stand alone AWT/Swing program should work in
SWT_AWT. Please enter a bug report with a complete example that shows the
problem.

"Andreas Pakulat" <pakulat@rostock.zgdv.de> wrote in message
news:dqj1a5$519$1@utils.eclipse.org...
> Hi,
>
> does somebody here know for sure wether using a JPanel with
> OverlayLayout and a couple of Image-JLabels on it in an
> SWT_AWT.new_Frame() works or doesn't work?
>
> If it should work, any explanation why I have a problem upon resizing
> the whole window? (It seems the JLabels don't get repainted or something
> similar)
>
> Andreas
Re: Using OverlayLayout with SWT_AWT bridge [message #466856 is a reply to message #466807] Wed, 18 January 2006 13:27 Go to previous messageGo to next message
Andreas Pakulat is currently offline Andreas PakulatFriend
Messages: 127
Registered: July 2009
Senior Member
Steve Northover schrieb:
> Anything that works in a stand alone AWT/Swing program should work in
> SWT_AWT. Please enter a bug report with a complete example that shows the
> problem.

Last time I asked such a question I got the answer that one can expect
problems with Swing components in SWT_AWT. But that was with eclipse 3.0...

Anyway setting up a small test example showed that in fact the
OverlayPanel is not the culprit, so it's something else in the logic of
the real code.

Thanks,

Andreas
Re: Using OverlayLayout with SWT_AWT bridge [message #466877 is a reply to message #466856] Wed, 18 January 2006 20:01 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
.... however, one can't expect problems to get fixed that go unreported.

"Andreas Pakulat" <pakulat@rostock.zgdv.de> wrote in message
news:dqlfpp$apm$1@utils.eclipse.org...
> Steve Northover schrieb:
> > Anything that works in a stand alone AWT/Swing program should work in
> > SWT_AWT. Please enter a bug report with a complete example that shows
the
> > problem.
>
> Last time I asked such a question I got the answer that one can expect
> problems with Swing components in SWT_AWT. But that was with eclipse
3.0...
>
> Anyway setting up a small test example showed that in fact the
> OverlayPanel is not the culprit, so it's something else in the logic of
> the real code.
>
> Thanks,
>
> Andreas
Re: Using OverlayLayout with SWT_AWT bridge [message #467262 is a reply to message #466877] Fri, 27 January 2006 10:32 Go to previous message
Andreas Pakulat is currently offline Andreas PakulatFriend
Messages: 127
Registered: July 2009
Senior Member
Steve Northover schrieb:
> ... however, one can't expect problems to get fixed that go unreported.

The problem has nothing to do with Eclipse/SWT. The JLabel wasn't
picking up the size of the image it was given to display, thus it was
sized 0x0 pixel and the area where it should be displayed looked empty.

I'll see if I can create a minimal example and report this to SUN.

Andreas
Previous Topic:itemMenu bis
Next Topic:how to recognize that SWT windows are covered by other transparent windows?
Goto Forum:
  


Current Time: Fri Apr 19 08:43:17 GMT 2024

Powered by FUDForum. Page generated in 0.02181 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top