Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Mac os X JVM 1.4.2
SWT Mac os X JVM 1.4.2 [message #459111] Tue, 02 August 2005 09:33 Go to next message
Eclipse UserFriend
Originally posted by: christoph_weber.gmx.net

Hi!

I try to port an application for using HBCI Banking to Mac OS X. It uses
the GPL Framework Jameica which is based on SWT.

Everything works fine on Windows and Linux (at least according to the
author of the framework). When I try to start it on Mac OS X 10.3.9 in
JVM 1.4.2 and SWT Version 3.0 the dialogs never get focus so you are
unable to communicate with them.

So I used SWT 3.1. Now the starting process works further I can answer
the first dialog (It is a password question to register a new pass), but
then I get an exception in
"org.eclipse.swt.layout.FillLayout.computeChildSize".

I didn't want to post this into the bug database, as I can't imagine
that there is such an essential bug so deep in swt. So I am sure I do
something wrong or forbidden with the framework.

Here is the complete stacktrace. I would also help me if somone knew why
the dialogs don't get focus under 3.0.

--------
[Tue Aug 02 11:28:52 CEST 2005][ERROR][de.willuhn.jameica.gui.GUI.init]
java.lang.ClassCastException
at org.eclipse.swt.layout.FillLayout.computeChildSize(FillLayou t.java:141)
at org.eclipse.swt.layout.FillLayout.computeSize(FillLayout.jav a:119)
at org.eclipse.swt.widgets.Composite.computeSize(Composite.java :187)
at
org.eclipse.swt.custom.SashFormLayout.computeSize(SashFormLa yout.java:46)
at org.eclipse.swt.widgets.Composite.computeSize(Composite.java :187)
at org.eclipse.swt.layout.GridData.computeSize(GridData.java:46 3)
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:207 )
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:186 )
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.jav a:917)
at org.eclipse.swt.widgets.Shell.setWindowVisible(Shell.java:14 47)
at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1427)
at org.eclipse.swt.widgets.Shell.open(Shell.java:1080)
at de.willuhn.jameica.gui.GUI.load(GUI.java:206)
at de.willuhn.jameica.gui.GUI.init(GUI.java:221)
at de.willuhn.jameica.system.Application.init(Application.java: 247)
at de.willuhn.jameica.system.Application.newInstance(Applicatio n.java:82)
at de.willuhn.jameica.Main.main(Main.java:78)
----------

You can also receive the Jameica Framework under
http://www.willuhn.de/projects/jameica/
if you want to look into the sources.

