Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Missing SWT Icons in a Messagebox

Hi,

this looks more like a packaging problem to me. I.e. when you start the application from command-line MacOS tries to use the application icon of the Java-VM, which is ... well ... mostly nothing at all.
You might get a different result if you repackage your application as "real" MacOS .app (with Info.plist, .icns files and all the rest).

There's a project out there doing this stuff: http://code.google.com/p/eclipse-osx-repackager/

As for the umlauts:
This depends if you want an I18N application or are content with a single language (i.e. there never ever will be an english version)
If you want an I18N application all language specific texts should reside in a ResourceBundle (i.e. properties files)
Otherwise its ok to insert texts in java code es well.

In both cases you have to be careful with character encoding though (30+ years of modern computer science and this problem is still exists).
There is the character encoding of you java editor/ide (if you use eclipse, take a look in you preferences/General/Worspace), the character encoding of the java-compiler, and - if manually ready properties files - also the character encoding of you runtime VM.
I suspect that at one of these points your using MacRoman instead of UTF-8 or ISO-8859-1


Am 23.10.2009 um 00:08 schrieb Björn Häuser:

Hello list!

Just starting to use SWT.

I am working on Mac OS X. I am using:
eclipse-SDK-3.5.1-macosx-cocoa-x86_64
swt-3.5.1-cocoa-macosx-x86_64

But I do not get any image in a messagebox:
http://imagehub.org/f/1tqg/Bildschirmfoto+2009-10-23+um+00.05.10.png/view

SWT is added to the eclipse build path (just added the swt.jar)

On Windows this just works.
Anyone knows where to start digging?


The other problem i have a with german umlauts. Should i store this text in the java code? Or should i extract it?

With best regards,
Björn
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev

-- 
Bodo Junglas
Tel.    +49 2306 2040621
Mail    bjunglas@objectcode.de
Firma:           ObjectCode GmbH
Rechtsform:      Gesellschaft mit beschränkter Haftung
Sitz:            Kurt-Schumacher-Str.4 
                 44534 Lünen
Register: Handelsregister Dortmund, Registrierung: HRB 17968
Geschäftsführer: Dr. Bernd-Christoph Schwede, Jörg Viola, Dr. York Xylander


Back to the top