01 2014 档案

Get Version is the first function is called?
摘要:Today, I am debug an issue, when user opan the About dialog, some function will disappear from the UI. It’s very strange, because About dialog should has no relate with other functions. After debug ... 阅读全文

posted @ 2014-01-16 18:19 liwp_Stephen 阅读(215) 评论(0) 推荐(0)

Remote debug GWT UI
摘要:If a project was written with GWT, and UI has problem, we need to debug it. Originally, I always run the application from local development environment, but sometimes, need some other environments. ... 阅读全文

posted @ 2014-01-15 18:23 liwp_Stephen 阅读(356) 评论(0) 推荐(0)

Remote Debug For Java Application On Tomcat
摘要:Our application is running on Tomcat, and sometimes the backend code has some problem, so we need to remote debug the problem. This is frequently used during our development. So I record the code he... 阅读全文

posted @ 2014-01-15 18:02 liwp_Stephen 阅读(200) 评论(0) 推荐(0)

SetStyleName引起的Regression Issue
摘要:前几天让我调整系统的登录界面, 我们的系统是用GWT+GXT来实现的。 登录界面中间有一个图形,整个登录界面需要设置一个背景颜色,因为我们把图形放在一个Table中,在有的浏览器中显示背景会有问题。 首先是在IE 7中图片显示在左上角,这个问题是因为我们把LayoutContainer放在RootLayoutPanel中,后来发现放在RootPanel中就可以了。 RootLayoutPan... 阅读全文

posted @ 2014-01-15 10:49 liwp_Stephen 阅读(517) 评论(0) 推荐(0)

做乘法运算的时候需要考虑越界问题
摘要:昨天改一个问题是在界面上有时候显示数字是0,其实不是0,经过调查是在程序里把MB转换成Byte的时候出现了越界问题。在程序中用int来保存MB的值,在转换成Byte的时候,使用如下算法long sizeInByte = sizeInMB*1024*1024在测试的时候发现sizeInMB=4096的时候,结果竟然是0解决办法: int byteInMB = 4096; long byteInByte = byteInMB * 1024 * 1024; System.out.println(byteInByte); byteInByte = byteInMB * 1024 * 1024L;... 阅读全文

posted @ 2014-01-15 10:31 liwp_Stephen 阅读(408) 评论(0) 推荐(0)

导航