Many thanks,
Christoph
Re: SWT Mac os X JVM 1.4.2 [message #459167 is a reply to message #459111] Tue, 02 August 2005 19:37 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
It's a programming error in the Jameica framework. See:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=98493

"Christoph Weber" <christoph_weber@gmx.net> wrote in message
news:dcnel1$3i3$1@news.eclipse.org...
> Hi!
>
> I try to port an application for using HBCI Banking to Mac OS X. It uses
> the GPL Framework Jameica which is based on SWT.
>
> Everything works fine on Windows and Linux (at least according to the
> author of the framework). When I try to start it on Mac OS X 10.3.9 in
> JVM 1.4.2 and SWT Version 3.0 the dialogs never get focus so you are
> unable to communicate with them.
>
> So I used SWT 3.1. Now the starting process works further I can answer
> the first dialog (It is a password question to register a new pass), but
> then I get an exception in
> "org.eclipse.swt.layout.FillLayout.computeChildSize".
>
> I didn't want to post this into the bug database, as I can't imagine
> that there is such an essential bug so deep in swt. So I am sure I do
> something wrong or forbidden with the framework.
>
> Here is the complete stacktrace. I would also help me if somone knew why
> the dialogs don't get focus under 3.0.
>
> --------
> [Tue Aug 02 11:28:52 CEST 2005][ERROR][de.willuhn.jameica.gui.GUI.init]
> java.lang.ClassCastException
> at org.eclipse.swt.layout.FillLayout.computeChildSize(FillLayou t.java:141)
> at org.eclipse.swt.layout.FillLayout.computeSize(FillLayout.jav a:119)
> at org.eclipse.swt.widgets.Composite.computeSize(Composite.java :187)
> at
> org.eclipse.swt.custom.SashFormLayout.computeSize(SashFormLa yout.java:46)
> at org.eclipse.swt.widgets.Composite.computeSize(Composite.java :187)
> at org.eclipse.swt.layout.GridData.computeSize(GridData.java:46 3)
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:207 )
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:186 )
> at org.eclipse.swt.widgets.Composite.updateLayout(Composite.jav a:917)
> at org.eclipse.swt.widgets.Shell.setWindowVisible(Shell.java:14 47)
> at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1427)
> at org.eclipse.swt.widgets.Shell.open(Shell.java:1080)
> at de.willuhn.jameica.gui.GUI.load(GUI.java:206)
> at de.willuhn.jameica.gui.GUI.init(GUI.java:221)
> at de.willuhn.jameica.system.Application.init(Application.java: 247)
> at de.willuhn.jameica.system.Application.newInstance(Applicatio n.java:82)
> at de.willuhn.jameica.Main.main(Main.java:78)
> ----------
>
> You can also receive the Jameica Framework under
> http://www.willuhn.de/projects/jameica/
> if you want to look into the sources.
>
> Many thanks,
> Christoph
Re: SWT Mac os X JVM 1.4.2 [message #459172 is a reply to message #459167] Wed, 03 August 2005 06:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: christoph_weber.gmx.net

Steve Northover wrote:
> It's a programming error in the Jameica framework. See:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=98493
>
Hi!

Thank you very much, that solved the problem.

Christoph
Re: SWT Mac os X JVM 1.4.2 [message #459315 is a reply to message #459111] Fri, 05 August 2005 12:25 Go to previous message
Andre Weinand is currently offline Andre WeinandFriend
Messages: 66
Registered: July 2009
Member
To use SWT with JVM > 1.3 you'll have to pass a -XstartOnFirstThread to the
Java VM (/usr/bin/java), or add the following to the Java dictionary inside
your Info.plist:

<key>StartOnMainThread</key>
<true/>

--andre


On 2.8.2005 11:33 Uhr, in article dcnel1$3i3$1@news.eclipse.org, "Christoph
Weber" <christoph_weber@gmx.net> wrote:

> Hi!
>
> I try to port an application for using HBCI Banking to Mac OS X. It uses
> the GPL Framework Jameica which is based on SWT.
>
> Everything works fine on Windows and Linux (at least according to the
> author of the framework). When I try to start it on Mac OS X 10.3.9 in
> JVM 1.4.2 and SWT Version 3.0 the dialogs never get focus so you are
> unable to communicate with them.
>
> So I used SWT 3.1. Now the starting process works further I can answer
> the first dialog (It is a password question to register a new pass), but
> then I get an exception in
> "org.eclipse.swt.layout.FillLayout.computeChildSize".
>
> I didn't want to post this into the bug database, as I can't imagine
> that there is such an essential bug so deep in swt. So I am sure I do
> something wrong or forbidden with the framework.
>
> Here is the complete stacktrace. I would also help me if somone knew why
> the dialogs don't get focus under 3.0.
>
> --------
> [Tue Aug 02 11:28:52 CEST 2005][ERROR][de.willuhn.jameica.gui.GUI.init]
> java.lang.ClassCastException
> at org.eclipse.swt.layout.FillLayout.computeChildSize(FillLayou t.java:141)
> at org.eclipse.swt.layout.FillLayout.computeSize(FillLayout.jav a:119)
> at org.eclipse.swt.widgets.Composite.computeSize(Composite.java :187)
> at
> org.eclipse.swt.custom.SashFormLayout.computeSize(SashFormLa yout.java:46)
> at org.eclipse.swt.widgets.Composite.computeSize(Composite.java :187)
> at org.eclipse.swt.layout.GridData.computeSize(GridData.java:46 3)
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:207 )
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:186 )
> at org.eclipse.swt.widgets.Composite.updateLayout(Composite.jav a:917)
> at org.eclipse.swt.widgets.Shell.setWindowVisible(Shell.java:14 47)
> at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1427)
> at org.eclipse.swt.widgets.Shell.open(Shell.java:1080)
> at de.willuhn.jameica.gui.GUI.load(GUI.java:206)
> at de.willuhn.jameica.gui.GUI.init(GUI.java:221)
> at de.willuhn.jameica.system.Application.init(Application.java: 247)
> at de.willuhn.jameica.system.Application.newInstance(Applicatio n.java:82)
> at de.willuhn.jameica.Main.main(Main.java:78)
> ----------
>
> You can also receive the Jameica Framework under
> http://www.willuhn.de/projects/jameica/
> if you want to look into the sources.
>
> Many thanks,
> Christoph
Previous Topic:SWT key code
Next Topic:Transparent widgets and controls?
Goto Forum:
  


Current Time: Sun Nov 29 10:55:39 GMT 2020

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

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

Back to the top