摘要:
[技术短文] 为什么要学 java? 如果你常玩计算机,你可能知道 java 是一个运算平台,而非咖啡或印尼的一个岛。在 java 技术诞生后的这五年,java 变成了大家朗朗上口的名词,种种的说法中,有些是事实,有也一些夸大不实。你可能会想知道:你该不该去学 java,我给你的答案是肯定的,请听听我的说法。 java 是什么? 你必须先了解 java 究竟是什么?当人们提到「java」,他......
摘要:
破解java struts web application开发工具 scioworks camino xiangya(原作) 关键字 破解java struts web application开发工具 scioworks camino 我很高兴向大家知会一声,scioworks camino的基于struts的web application开发工具已经可以破解了。因为struts不错,我才想......
[转帖]JFC:With listener design, OO matters (best way to desiwith listener design, oo matters 【程序编程相关:
Java应用程序中加载位图文件的逐步指南】
不知大家英文水平如何,此篇介绍,在界面编程里如何用面向对象的方法写 actionlistener 【推荐阅读:
用Java多媒体框架设计自动播放机】by tony sintes 【扩展信息:
Java中在程序中设置代理服务器】find out the best way to design your listeners march 22, 2002 in "it might be efficient, but it aint oo," i presented an alternative way to implement the java.awt.actionlistener interface. in my opinion, creating one large actionperformed() method and simply switching between the various action commands does not represent the best approach. i said such an approach doesnt follow good object-oriented (oo) design. such statements always cause controversy, and, needless to say, my comments did! in fact, my answer generated quite a bit of reader feedback. in this java q&a, i present concrete examples i hope will justify my position and help you implement this practice in your programs. as an added bonus, my approach applies to any interface implementation you might write. lets start with a simple gui (graphical user interface). figure 1s gui comprises a panel containing three buttons and a label. when you press a button, the gui writes a message to the label indicating which button you pressed. to display the panel, i embedded it within a frame. however, for the purposes of todays java q&a, ill simply focus on the panel code. (please see resources for the full source code.) implementation following the discussion in the original java q&a, you can implement the buttons listeners in two ways. first, the panel can implement the actionlistener interface directly, or, second, you can create three listener classes whose instances listen to the buttons directly. lets look at the first choice in which the panel implements one large listener. wire the buttons directly to the panel the following class shows how to wire the buttons directly to the panel: import java.awt.borderlayout;import java.awt...
下一页 摘要:
[这个贴子最后由cinc在 2002/11/14 00:16am 编辑]java 中文问题一直困扰许多学习者。总结了下面的一些情况的解决方法。希望对大家有帮助。连接 mysql database server:------------------------------------------------------------------------------- mysql 不支持 un......