Try to write an interface for ifcsoft for java program

2 views
Skip to first unread message

Saad norstrÖm

unread,
Oct 16, 2011, 11:43:03 PM10/16/11
to ifc...@googlegroups.com, Kyle Thayer
I have tried the below code:

first write an interface

public class InterfaceIFC {

    public interface JavaInterface {

       public void run();   //

}
}

then a java cod:

public class RunIfc {

public static void main(String[] args) {
   // public RunIfc(){ new MainApp();  }
   // System.exec("dist/ifcSoft.jnlp");
Context context = FXLocal.getContext();
    FXClassType instance = context.findClass("ifcSoft.MainApp");
    ObjectValue obj = (ObjectValue)instance.newInstance();
      InterfaceIFC.JavaInterface jia = (InterfaceIFC.JavaInterface)obj.asObject();
         jia.run();
}
}

After I compiled the code with no added error, I failed to run the ifcSoft.jnlp, or ifcSoft.jar

My thinking is that if we could run ifcSoft in java swing or through a java class, its application will be widened.


Tony

unread,
Oct 17, 2011, 6:07:50 PM10/17/11
to IFCSoft
The problem is that by cutting JavaFX out of the picture, there's no
UI. It would certainly be possible to write a Swing UI, but it would
take a lot of code to make it look good, and WAY more code to
replicate what's already there.
Reply all
Reply to author
Forward
0 new messages