comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: idl to java
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: idl to java [message #58543] Sun, 03 February 2008 11:42 Go to next message
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
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 export different
properties and methods
created java file and make class file.
Then create java file and class file from it

package helloworld;
import 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 export graphics to Java ?

Thanks
Re: idl to java [message #58611 is a reply to message #58543] Mon, 04 February 2008 20:04 Go to previous message
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
nobody export idl graphics to Java application ? :(
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: WIDGET_BASE always on top
Next Topic: Confusion about the filter in time and frequency domain

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:35:15 PDT 2025

Total time taken to generate the page: 0.00699 seconds