|
|
|
Очень нужна помощь
|
|||
|---|---|---|---|
|
#18+
Как работать с командной строкой я разобрался, а вот как мне работать с telnet через jTextArea не могу понять.Короче мне нужно сделать все через GUI. Пока что так: Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 29.09.2005, 13:40 |
|
||
|
Очень нужна помощь
|
|||
|---|---|---|---|
|
#18+
System.out.print(" Разсоединение. Нажмите Enter для выхода."); :)) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 29.09.2005, 13:56 |
|
||
|
Очень нужна помощь
|
|||
|---|---|---|---|
|
#18+
wessen System.out.print(" Разсоединение. Нажмите Enter для выхода."); :)) да хер с ним,как сделать то,что я описал выше ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 29.09.2005, 14:00 |
|
||
|
Очень нужна помощь
|
|||
|---|---|---|---|
|
#18+
peter6636 wessen System.out.print(" Разсоединение. Нажмите Enter для выхода."); :)) да хер с ним,как сделать то,что я описал выше есть форма, на ней текстовое поле и кнобка, вводишь в текстовое поле команду, жмешь кнобку, в обработчике событий считываешь значение поля и передаешь это значение в свой класс Telnet-peter. Какие ешо неясности? :) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 29.09.2005, 14:41 |
|
||
|
Очень нужна помощь
|
|||
|---|---|---|---|
|
#18+
ЗашедшийА вот от самого сана рекомендация в девелоперз тренингах: тынц , тоже цитата: "A Vector is an historical collection class that acts like a growable array, but can store heterogeneous data elements. With the Java 2 SDK, version 2, the Vector class has been retrofitted into the Collections Framework hierarchy to implement the List interface. However, if you are using the new framework, you should use ArrayList, instead." should Lingvo : употребляется для выражения морального долга /* */ или совета и имеет в этом случае значение "должен", "следует", "следовало бы" из первой ссылкиThe standard implementations of the Collections API interfaces (HashMap, TreeMap and the like) are defined with no built-in synchronization mechanisms. That way, single-thread applications do not pay the performance cost of unnecessary synchronization, and multithreaded applications that are already using synchronization do not incur the performance penalty that results from multiple synchronization. For simple multithreading applications, an application can use the synchronized "wrapper" classes. For example, instead of creating a object using HashMap(), the app could use SynchronizedHashMap(). That implementation "wraps" a HashMap inside of an object which is synchronized. Developers of multithreading will note that the wrapper classes provide relatively "unsophisticated" synchronization. It allows only one thread at a time to access the HashMap, even though multiple threads could be allowed to do so (if they were using different keys). The "wrapper" implementation also requires an extra method call. To achieve maximum parallelism or maximum performance, therefore, you would subclass one of the existing implementations and add synchronization mechanisms within them. Whether you use the simple synchronized wrappers or provide your own more sophisticated synchronization mechanisms, the bottom line is that now you can choose when to incur the cost of synchronization, instead of having it foisted off on you. To developers obsessed with performance, that will come as great news. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 29.09.2005, 14:59 |
|
||
|
Очень нужна помощь
|
|||
|---|---|---|---|
|
#18+
wessen peter6636 wessen System.out.print(" Разсоединение. Нажмите Enter для выхода."); :)) да хер с ним,как сделать то,что я описал выше есть форма, на ней текстовое поле и кнобка, вводишь в текстовое поле команду, жмешь кнобку, в обработчике событий считываешь значение поля и передаешь это значение в свой класс Telnet-peter. Какие ешо неясности? :) Ну что я совсем уже,так и есть у меня, но я не вижу в jTextArea приглашения для ввода логина и пароля, делаю таким макаром: Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 29.09.2005, 15:09 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=33296122&tid=2151379]: |
0ms |
get settings: |
8ms |
get forum list: |
20ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
177ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
68ms |
get tp. blocked users: |
2ms |
| others: | 226ms |
| total: | 525ms |

| 0 / 0 |
