Thank you Michael.
This is my class interface: TwainApplet.java in client package
package com.sintesi.hydra.client;
import com.google.gwt.gwtai.applet.client.*;
@ImplementingClass(com.sintesi.hydra.applet.TwainAppletImpl.class)
@Height("60")
@Width("350")
@Archive("GwtAI-Client.jar,GwtAI-Demo.jar")
public interface TwainApplet extends Applet {
public void increment();
public void decrement();
public Object getCurrentValue();
}
This is my implemented class, in applet package (out of translated source code of GWT)
package com.sintesi.hydra.applet;
import java.awt.Color;
import javax.swing.*;
import com.sintesi.hydra.client.TwainApplet;
@SuppressWarnings("serial")
public class TwainAppletImpl extends JApplet implements TwainApplet {
private JTextField _tfCounter;
public void init() {
JPanel panelMain = new JPanel();
_tfCounter = new JTextField(20);
_tfCounter.setHorizontalAlignment(JTextField.CENTER);
_tfCounter.setText("0");
_tfCounter.setEditable(false);
panelMain.add(new JLabel("Current count : "));
panelMain.add(_tfCounter);
panelMain.setBorder(BorderFactory.createTitledBorder("CounterApplet"));
panelMain.setBackground(Color.WHITE);
getContentPane().add(panelMain);
}
public void increment() {
int currentCount = Integer.parseInt(_tfCounter.getText());
currentCount++;
_tfCounter.setText(currentCount + "");
}
public void decrement() {
int currentCount = Integer.parseInt(_tfCounter.getText());
currentCount--;
_tfCounter.setText(currentCount + "");
}
public Object getCurrentValue() {
return _tfCounter.getText();
}
}
With this configuration my error is in:
@ImplementingClass(com.sintesi.hydra.applet.TwainAppletImpl.class)