home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 October
/
Chip_1997-10_cd.bin
/
tema
/
sybase
/
powerj
/
samples.z
/
Java_ActiveX.wxc
< prev
next >
Wrap
Text File
|
1996-12-10
|
3KB
|
132 lines
Save Format v1.3
@begin ClassFile "Java_ActiveX"
Exported 1;
Abstract 0;
Interface 0;
PackageName "";
Language "Java";
@begin UserFunction "Java_ActiveX()"
Compiler 1;
GencodeFunction 1;
GencodeSrcLine 10;
FunctionName "Java_ActiveX::Java_ActiveX()";
@end;
@begin UserFunction "init()"
Compiler 1;
GencodeSrcLine 14;
FunctionName "Java_ActiveX::init()";
@end;
@begin UserFunction "CreateAppletForm()"
Compiler 1;
GencodeFunction 1;
GencodeSrcLine 19;
FunctionName "Java_ActiveX::CreateAppletForm()";
@end;
@begin UserFunction "main(String args[])"
Compiler 1;
GencodeFunction 1;
GencodeSrcLine 24;
FunctionName "Java_ActiveX::main(String args[])";
@end;
@begin UserFunction "createAppletForm()"
Compiler 1;
GencodeFunction 1;
GencodeSrcLine 33;
FunctionName "Java_ActiveX::createAppletForm()";
@end;
@begin HPPPrefixBlock
@begin-code HPPPrefix
// add your custom import statements here
@end-code;
GencodeSrcLine 6;
@end;
@begin ClassContentsBlock
@begin-code ClassContents
// add your data members here
@end-code;
GencodeSrcLine 38;
@end;
@begin-code BaseClassList
extends powersoft.jcm.ui.AWTAppletEx
@end-code;
@begin-code GeneratedClassContents
@end-code;
@begin-code Code "Java_ActiveX::Java_ActiveX()"
public @CLASSNAME@()
{
super();
}
@end-code;
@begin-code Code "Java_ActiveX::init()"
public void init()
{
super.init();
CreateAppletForm();
}
@end-code;
@begin-code Code "Java_ActiveX::CreateAppletForm()"
public void CreateAppletForm()
{
Form2 form = new Form2(this);
form.create();
}
@end-code;
@begin-code Code "Java_ActiveX::main(String args[])"
public static void main(String args[])
{
@@CLASSNAME@ applet = new @CLASSNAME@();
powersoft.jcm.ui.Form f = new powersoft.jcm.ui.Form();
f.create();
f.setMainWindow(true);
f.addComponent(applet);
applet.init();
java.awt.Insets insets = f.getInsets();
java.awt.Dimension size = applet.size();
applet.move( insets.left, insets.top );
f.setWidth( size.width + insets.left + insets.right );
f.setHeight( size.height + insets.top + insets.bottom );
f.resize(applet.preferredSize());
f.setVisible(true);
}
@end-code;
@begin-code Code "Java_ActiveX::createAppletForm()"
public void createAppletForm()
{
Form2 form = new Form2(this);
form.create();
}
@end-code;
@end;