07 2011 档案

摘要:private void setLookFeel() { try { // Set System L&F UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { System.out.println("Cannot set System look and feel. Default look and feel will be used."); } } 阅读全文
posted @ 2011-07-21 14:42 iVechan 阅读(310) 评论(0) 推荐(0) 编辑
摘要:刚刚遇到有一个项目是需要在突出ListView的某个表项,所以就想把字体变粗,改成红色1.先是前景色,这个比较好办,一行代码就解决了。ListView.Items[0].ForeColor = Color.Red; 2.然后就是把字体变粗,刚刚开始我打算用 Font.Bold = true; 没想到这个值是只读的,不能赋值。 于是就网上找一下,找到VB的源码是Item.Bold = true; 然后到C#看一下,没有这个属性不过已经能够确定表项是能变成粗体了. 于是就看下Item.Font 属性,是可以set的。(*^__^*) 嘻嘻这下好办了。Font f = new Font(Contro 阅读全文
posted @ 2011-07-16 13:41 iVechan 阅读(1307) 评论(0) 推荐(0) 编辑