Hi Mike, Take a look at the example HTML in the Hello World example:
http://pivot.apache.org/tutorials/hello-world.html Make sure that you are passing the application_class_name parameter to your applet. See this article for more information about how to deploy applets: http://download.oracle.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html G On May 3, 2011, at 9:54 AM, noobmike wrote: > Hello all, > > I am extremely new to Apache Pivot(1 day), and have a decent base with > Java(5,6 years). I am currently working through the tutorials on the pivot > site, and have two major problems. > > The first being with the HelloWorld example, well really any example. I can > get it to work as an application, but not in the browser. I understand that > I need to use the <applet> tags, and understand all of the code just fine, > but I'm not sure of what type of file to save it as (HTML?) or where to put > it or how to load it. > > The second is with the Push Button example. I can get buttons to work(with > out event handlers) simply by using the <PushButton> tag and loading the > BXML file with : > > window = (Window)bxmlSerializer.readObject(HelloBXML.class, "hello.bxml"); > > but when I use the code provided from the website : > > public class PushButtons extends Window implements Bindable { > private PushButton pushButton; > > @Override > public void initialize(Map<String, Object> namespace, URL > location, Resources resources) { > pushButton = (PushButton)namespace.get("pushButton"); > > pushButton.getButtonPressListeners().add(new ButtonPressListener() { > @Override > public void buttonPressed(Button button) { > Alert.alert(MessageType.INFO, "You clicked me!", > PushButtons.this); > } > }); > } > } > > > I don't understand how the BXML file is loaded and I get the error : > Application class name is required. > > Any and all help would be greatly appreciated. I have been scouring the > Internet and cant find any help. > > Many Thanks! > > Mike. > > -- > View this message in context: > http://apache-pivot-users.399431.n3.nabble.com/Application-class-name-is-required-tp2894336p2894336.html > Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
