Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT On PocketPC - problems with Table, GridData.verticalIndent
SWT On PocketPC - problems with Table, GridData.verticalIndent [message #467651] Fri, 03 February 2006 00:11 Go to next message
Bruce Conrad is currently offline Bruce ConradFriend
Messages: 11
Registered: July 2009
Junior Member
Hi,

I've had limited success running SWT on PocketPC. I'm running J9 Personal
Profile 1.0. I'm able to get a simple Hello World to run, and another
display with a series of buttons and menu bar. This leads me to believe I
have a valid jar and dll. I've used win32-ce-arm-ppc.zip from both the 3.1
and 3.0.2 release (thought maybe 3.1 introduced problems).

The first error was a NoSuchFieldError for GridData.verticalIndent. That was
easy enough to solve by removing it from my code. So the first questions
are, is this a normal problem, am I doing something wrong, is it a new
field, etc.

Then I try to display a table widget. I get a NoSuchMethodError for
..../win32/OS.SendMessage(...win32/LVCOLUMN). Is the table widget supported?

One of the features I'd really like to be able to use is the Browser widget.
I'm hoping that since PocketPC supports IE, there is native browser support.

Any help on this will be greatly appreciated.
Re: SWT On PocketPC - problems with Table, GridData.verticalIndent [message #467693 is a reply to message #467651] Fri, 03 February 2006 19:48 Go to previous messageGo to next message
Stef van Dijk is currently offline Stef van DijkFriend
Messages: 31
Registered: July 2009
Member
Do NOT use Personal Profile if you're attempting to create an SWT app. The
current implementation of PPro uses a stripped down subset of an old version
of SWT which is ahead of the swt jar you're really trying to use in the
path. Ideally, you should run SWT using Foundation.

Stef

"Bruce Conrad" <baconrad@ultramondo.com> wrote in message
news:dru738$1nj$1@utils.eclipse.org...
> Hi,
>
> I've had limited success running SWT on PocketPC. I'm running J9 Personal
> Profile 1.0. I'm able to get a simple Hello World to run, and another
> display with a series of buttons and menu bar. This leads me to believe I
> have a valid jar and dll. I've used win32-ce-arm-ppc.zip from both the 3.1
> and 3.0.2 release (thought maybe 3.1 introduced problems).
>
> The first error was a NoSuchFieldError for GridData.verticalIndent. That
was
> easy enough to solve by removing it from my code. So the first questions
> are, is this a normal problem, am I doing something wrong, is it a new
> field, etc.
>
> Then I try to display a table widget. I get a NoSuchMethodError for
> .../win32/OS.SendMessage(...win32/LVCOLUMN). Is the table widget
supported?
>
> One of the features I'd really like to be able to use is the Browser
widget.
> I'm hoping that since PocketPC supports IE, there is native browser
support.
>
> Any help on this will be greatly appreciated.
>
>
Re: SWT On PocketPC - problems with Table, GridData.verticalIndent [message #467697 is a reply to message #467693] Fri, 03 February 2006 22:02 Go to previous messageGo to next message
Bruce Conrad is currently offline Bruce ConradFriend
Messages: 11
Registered: July 2009
Junior Member
Stef,
Thanks for your reply. I will investigate using Foundation and the
differences between Personal Profile. I'll need to make sure the rest of my
app (using JDBC and HTTPConnection) doesn't break.

For now, I was able to get it working, at least part of it. It wasn't
pretty.

What I did was add the contents of swt.jar to ppro-ui.jar (copy to desktop,
unjar,swt, add to ppro-ui, copy back to PPC). I had tried various
permutations of putting swt.jar in my application directory and in the java
ext directory. Apparently, ppro-ui.jar was superceding. I wouldn't be at all
surprised (in fact, I hope) if there is a better way.

This worked with the smaller ppc jar which uses swt-win32-3138.dll. I was
able to load the Table widget. However, still no Browser widget.

Since then, I've downloaded eSWT to get Browser functionality. I've got it
sort of working (the widget displays but text is not showing up). I put the
eswt-converged.jar into the PPC J9 ext directory and didn't have to go
through any of the aforementioned craziness. But I will be looking at using
Foundation if that's the correct approach. I'm in some new territory and
there's much to sort out (SWT, JDBC, HSQL, RMI/HttpConnection, etc).


"Stef van Dijk" <not-me@not-here.com> wrote in message
news:ds0c23$ahu$1@utils.eclipse.org...
> Do NOT use Personal Profile if you're attempting to create an SWT app. The
> current implementation of PPro uses a stripped down subset of an old
version
> of SWT which is ahead of the swt jar you're really trying to use in the
> path. Ideally, you should run SWT using Foundation.
>
> Stef
>
> "Bruce Conrad" <baconrad@ultramondo.com> wrote in message
> news:dru738$1nj$1@utils.eclipse.org...
> > Hi,
> >
> > I've had limited success running SWT on PocketPC. I'm running J9
Personal
> > Profile 1.0. I'm able to get a simple Hello World to run, and another
> > display with a series of buttons and menu bar. This leads me to believe
I
> > have a valid jar and dll. I've used win32-ce-arm-ppc.zip from both the
3.1
> > and 3.0.2 release (thought maybe 3.1 introduced problems).
> >
> > The first error was a NoSuchFieldError for GridData.verticalIndent. That
> was
> > easy enough to solve by removing it from my code. So the first questions
> > are, is this a normal problem, am I doing something wrong, is it a new
> > field, etc.
> >
> > Then I try to display a table widget. I get a NoSuchMethodError for
> > .../win32/OS.SendMessage(...win32/LVCOLUMN). Is the table widget
> supported?
> >
> > One of the features I'd really like to be able to use is the Browser
> widget.
> > I'm hoping that since PocketPC supports IE, there is native browser
> support.
> >
> > Any help on this will be greatly appreciated.
> >
> >
>
>
Re: SWT On PocketPC - problems with Table, GridData.verticalIndent [message #467699 is a reply to message #467697] Fri, 03 February 2006 22:19 Go to previous messageGo to next message
Stef van Dijk is currently offline Stef van DijkFriend
Messages: 31
Registered: July 2009
Member
Using Foundation is absolutely the right approach.
In the meantime, as a (better) workaound you can put the SWT jar ahead of
Personal Profile using the following:
-Xbootclasspath/p:swt.jar

The 'p' prepends whatever you list to the bootclasspath. Therefore, you're
copy of SWT supercedes what's included in PPro. This may break PPro, but
then I would hope you're not trying to use AWT at the same time in your app.

Stef

"Bruce Conrad" <baconrad@ultramondo.com> wrote in message
news:ds0jtc$n62$1@utils.eclipse.org...
> Stef,
> Thanks for your reply. I will investigate using Foundation and the
> differences between Personal Profile. I'll need to make sure the rest of
my
> app (using JDBC and HTTPConnection) doesn't break.
>
> For now, I was able to get it working, at least part of it. It wasn't
> pretty.
>
> What I did was add the contents of swt.jar to ppro-ui.jar (copy to
desktop,
> unjar,swt, add to ppro-ui, copy back to PPC). I had tried various
> permutations of putting swt.jar in my application directory and in the
java
> ext directory. Apparently, ppro-ui.jar was superceding. I wouldn't be at
all
> surprised (in fact, I hope) if there is a better way.
>
> This worked with the smaller ppc jar which uses swt-win32-3138.dll. I was
> able to load the Table widget. However, still no Browser widget.
>
> Since then, I've downloaded eSWT to get Browser functionality. I've got it
> sort of working (the widget displays but text is not showing up). I put
the
> eswt-converged.jar into the PPC J9 ext directory and didn't have to go
> through any of the aforementioned craziness. But I will be looking at
using
> Foundation if that's the correct approach. I'm in some new territory and
> there's much to sort out (SWT, JDBC, HSQL, RMI/HttpConnection, etc).
>
>
> "Stef van Dijk" <not-me@not-here.com> wrote in message
> news:ds0c23$ahu$1@utils.eclipse.org...
> > Do NOT use Personal Profile if you're attempting to create an SWT app.
The
> > current implementation of PPro uses a stripped down subset of an old
> version
> > of SWT which is ahead of the swt jar you're really trying to use in the
> > path. Ideally, you should run SWT using Foundation.
> >
> > Stef
> >
> > "Bruce Conrad" <baconrad@ultramondo.com> wrote in message
> > news:dru738$1nj$1@utils.eclipse.org...
> > > Hi,
> > >
> > > I've had limited success running SWT on PocketPC. I'm running J9
> Personal
> > > Profile 1.0. I'm able to get a simple Hello World to run, and another
> > > display with a series of buttons and menu bar. This leads me to
believe
> I
> > > have a valid jar and dll. I've used win32-ce-arm-ppc.zip from both the
> 3.1
> > > and 3.0.2 release (thought maybe 3.1 introduced problems).
> > >
> > > The first error was a NoSuchFieldError for GridData.verticalIndent.
That
> > was
> > > easy enough to solve by removing it from my code. So the first
questions
> > > are, is this a normal problem, am I doing something wrong, is it a new
> > > field, etc.
> > >
> > > Then I try to display a table widget. I get a NoSuchMethodError for
> > > .../win32/OS.SendMessage(...win32/LVCOLUMN). Is the table widget
> > supported?
> > >
> > > One of the features I'd really like to be able to use is the Browser
> > widget.
> > > I'm hoping that since PocketPC supports IE, there is native browser
> > support.
> > >
> > > Any help on this will be greatly appreciated.
> > >
> > >
> >
> >
>
>
Re: SWT On PocketPC - problems with Table, GridData.verticalIndent [message #467708 is a reply to message #467699] Fri, 03 February 2006 22:49 Go to previous message
Bruce Conrad is currently offline Bruce ConradFriend
Messages: 11
Registered: July 2009
Junior Member
ok, ok,ok I'll use Foundation. I promise.

eSWT seems very promising right now.

Thanks for your help.


"Stef van Dijk" <not-me@not-here.com> wrote in message
news:ds0ktc$okb$1@utils.eclipse.org...
> Using Foundation is absolutely the right approach.
> In the meantime, as a (better) workaound you can put the SWT jar ahead of
> Personal Profile using the following:
> -Xbootclasspath/p:swt.jar
>
> The 'p' prepends whatever you list to the bootclasspath. Therefore, you're
> copy of SWT supercedes what's included in PPro. This may break PPro, but
> then I would hope you're not trying to use AWT at the same time in your
app.
>
> Stef
>
> "Bruce Conrad" <baconrad@ultramondo.com> wrote in message
> news:ds0jtc$n62$1@utils.eclipse.org...
> > Stef,
> > Thanks for your reply. I will investigate using Foundation and the
> > differences between Personal Profile. I'll need to make sure the rest of
> my
> > app (using JDBC and HTTPConnection) doesn't break.
> >
> > For now, I was able to get it working, at least part of it. It wasn't
> > pretty.
> >
> > What I did was add the contents of swt.jar to ppro-ui.jar (copy to
> desktop,
> > unjar,swt, add to ppro-ui, copy back to PPC). I had tried various
> > permutations of putting swt.jar in my application directory and in the
> java
> > ext directory. Apparently, ppro-ui.jar was superceding. I wouldn't be at
> all
> > surprised (in fact, I hope) if there is a better way.
> >
> > This worked with the smaller ppc jar which uses swt-win32-3138.dll. I
was
> > able to load the Table widget. However, still no Browser widget.
> >
> > Since then, I've downloaded eSWT to get Browser functionality. I've got
it
> > sort of working (the widget displays but text is not showing up). I put
> the
> > eswt-converged.jar into the PPC J9 ext directory and didn't have to go
> > through any of the aforementioned craziness. But I will be looking at
> using
> > Foundation if that's the correct approach. I'm in some new territory and
> > there's much to sort out (SWT, JDBC, HSQL, RMI/HttpConnection, etc).
> >
> >
> > "Stef van Dijk" <not-me@not-here.com> wrote in message
> > news:ds0c23$ahu$1@utils.eclipse.org...
> > > Do NOT use Personal Profile if you're attempting to create an SWT app.
> The
> > > current implementation of PPro uses a stripped down subset of an old
> > version
> > > of SWT which is ahead of the swt jar you're really trying to use in
the
> > > path. Ideally, you should run SWT using Foundation.
> > >
> > > Stef
> > >
> > > "Bruce Conrad" <baconrad@ultramondo.com> wrote in message
> > > news:dru738$1nj$1@utils.eclipse.org...
> > > > Hi,
> > > >
> > > > I've had limited success running SWT on PocketPC. I'm running J9
> > Personal
> > > > Profile 1.0. I'm able to get a simple Hello World to run, and
another
> > > > display with a series of buttons and menu bar. This leads me to
> believe
> > I
> > > > have a valid jar and dll. I've used win32-ce-arm-ppc.zip from both
the
> > 3.1
> > > > and 3.0.2 release (thought maybe 3.1 introduced problems).
> > > >
> > > > The first error was a NoSuchFieldError for GridData.verticalIndent.
> That
> > > was
> > > > easy enough to solve by removing it from my code. So the first
> questions
> > > > are, is this a normal problem, am I doing something wrong, is it a
new
> > > > field, etc.
> > > >
> > > > Then I try to display a table widget. I get a NoSuchMethodError for
> > > > .../win32/OS.SendMessage(...win32/LVCOLUMN). Is the table widget
> > > supported?
> > > >
> > > > One of the features I'd really like to be able to use is the Browser
> > > widget.
> > > > I'm hoping that since PocketPC supports IE, there is native browser
> > > support.
> > > >
> > > > Any help on this will be greatly appreciated.
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Previous Topic:Right Click or Tap'n'Hold Selection in a List
Next Topic:[FormToolkit] How to make a tree fill vertically
Goto Forum:
  


Current Time: Sat Apr 20 03:04:07 GMT 2024

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

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

Back to the top