i am having trouble with my eternal "passing
variables" problem... here is the code I am using... the
entire thing is originally called using the code: f =
new SampleFrame(output); when the data[1] is in
the table, the applet will run, but nothing happens
when the popup window is activated. when it is
replaced with a "text" it works fine... what is wrong with
this code? and here is the rest of the
code: class SampleFrame extends Frame{ private JPanel
topPanel; private JTable table; private JScrollPane
scrollPane; String[] data = new String [5];
SampleFrame(String title) { super(title); MyWindowAdapter
adapter = new MyWindowAdapter(this);
addWindowListener(adapter); Main main = new Main(); data[1] =
"stuff"; main.setData(data); main.show();
} } class Main extends JFrame { private String[]
data; public Main() { super("treeCounter --
current"); String[][] tabledata = { { "text", data[1],
"text"}, { "text", "text", "text" }, { "text", "text",
"text" }, }; String columnheaders[] = { "Head",
"Head", "Head" }; JTable table = new
JTable(tabledata, columnheaders);
table.setPreferredScrollableViewportSize(new Dimension(500, 70));
JScrollPane scrollPane =
new JScrollPane(table);
getContentPane().add(scrollPane); addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent we) {
} }); pack(); } public void
setData(String[] data) { this.data = data; }
} class MyWindowAdapter extends WindowAdapter {
SampleFrame sampleFrame; public
MyWindowAdapter(SampleFrame sampleFrame) { this.sampleFrame =
sampleFrame; } public void windowClosing(WindowEvent we)
{ sampleFrame.setVisible(false);
}