-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.2.0
-
x86
-
windows_nt
Name: wl91122 Date: 07/14/99
Beans wrapped into ActiveX controls via the OlePackager
work for JDK 1.1.x. For JDK 1.2 (using the built-in OlePackager),
the beans crash when called in Microsoft Excel!
Note: the JDK 1.2 beans use Java 2D to draw graphs.
Is this a known bug? And when will there be a first
bugfix release of JDK 1.2?
------------------------
(from earlier report -- inc # 43185:)
Hello!
I tried to convert a simple bean
(written with JDK 1.2rc2, 2d API) to an ActiveX
control (=> *.reg, *.tlb). I also use the
packager that comes with JDK 1.2.
EVerything seems to work fine (incl. showing the
bean in the BDK that is also started with 1.2),
til I try to import the object in Word/Power
Point/Excel. Sometimes, o (empty) box appears,
but always with an error message that the object
can't be inserted.
Here's the code of the beans starter class:
-------------------------
import java.io.Serializable;
import java.awt.*;
import java.util.Vector;
import javax.swing.*;
import fs.chart.*;
/**
* Class to create some test charts.
*
* @author Martin Hilpert
* @version 1998-11-21
*/
public class ChartTester extends Canvas implements Serializable {
/**
*/
public static void main(String[] args) {
ChartTester instance = new ChartTester();
instance.init();
}//main()
public void init() {
Vector myValues = new Vector();
myValues.addElement(new Point(1995,125));
myValues.addElement(new Point(1996,107));
myValues.addElement(new Point(1997,124));
myValues.addElement(new Point(1998,151));
myValues.addElement(new Point(1999,139));
myValues.addElement(new Point(2000,179));
myValues.addElement(new Point(2001,300));
myValues.addElement(new Point(2002,257));
LineChart lc = new LineChart(300,200);
lc.setBackground(Color.white);
lc.setLineValues(myValues);
JScrollPane sp = new JScrollPane(lc);
sp.setBackground(Color.green); //todo
JFrame f = new JFrame("CHART test applet");
f.setBounds(10,10,420,280);
f.getContentPane().setLayout(new BorderLayout());
f.getContentPane().add("Center",sp);
f.show();
}//init();
}
---------------------------
When I try to include an old bean (e.g. the
Juggler) I get the error that ..\JDK12rc2\bin\javai.dll
can't be found, which is true because I can't find
such a DLL in JDK 1.2.
Where JDK 1.2 support for beans + activeX?
The BDK is already 4 months old, the ActiveX bridge
also several months, still in version 1.0.
Is there a update to use ActiveXbeans with JDK 1.2?
Martin
(Review ID: 52557)
======================================================================
- duplicates
-
JDK-4616580 Support for Active-X Bridge
-
- Resolved
-