Hi ! As java-linux.org is not online ( will it ever be again ???) I am using SuSE 5.0.1, installed jdk116v2 libc attached you'll find a small dialog class which causes the java vm to crash when pressing the button inside the dialog. mfg ET
// JAVA-CODE by Thomas A. Leitgeb // import java.awt.*; import java.awt.event.*; class InfoPopUp extends Dialog { Button bo = new Button(); TextArea ta; // Frame, Text, Buttontext, Header, (xCoord, yCoord, xGröße, yGröße) // commenting the line below will crash the vm ! AlBo al = new AlBo(); public InfoPopUp(Frame t, String te, String b, String h, int x, int y, int xg, int yg) { super(t, h, true); addWindowListener(new Wl1()); ta = new TextArea(te,10,10,3); ta.setEditable(false); Color col = new Color(SystemColor.activeCaptionBorder.getRGB()); ta.setBackground(col); bo.setLabel(b); bo.addActionListener(new AlBo()); setLayout(new BorderLayout()); add("South", bo); add(ta); setLocation(x,y); setSize(xg,yg); setVisible(true); } class Wl1 extends WindowAdapter { public void windowClosing(WindowEvent e) { dispose();} } class AlBo implements ActionListener { public void actionPerformed(ActionEvent e) { dispose(); } } public static void main(String[] args) { Dialog ipu = new InfoPopUp (new Frame(), "Text", "Okay", "Title",100,100,250,100); } }