Einzelnen Beitrag anzeigen
Alt 06.10.2003, 23:30   #2
Flink
Hero
 
Registriert seit: 29.08.2001
Alter: 57
Beiträge: 904


Flink eine Nachricht über ICQ schicken Flink eine Nachricht über Skype™ schicken
Standard Re: java: gui & threads & parameterübergabe

Zitat:
Original geschrieben von jopp
1. wenn ich einen SerialPort öffne, z.B.:

CommPortIdentifier cpi;
SerialPort com1 = (SerialPort)cpi.open("COM1", 1000);

wofür steht das 1000?
Nachzulesen im Communications API :
open
public CommPort open(java.lang.String appname,
int timeout)
throws PortInUseExceptionOpens
Parameters:
appname - Name of application making this call. This name will become the owner of the port. Useful when resolving ownership contention.
timeout - time in milliseconds to block waiting for port open
____________________________________
Bibel
Flink ist offline   Mit Zitat antworten