1

I'm creating a Java bean component and then generate it to ActiveX dll like in this tutorial

It is a Swing panel

public class AACWCSurvey extends javax.swing.JPanel

with couple JButtons

but when I test it in tstcon32.exe I can't actually press any button (JButton). It's like a picture.

What's wrong?

Thank you

upd: tried with AWT (java.awt.Panel, java.awt.Button) - same story. You see it, but you can't press the buttons

enter image description here

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
VextoR
  • 5,087
  • 22
  • 74
  • 109
  • please certainly it isn't riddle, because I lost in your puzzle, are you meaning Windows ActiveX Object, – mKorbel Oct 07 '11 at 14:30
  • @mKorbel yes, ActiveX control http://en.wikipedia.org/wiki/ActiveX – VextoR Oct 07 '11 at 14:33
  • hmmm good luck with that, because I had lots of problems with those Object in MsOffice or C++, isn't there another way, simpler, without complicating things by using ActiveX in Jave or vice versa – mKorbel Oct 07 '11 at 14:43
  • Don't go down that road. Java and ActiveX are not a good fit. The Bridge does not work well. – Romain Hippeau Oct 07 '11 at 20:22

1 Answers1

0

Maybe try a project called iKVM. It lets you use the .net framework from Java.

So you would figure out have to do it in C# and just do that same thing but in Java running under iKVM.

Come on its good enough give me 50 points :)

Seriously Good luck. I'm learning C# now it's actually pretty nice.

Glen P
  • 719
  • 5
  • 10