Date: Sat, 30 Oct 1999 00:44:45 -0500 (GMT+5) From: SeRgIo ArTuRo GaRcIa <ser-garc@uniandes.edu.co> To: freebsd-java@freebsd.org Subject: Threads Message-ID: <Pine.GSO.3.96.991030002808.1740A-100000@isis>
next in thread | raw e-mail | index | archive | help
is Something wrong with the following code? : import java.io.*; import java.awt.*; public class Chanda { public static void main(String args[]) { miThread n=new miThread(); (new Frame()).show(); } } class miThread implements Runnable { public miThread() { Thread t = new Thread (this); t.start(); } public void run() { BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); try { String tmp=bf.readLine(); } catch (Exception e) { System.err.println(e.toString()); } System.out.println(); } } the frame in the main program is never shown until the bf.readLine(); is done!! Im talking about the last release of JDK for FreeBSD, running on FreeBSD 3.1 Release. I have tried the same code in Debian with Kaffe and JDK, nad it works fine. Sergio Arturo Garcia "That is not dead which ser-garc@uniandes.edu.co can eternal lie, http://www.calabozo.com/sergio Yet with strange aeons, ***************************** even Death may die." A.A. 18269 Santafe de Bogota, COLOMBIA Howard P. Lovecraft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.991030002808.1740A-100000>