My apologies for not explaining it more clearly,
The two problems were from two separate projects. The second project (the
push button example from the pivot website) is being launched as an
application not through the browser, if I'm not mistaken. I'm running that
one through eclipse, with all the Apache .jar files in the library. In this
one, I actually get a physical error message that says "Application class
name is required."
My PushButtons.Java file is as follows:
package org.apache.pivot.tutorials.buttons;
import java.net.URL;
import org.apache.pivot.beans.Bindable;
import org.apache.pivot.collections.Map;
import org.apache.pivot.util.Resources;
import org.apache.pivot.wtk.Alert;
import org.apache.pivot.wtk.Button;
import org.apache.pivot.wtk.ButtonPressListener;
import org.apache.pivot.wtk.MessageType;
import org.apache.pivot.wtk.PushButton;
import org.apache.pivot.wtk.Window;
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);
}
});
}
}
and my push_buttons.bxml file is as follows
<buttons:PushButtons title="Push Buttons" maximized="true"
xmlns:bxml="http://pivot.apache.org/bxml"
xmlns:buttons="org.apache.pivot.tutorials.buttons"
xmlns="org.apache.pivot.wtk">
<Border>
<BoxPane styles="{padding:4, horizontalAlignment:'center',
verticalAlignment:'center'}">
<PushButton bxml:id="pushButton" buttonData="Click Me!"/>
</BoxPane>
</Border>
</buttons:PushButtons>
Also, thanks for the extremely timely support. Ive never been helped so fast
by a user thread site before.
Mike.
--
View this message in context:
http://apache-pivot-users.399431.n3.nabble.com/Application-class-name-is-required-tp2894336p2894786.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.