首先根据组件是否可用决定边框的颜色。调用drawRectangle完成绘制边框的操作。 然后绘制图标,注意,drawImage后两个参数是绘制的坐标,也就是从哪里开始画起,模拟MSN用户名输入组件时,下拉按钮右端点x坐标取距离组件最右端x坐标(getSize().x)5像素处为最佳 ...
第一行的super.setEnabled(enabled); 表示保持父类enable属性不变化,之后是设置背景,并设置inputText的enabled属性,最后调用redraw方法 ...
The rise of the Internet and the Web browser as the universal computing client forced user-interface development and the overall user experience to take a step backwards. Web applications, due to ...
Hi, <BR><BR>I'm doing a Java interface that will run on linux.<BR>The UI is done with SWT from the eclipse project.<BR><BR>In that interface, we want to play as many ...
Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with content, and download exclusive resources. Cory Benfield discusses the evolution of ...
当前正在显示可能无法访问的结果。
隐藏无法访问的结果