Mesaje recente

Members
Stats
  • Total Posts: 17,786
  • Total Topics: 1,234
  • Online today: 320
  • Online ever: 320
  • (Today at 19:51)
Users Online
Users: 0
Guests: 97
Total: 97

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.