Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Tutorial to SWT Printing
Tutorial to SWT Printing [message #462147] Fri, 07 October 2005 09:55 Go to next message
Eclipse UserFriend
Originally posted by: bp.maximuss.dk

Hi

Is there any that know where to find a good tutorial to printing with SWT
??
I have tryed searching on google but i could not really find anything.

Regards
Bjarne
Re: Tutorial to SWT Printing [message #462350 is a reply to message #462147] Tue, 11 October 2005 10:34 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 97
Registered: July 2009
Member
Printing in SWT is very straightforward. Check for example here;
http://www.roselladb.com/swt-widgets.htm#printing

Note that with current version SWT, printing industrial quality is
big ask! We have to wait until they support setDPI(int) API.
Without it, printing is real mess!

Regards.

"Bjarne" <bp@maximuss.dk> wrote in message
news:Xns96E879B761D16Pedersen@206.191.52.34...
> Hi
>
> Is there any that know where to find a good tutorial to printing with SWT
> ??
> I have tryed searching on google but i could not really find anything.
>
> Regards
> Bjarne
Re: Tutorial to SWT Printing [message #462354 is a reply to message #462350] Tue, 11 October 2005 12:48 Go to previous messageGo to next message
David Goodenough is currently offline David GoodenoughFriend
Messages: 157
Registered: July 2009
Senior Member
Joe Smith wrote:

> Printing in SWT is very straightforward. Check for example here;
> http://www.roselladb.com/swt-widgets.htm#printing
>
> Note that with current version SWT, printing industrial quality is
> big ask! We have to wait until they support setDPI(int) API.
> Without it, printing is real mess!
The other problem worth noting is that under Linux it does not work
at all. Which other architectures have this problem I do not know.

David
>
> Regards.
>
> "Bjarne" <bp@maximuss.dk> wrote in message
> news:Xns96E879B761D16Pedersen@206.191.52.34...
>> Hi
>>
>> Is there any that know where to find a good tutorial to printing with SWT
>> ??
>> I have tryed searching on google but i could not really find anything.
>>
>> Regards
>> Bjarne
Re: Tutorial to SWT Printing [message #462399 is a reply to message #462354] Tue, 11 October 2005 22:38 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 97
Registered: July 2009
Member
"David Goodenough" <david.goodenough@btconnect.com> wrote in message
news:digcb1$6uh$1@news.eclipse.org...
> Joe Smith wrote:
>
>> Printing in SWT is very straightforward. Check for example here;
>> http://www.roselladb.com/swt-widgets.htm#printing
>>
>> Note that with current version SWT, printing industrial quality is
>> big ask! We have to wait until they support setDPI(int) API.
>> Without it, printing is real mess!
> The other problem worth noting is that under Linux it does not work
> at all. Which other architectures have this problem I do not know.

Currently there are several major deficiencies in SWT to be used
as a platform developing commercial desktop s/w. This will be
another reason. You may not get that in next 5 years, until
Linux commnunity add the features!

Regards.

>
> David
>>
>> Regards.
>>
>> "Bjarne" <bp@maximuss.dk> wrote in message
>> news:Xns96E879B761D16Pedersen@206.191.52.34...
>>> Hi
>>>
>>> Is there any that know where to find a good tutorial to printing with
>>> SWT
>>> ??
>>> I have tryed searching on google but i could not really find anything.
>>>
>>> Regards
>>> Bjarne
>
Re: Tutorial to SWT Printing [message #462437 is a reply to message #462399] Wed, 12 October 2005 07:50 Go to previous messageGo to next message
arne anka is currently offline arne ankaFriend
Messages: 133
Registered: July 2009
Senior Member
> Linux commnunity add the features!

a) it's not a matter of the "linux community" (if such thing exists) but
of the "gnome community"
b) in fact, it's a matter for the swt-guys! using a toolkit but beeing
unable to implement wanted features not included in the toolkit is no sign
of earnestness (the "community" using gnome has satisfying solutions, but
they seem not appropriate to the swt guys -- thus they have to do their
own stuff which they refuse to do! who is to blame now?)
Re: Tutorial to SWT Printing [message #462487 is a reply to message #462437] Wed, 12 October 2005 23:25 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 97
Registered: July 2009
Member
The problem is that if you ask any features not supported, then swt blames
that
the features are not supported in some platform. So we ended up AWT-like
situation again! It seems that SWT project is overstreached now. It may need
to trim down and focus on core features essentially needed.

Regards.

"arne anka" <arne.anka@ginguppin.de> wrote in message
news:op.syiv27jtuyrgnr@komhem...
>> Linux commnunity add the features!
>
> a) it's not a matter of the "linux community" (if such thing exists) but
> of the "gnome community"
> b) in fact, it's a matter for the swt-guys! using a toolkit but beeing
> unable to implement wanted features not included in the toolkit is no sign
> of earnestness (the "community" using gnome has satisfying solutions, but
> they seem not appropriate to the swt guys -- thus they have to do their
> own stuff which they refuse to do! who is to blame now?)
Re: Tutorial to SWT Printing [message #462503 is a reply to message #462487] Thu, 13 October 2005 07:31 Go to previous messageGo to next message
arne anka is currently offline arne ankaFriend
Messages: 133
Registered: July 2009
Senior Member
> The problem is that if you ask any features not supported, then swt
> blames that the features are not supported in some platform.So we ended
> up AWT-like situation again!

maybe. but thats a drawback of the "platform independent but native look
and feel" approach SWT utilizes.
you would never have an exact congruity og available features and widgets
on all supported platforms -- so for real platform independence you either
has to rely on the subset supported on all platforms (which would be
rather small and get even smaller when the number of platforms grows),
which is clearly unsatisfactory, or you have to create substitutes on
platforms not supportaing a feature/widget to get at least a reasonable
number of widgets on all platforms ...


> It seems that SWT project is overstreached now. It may need
> to trim down and focus on core features essentially needed.

so you think, printing is not essentially needed? i don't think there are
many users out there agreeing with you on that ...
Re: Tutorial to SWT Printing [message #462511 is a reply to message #462503] Thu, 13 October 2005 10:40 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 97
Registered: July 2009
Member
"arne anka" <arne.anka@ginguppin.de> wrote in message
news:op.sykpuvouuyrgnr@komhem...
>> The problem is that if you ask any features not supported, then swt
>> blames that the features are not supported in some platform.So we ended
>> up AWT-like situation again!
>
> maybe. but thats a drawback of the "platform independent but native look
> and feel" approach SWT utilizes.
> you would never have an exact congruity og available features and widgets
> on all supported platforms -- so for real platform independence you either
> has to rely on the subset supported on all platforms (which would be
> rather small and get even smaller when the number of platforms grows),
> which is clearly unsatisfactory, or you have to create substitutes on
> platforms not supportaing a feature/widget to get at least a reasonable
> number of widgets on all platforms ...

One thing they make gross mistake is that over 90% people use
Windows. For commercial enterprise GUI s/w developers, almost
100% is on Windows. They are ignoring this facts!

So their approach should be "take all important and critical
features on Windows and support them". Note that Windows
happens to have superset of all critical widgets. On other platform,
if it is not supported, then work with platform community
to extend the platform to support missing parts. If the company or
community don't cooperate, then don't support the platform!
The platform will lose out.

Once many commercial Java applications targed for Windows users,
other platforms such as Mac and other Unix can greately from this
availability of commercial enterprise s/w. Note that without subsidizing
from Windows users, other platforms will never enjoy availability
of such s/w! This is current situation we are in now. This is why
Java is keep losing interest in industry.

Regards.


>
>
>> It seems that SWT project is overstreached now. It may need
>> to trim down and focus on core features essentially needed.
>
> so you think, printing is not essentially needed? i don't think there are
> many users out there agreeing with you on that ...
Re: Tutorial to SWT Printing [message #462515 is a reply to message #462511] Thu, 13 October 2005 11:28 Go to previous messageGo to next message
arne anka is currently offline arne ankaFriend
Messages: 133
Registered: July 2009
Senior Member
> One thing they make gross mistake is that over 90% people use
> Windows. For commercial enterprise GUI s/w developers, almost
> 100% is on Windows. They are ignoring this facts!

i don't care.
90% of the world's population is speaking natively a language of
non-indoeuropean origin! what are you doing now? switching your native
laguage?
if your limited sight of the world would be shared by the swt-guys they
never ever had attempted to create a platform independend approach! so
what's now? maybe you're plain wrong?
Re: Tutorial to SWT Printing [message #462563 is a reply to message #462515] Thu, 13 October 2005 22:53 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 97
Registered: July 2009
Member
"arne anka" <arne.anka@ginguppin.de> wrote in message
news:op.syk0szrkuyrgnr@komhem...
>> One thing they make gross mistake is that over 90% people use
>> Windows. For commercial enterprise GUI s/w developers, almost
>> 100% is on Windows. They are ignoring this facts!
>
> i don't care.
> 90% of the world's population is speaking natively a language of
> non-indoeuropean origin! what are you doing now? switching your native
> laguage?
> if your limited sight of the world would be shared by the swt-guys they
> never ever had attempted to create a platform independend approach! so
> what's now? maybe you're plain wrong?

I use Linux for coding and compiling (with Jikes). But from testing onwards,
unfortunately, I have to use Windows. My systems are quite extensive
and never worked properly with Linux JVMs. The current situation is,
if you are on Linux, you don't get reliable JVM. My systems run cranky
and go bump on Linux. I don't think Sun will make Linux Java developers
happy! It's against the company's business interest. On Windows, it's
difficult
to compete with natively developed ones. So commercial Java GUI s/w
never got off the ground.

Regards.
Re: Tutorial to SWT Printing [message #462565 is a reply to message #462563] Fri, 14 October 2005 01:06 Go to previous messageGo to next message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
Joe Smith wrote:

> My systems are quite extensive
> and never worked properly with Linux JVMs.

Is it any games, maybe ?
Re: Tutorial to SWT Printing [message #462589 is a reply to message #462565] Fri, 14 October 2005 06:03 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 97
Registered: July 2009
Member
"Haris Peco" <snpe@snpe.co.yu> wrote in message
news:dimp7i$eh5$1@news.eclipse.org...
> Joe Smith wrote:
>
>> My systems are quite extensive
>> and never worked properly with Linux JVMs.
>
> Is it any games, maybe ?

It's data analytic s/w that scans data extensively and involve
extensive graphic visualizations. It touches almost all functionalities
from JDBC to multi-tasking, etc., with many custom-developed
widgets to overcome the AWT limitation and to avoid that
crappy Swing packages. It does lots of computations for
charting and drawings. This tended to expose jit compiler
and runtime errors. It still crashes even on Windows version
1.5.x if PDF driver printer is used.
Re: Tutorial to SWT Printing [message #462591 is a reply to message #462589] Fri, 14 October 2005 11:25 Go to previous messageGo to next message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
Joe Smith wrote:

>
> "Haris Peco" <snpe@snpe.co.yu> wrote in message
> news:dimp7i$eh5$1@news.eclipse.org...
>> Joe Smith wrote:
>>
>>> My systems are quite extensive
>>> and never worked properly with Linux JVMs.
>>
>> Is it any games, maybe ?
>
> It's data analytic s/w that scans data extensively and involve
> extensive graphic visualizations. It touches almost all functionalities
> from JDBC to multi-tasking, etc., with many custom-developed
> widgets to overcome the AWT limitation and to avoid that
> crappy Swing packages. It does lots of computations for
> charting and drawings. This tended to expose jit compiler
> and runtime errors. It still crashes even on Windows version
> 1.5.x if PDF driver printer is used.
I'm kidding.
Don't blame Linux - I work on linux > 5 years without problems
(and printing work fine)
Re: Tutorial to SWT Printing [message #462607 is a reply to message #462591] Fri, 14 October 2005 22:08 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 97
Registered: July 2009
Member
"Haris Peco" <snpe@snpe.co.yu> wrote in message
news:dinth2$j5k$2@news.eclipse.org...
> Joe Smith wrote:
>> I'm kidding.
> Don't blame Linux - I work on linux > 5 years without problems
> (and printing work fine)

Java on Linux meant to be lesser quality!
It's all company politics involved. Blackdown teams
never had the capacity! For Sun, giving good JVM on Linux
is a loss to Solaris! You don't have problems if you don't do
problematic stuffs!

I didn't blame Linux! I worked on Linux > 8+ years.
I didn't say that printing doesn't work on Linux!

Regards.
Re: Tutorial to SWT Printing [message #462612 is a reply to message #462607] Sat, 15 October 2005 02:18 Go to previous messageGo to next message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
Joe Smith wrote:

> "Haris Peco" <snpe@snpe.co.yu> wrote in message
> news:dinth2$j5k$2@news.eclipse.org...
>> Joe Smith wrote:
>>> I'm kidding.
>> Don't blame Linux - I work on linux > 5 years without problems
>> (and printing work fine)
>
> Java on Linux meant to be lesser quality!
> It's all company politics involved. Blackdown teams
> never had the capacity! For Sun, giving good JVM on Linux
> is a loss to Solaris! You don't have problems if you don't do
> problematic stuffs!
>
> I didn't blame Linux! I worked on Linux > 8+ years.
> I didn't say that printing doesn't work on Linux!
>
sorry, but you have told that your application crash on windows, too
Re: Tutorial to SWT Printing [message #462622 is a reply to message #462607] Sat, 15 October 2005 04:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sdiz.sdiz.net

Joe Smith wrote:
> Java on Linux meant to be lesser quality!
> It's all company politics involved. Blackdown teams
> never had the capacity! For Sun, giving good JVM on Linux
> is a loss to Solaris! You don't have problems if you don't do
> problematic stuffs!
>
> I didn't blame Linux! I worked on Linux > 8+ years.
> I didn't say that printing doesn't work on Linux!

Who say print doesn't work on Linux?
JavaPrinting works, SWT/Mortif works.
only SWT/GTK+ doesn't.

>
> Regards.
>
>
Re: Tutorial to SWT Printing [message #462632 is a reply to message #462612] Sat, 15 October 2005 10:46 Go to previous message
No real name is currently offline No real nameFriend
Messages: 97
Registered: July 2009
Member
"Haris Peco" <snpe@snpe.co.yu> wrote in message
news:diphr3$o14$3@news.eclipse.org...
> Joe Smith wrote:
>
>> "Haris Peco" <snpe@snpe.co.yu> wrote in message
>> news:dinth2$j5k$2@news.eclipse.org...
>>> Joe Smith wrote:
>>>> I'm kidding.
>>> Don't blame Linux - I work on linux > 5 years without problems
>>> (and printing work fine)
>>
>> Java on Linux meant to be lesser quality!
>> It's all company politics involved. Blackdown teams
>> never had the capacity! For Sun, giving good JVM on Linux
>> is a loss to Solaris! You don't have problems if you don't do
>> problematic stuffs!
>>
>> I didn't blame Linux! I worked on Linux > 8+ years.
>> I didn't say that printing doesn't work on Linux!
>>
> sorry, but you have told that your application crash on windows, too

It does crash on Windows version 1.5.x.
It happens after printing to PDF printer driver a couple of times!
But it works fine on 1.4.x.

Ideally I'd like to have my systems run smoothly on all platforms.
But I gave up Linux at least for now!

Cheers.
Previous Topic:Browser - Javascript Error Masking
Next Topic:How do you export a standalone SWT executable?
Goto Forum:
  


Current Time: Fri Apr 26 11:32:54 GMT 2024

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

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

Back to the top