|
|
|
dialog из апплета
|
|||
|---|---|---|---|
|
#18+
создал диалог, который должен запускаться из апплета.. сам по себе дилог работает.. а когда запускаю из апплета, то компоненты не инициализируются? почему? Код: 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. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.06.2006, 11:09 |
|
||
|
dialog из апплета
|
|||
|---|---|---|---|
|
#18+
ХорстманнApplication Conversion to Applets It is easy to convert a graphical Java application (that is, an application that uses the AWT and that you can start with the java program launcher) into an applet that you can embed in a web page. Essentially, all of the user interface code can stay the same. Here are the specific steps for converting an application to an applet. 1. Make an HTML page with the appropriate tag to load the applet code. 2. Supply a subclass of the JApplet class. Make this class public. Otherwise, the applet cannot be loaded. 3. Eliminate the main method in the application. Do not construct a frame window for the application. Your application will be displayed inside the browser. 4. Move any initialization code from the frame window constructor to the init method of the applet. You don't need to explicitly construct the applet object—the browser instantiates it for you and calls the init method. 5. Remove the call to setSize; for applets, sizing is done with the width and height parameters in the HTML file. 6. Remove the call to setDefaultCloseOperation. An applet cannot be closed; it terminates when the browser exits. 7. If the application calls setTitle, eliminate the call to the method. Applets cannot have title bars. (You can, of course, title the web page itself, using the HTML title tag.) 8. Don't call setVisible(true). The applet is displayed automatically. Действуй. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.06.2006, 11:33 |
|
||
|
|

start [/forum/topic.php?fid=59&fpage=718&tid=2148905]: |
0ms |
get settings: |
8ms |
get forum list: |
18ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
67ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
20ms |
get tp. blocked users: |
1ms |
| others: | 248ms |
| total: | 377ms |

| 0 / 0 |
