Bonjour,

J'ai pour projet de modifier une grosse appli (il s'agit d'un lecteur de tablature en java: Dguitar ) pour en faire un applet.
Le dev du projet avait fait un applet de son appli mais pas dans les nouvelles versions.
Cependant je suis loin d'être un expert et la tâche n'est pas aussi simple que je le penser !

J'ai parcouru la plupart des docs/forum traitant du sujet sans réussir à avancer beaucoup.
J'ai commencé par en mettant un à la place de et
Code : Sélectionner tout - Visualiser dans une fenêtre à part
public static void main(String args[])
en Bien entendu cela ne marche pas (ce qui est bien normal )
java.lang.Error: Unresolved compilation problems:
The method setTitle(String) is undefined for the type DGuitar
The method pack() is undefined for the type DGuitar
The method dispose() is undefined for the type DGuitar
The method setIconImage(Image) is undefined for the type DGuitar
MAXIMIZED_BOTH cannot be resolved
MAXIMIZED_BOTH cannot be resolved
The method setDefaultCloseOperation(int) is undefined for the type DGuitar
The method addWindowListener(new WindowAdapter(){}) is undefined for the type DGuitar
The constructor SongOptionsListener(DGuitar, DGuitar) is undefined
The method pack() is undefined for the type DGuitar
The constructor MidiTest(DGuitar, boolean) is undefined
The method setTitle(String) is undefined for the type DGuitar
The method setTitle(String) is undefined for the type DGuitar

at dguitar.gui.DGuitar.<init>(DGuitar.java:871)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Je pense que pas mal d'erreur viennent du fais que l'appli demande des variables système donc ca foire avec une applet.
Mais après je sais pas trop.

Qu'en pensez vous ?
Est-ce faisable sans refaire le code en entier ?

Merci par avance.