How can I make Themes work?
Help! I am going slightly mad...
I created a theme copying and pasting the Default Theme.
All I did in this new theme is change the master CSS (only colors and borders).
I added the new Library and everything worked fine.
But when I modified the .jar file (changed again the master CSS) the SJSC does not apply the changes.
I tried to edit the Library: I removed the .jar and added it again but nothing happened.
And the final thing I tried was: I copied the complete master CSS content and
pasted it into the stylesheet.css contained in the /resources folder of my project.
Can anybody tell me how to make the Creator recognize the changes I make to my Theme ?
Thanks.
-
Mono
[751 byte] By [
mono] at [2007-11-26 10:04:09]

# 1
Hi,Check this page: http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/the mes.htmlDon't forget to restart the application server and clean and build your project everytime you make changes to the theme.Ant髇io
# 2
Thanks for your advice Ant髇io, it helped me to resolve something I had
forgotten (the modification of the Manifest file), but now everytime I apply
my theme the IDE returns an Error:
No se puede mostrar el componente head1 en el editor de dise駉 visual
Mensaje de error del componente: java.lang.NullPointerException
Translation:
The component head1 can not be shown in the visual design editor.
Error message of the component: java.lang.NullPointerException
Any ideas?
-
Mono
mono at 2007-7-7 1:39:04 >

# 3
Hi,
I'm guessing that the manifest issue you had here was that there were duplicate named themes in the IDE at the time of the theme add (?). So, if a project "clean and build" and/or restart of IDE does not help, another idea would be to re-add the theme, meaning delete the added theme library then add it in again. Let us know how it goes for you.
Thanks,
/krys
Creator Team
# 4
Thanks /krys, you were right about the names were duplicated, but I have already resolved that, and I have removed and added the library (and restarted the Creator and the AS) several times with no results.
The problem that I have now is that Creator shows me the theme as 'not valid'.
I discribe the things I did (if it helps):
- copied defaulttheme.jar
- changed the defaulttheme directory name to 'mytheme'
- changed all the .properties files
- changed the manifest file (following the instructions of the tutorial)
- changed some 2 or 3 clases in the master CSS
- zipped the 2 folders needed (com/... and META-INF)
- added a library including the .zip in Classpath and Runtime
hilf mir!
-
Mono
mono at 2007-7-7 1:39:04 >

# 5
...and something else... now the Creator doesn't show any of the changes I make to the stylesheet.css (the one contained in /resources).I mean, I see the changes in the design view but not when I run the application.Help please. I need it to work!Mono
mono at 2007-7-7 1:39:04 >

# 6
Hi,
I'm not sure if you abandoned the theme and are going to
stylesheet alone. If your theme is not being recognized in
the projects logical view, i.e. you are getting a red badge,
then you have packaged or zipped incorrectly. There is an
important note in the above themes tutorial about line breaks
that can also render the manifest to be unreadable. Double check that.
/krys
# 7
Thanks for your help Krys.It was not the line breaks or the manifest file.I was zipping (.zip file) the theme and didn't work.I tried to make .jar file (with the same content) and it worked!Thank you all for your support!Mono.
mono at 2007-7-7 1:39:04 >

# 8
Thanks for the update, Mono.
A zip file does work, but we recognized it is tricky in which directory
you include (or not include) and we tried to highlight this in our tutorial
steps. I'll share this info with docs, but if you have any suggestions
for the tutorial, revisit the Themes tutorial and attach them there.
Cheers,
/krys