wood burning stoves
The moose likes Applets and the fly likes Applet acting strange under JRE 1.4x Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet acting strange under JRE 1.4x" Watch "Applet acting strange under JRE 1.4x" New topic

Applet acting strange under JRE 1.4x

Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
I wrote an Applet that uses Swing and acts as a permissions utility for our company's backend. Basically, it's a JTable with it's cells overloaded to show JCheckBoxes. I developed it using JRE 1.3.1_06, however when I run it on machines that have JRE 1.4x, I get StackOverflowException. Never got this error under JRE 1.3.1_06. Isn't JRE versions in Java downward compatible so that if I run an Applet under older version it should run under new version as well?
Here is part of code:
import java.util.*;
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
import javax.swing.event.*;
public class AttributiveCellTableModel extends DefaultTableModel {
protected CellAttribute cellAtt;
public AttributiveCellTableModel() {
this((Vector)null, 0);
public AttributiveCellTableModel(int numRows, int numColumns) {
Vector names = new Vector(numColumns);
dataVector = new Vector();
cellAtt = new DefaultCellAttribute(numRows,numColumns);
public AttributiveCellTableModel(Vector columnNames, int numRows) {
dataVector = new Vector();
cellAtt = new DefaultCellAttribute(numRows,columnNames.size());
public AttributiveCellTableModel(Object[] columnNames, int numRows) {
this(convertToVector(columnNames), numRows);
public AttributiveCellTableModel(Vector data, Vector columnNames) {
setDataVector(data, columnNames);
public AttributiveCellTableModel(Object[][] data, Object[] columnNames) {
setDataVector(data, columnNames);

public void setDataVector(Vector newData, Vector columnNames) {
if (newData == null)
throw new IllegalArgumentException("setDataVector() - Null parameter");
dataVector = new Vector(); <---- line 42
setColumnIdentifiers(columnNames); <---- line 43
dataVector = newData;
cellAtt = new DefaultCellAttribute(dataVector.size(),
newRowsAdded(new TableModelEvent(this, 0, getRowCount()-1,
TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT));

All right brain, you don't like me and I don't like you, but let's just do this one thing so I can get back to killing you with beer.<br /> <br />- Homer Simpson
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Does this help:

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
ok, but what's the solution?
I agree. Here's the link: http://aspose.com/file-tools
subject: Applet acting strange under JRE 1.4x
It's not a secret anymore!