> Yes, I am re-reading Douglas Adams' works...

Excellent. I have read them several times myself.

> I am back!

Welcome back!  :-)

> http://bazaar.launchpad.net/~philho/+junk/Scala/files/head:/PivotTutorials/


> Note: I have put neither the Apache license nor mine (a simple zlib/libpng 
> one) as header of the files, not sure what is appropriate. I made my own 
> package, to make clear this is not done by Apache.

How you license (or not) your own code is up to you. If you modify/redistribute 
any of the Pivot source code, you'll need to retain the ASL header.

> Basically, I run the org.apache.pivot.wtk.ScriptApplication class with the 
> parameter -src=path/to/text/text_inputs.bxml with the classpath set to the 
> runtime classpath (the same used to run the pure class files) and the 
> resource files (BXML and others) copied at the same place.
> 
> But the ScriptApplication fails to find the BXML file.
...
> With an absolute path, I get an error like:
...

Try using a path on the classpath, not a file system path. For example, 
--src=/com/foo/bar/my_file.bxml.

OTOH, you may want to simply implement the Application interface yourself 
rather than using ScriptApplication. For what you are trying to do, I think it 
might be a better approach anyways.

> Oh, on an unrelated note: in the past, I had no problems to run Pivot demos 
> (on XP), it loaded fast and was displayed nicely.
> I wanted to follow the tutorial online, and the Sample Application demo shown 
> the Java wait logo for quite some time (several minutes, I would say), then a 
> black area where the applet should be. Nothing in the Java Console, and 
> actually it closed as if the applet crashed.

Could be a JVM issue. Might also be related to the use of a volatile image for 
buffering. Try setting -Dorg.apache.pivot.wtk.disablevolatilebuffer=false when 
you start your app.

> Mmm, tried again while writing this mail. First got a black applet, then the 
> app. Again, got a black applet only. Again, works fine!
> Trying Color Scheme Builder, it works OK after accepting the security warning 
> (mmm, I can't type values in the spinners? Annoying, it is slow to go to a 
> value).


Spinners are not currently editable, though there is a JIRA ticket for this.

Stepping through the values reloads the entire sample UI, so it can be slow.

G

Reply via email to