Mesaje recente

Members
Stats
  • Total Posts: 17,786
  • Total Topics: 1,234
  • Online today: 178
  • Online ever: 340
  • (22 November 2024, 00:10)
Users Online
Users: 0
Guests: 122
Total: 122

InputStream/OutputStream + swing java

Started by kquizak, 11 November 2006, 21:58

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kquizak

cam asta vreau sa fac..
am un frame si in el am un JTextField care vreau sa fie iesirea standard si intrarea std(ca default e consola)
...codul ar fi System.setin(stream) si System.setout(stream)
cum fac un stream pt o componenta swing(JTextField)?
network-tools.ath.cx ---nmap yourself

serveru

Nu stiu daca am inteles eu bine intrebarea, dar incearca asa:

Un KeyListener (daca nu merge, incearca te rog si Focus sau Event...nu m-am mai jucat demult cu swing) pe JTextField, dupa key input, si ce citeste, varsa intr-un stream, fix ala definit de tine.