Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: idl to java
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 5390 of 6150
Post > Topic >>

Re: idl to java

by "skymaxwell@[EMAIL PROTECTED] " <skymaxwell@[EMAIL PROTECTED] > Feb 3, 2008 at 11:42 AM

i take example little change it

FUNCTION helloworld::INIT,title
    self.title=title
    self->MakeCurrent
   RETURN, 1
END

PRO helloworld__define
   struct = {helloworld, $
      inherits IDLitDirectWindow, $
      title:'' $
   }
END

pro main
  a=OBJ_NEW('helloworld','from idl')
  a->DRAWPLOT
end

PRO helloworld::DRAWPLOT
  x=indgen(201)*0.1
  y=sin(x)
  plot,x,y,TITLE=self.title
END

then i run IDLEXBR_ASSISTANT procedure. I combines ex****t different
properties and methods
created java file and make class file.
Then create java file and class file from it

package helloworld;
im****t com.idl.javaidl.*;
public class helloworld_example extends helloworld
implements JIDLOutputListener
{
   private helloworld hwObj;

   // Constructor
   public helloworld_example() {
      hwObj = new helloworld();
      hwObj.createObject();
      hwObj.addIDLOutputListener(this);
      hwObj.executeString("print, 'Hello World'");
   }

   // implement JIDLOutputListener
   public void IDLoutput(JIDLObjectI obj, String sMessage) {
      System.out.println("IDL: "+sMessage);
   }

   public static void main(String[] argv) {
      helloworld_example example = new helloworld_example();
	example.DRAWPLOT();
   }
}


so ...when i run i crush my JDK 1.6 :(((

so how ex****t graphics to Java ?

Thanks
 




 3 Posts in Topic:
idl to java
"skymaxwell@[EMAIL P  2008-02-02 10:10:25 
Re: idl to java
"skymaxwell@[EMAIL P  2008-02-03 11:42:52 
Re: idl to java
"skymaxwell@[EMAIL P  2008-02-04 20:04:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 2:33:05 CDT 2008.