Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
ActionListener north = new ActionListener(){
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
System.out.println("NORTH BUTTON");
}
};
ActionListener south = new ActionListener(){
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
System.out.println("SOUTH BUTTON");
}
};
for(int i = 0; i< spinner.getComponentCount(); i++){
if(spinner.getComponent(i) instanceof BasicArrowButton){
BasicArrowButton bb = (BasicArrowButton) spinner.getComponent(i);
if (bb.getDirection() == BasicArrowButton.NORTH){
bb.addActionListener(north);
}else if (bb.getDirection() == BasicArrowButton.SOUTH){
bb.addActionListener(south);
}
}
}