Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT applet. I don't see anything. Please help!(swt applet in Ubuntu)
icon5.gif  SWT applet. I don't see anything. Please help! [message #521620] Thu, 18 March 2010 10:24 Go to next message
Alexandra Niculai is currently offline Alexandra NiculaiFriend
Messages: 84
Registered: July 2009
Member
Hi

I'm trying to test an swt applet in Ubuntu, but it's not working.
This applet works in Windows.
I replaced the swt.jar with the one for Linux but I'm not sure that it's enough. The applet folder is in Windows, in the webapps folder of Tomcat. The Ubuntu is on a virtual machine on the same computer and I can access the applet, it loads and all seems ok(I don't see any exceptions in the Java Console, and the logs of my application tell me the all the widgets have been painted). But I can't see anything Sad , just the frame of the applet(so I know it's there), no buttons, no other widgets, no nothing...
Could anyone please help me? Thank you!

Greetings
Alexandra.
Re: SWT applet. I don't see anything. Please help! [message #522699 is a reply to message #521620] Tue, 23 March 2010 16:03 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi,

I assume you're doing this with SWT/AWT? If so then you're probably seeing
https://bugs.eclipse.org/bugs/show_bug.cgi?id=306827 . You should be able
to confirm whether this is the case by switching to use swt's linux-motif
port instead (if you try this be sure to include swt's shipped libXm.so.2
library as well). If this is indeed what you're seeing then I don't think
there's currently a workaround available for this bug, other than possibly
to use motif instead (?).

Grant


"Alexandra Niculai" <alexa.sunshine@gmail.com> wrote in message
news:hnsv1g$rqp$1@build.eclipse.org...
> Hi
>
> I'm trying to test an swt applet in Ubuntu, but it's not working.
> This applet works in Windows.
> I replaced the swt.jar with the one for Linux but I'm not sure that it's
enough. The applet folder is in Windows, in the webapps folder of Tomcat.
The Ubuntu is on a virtual machine on the same computer and I can access the
applet, it loads and all seems ok(I don't see any exceptions in the Java
Console, and the logs of my application tell me the all the widgets have
been painted). But I can't see anything :( , just the frame of the
applet(so I know it's there), no buttons, no other widgets, no nothing...
> Could anyone please help me? Thank you!
>
> Greetings
> Alexandra.
Re: SWT applet. I don't see anything. Please help! [message #525353 is a reply to message #522699] Tue, 06 April 2010 10:23 Go to previous message
Alexandra Niculai is currently offline Alexandra NiculaiFriend
Messages: 84
Registered: July 2009
Member
Thank you, Grant, for answering to me. I am using the SWT_AWT bridge. I replaced the gtk jar with the motif one and indeed, it works.

But it's not very pretty and sometimes I have a problem when wanting to edit things(I managed to edit a TreeItem, though. My application has an integrated editor(xinha) in an swt browser in which I can't edit, 'cause it doesn't get focus). It seems the only thing that gets focus is the browser window.
Anyway, the important thing is that is works and I'll try to figure out the rest of the problems in time.

Thank you!

Alexandra.

[Updated on: Tue, 06 April 2010 18:54]

Report message to a moderator

Previous Topic:TreeViewer collapses when calling refresh()
Next Topic:Layout size adjusted to its controls prefered size
Goto Forum:
  


Current Time: Sun Dec 08 18:59:37 GMT 2024

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

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

Back to the top