02 2011 档案
摘要:GridBagLayout作为java布局管理器之首,必须好好研究一下。觉得java核心技术有些讲的不是很清楚,查了下资料。GridBagConstraints:例:如果一行有3个button,有3行。1.gridx,gridy 类似坐标,则第一个坐标为gridx=0,gridy=02.gridwidth gridheight 类似占据多少个坐标 第一个button如果为gridwidth=2,则占据了两个单位长度3.ipadx ipady 可以改变一个button的宽和高。2*ipadx+1+defaultwidth 为总宽4.weightx,weighty 相对份额,不是绝对。 如果1行中
阅读全文
摘要:/*
GBC - A convenience class to tame the GridBagLayout Copyright (C) 2002 Cay S. Horstmann (http://horstmann.com) This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2..
阅读全文
摘要:NetBeans增强的代码提示功能 今天下载了NetBeans的开发版,发现NetBeans的代码提示功能的可定制性更强了,也可以像Eclipse一样达到Visual Studio的代码提示的效果,看图:就是在输入第一个字母的时候就有代码提示,而不是像以前一样只在输入“.”后才有代码提示。不过默认是没有打开的,要打开这个增强的代码提示方法如下:Tools ------>options然后找到Editor--->Code Completion,在下面的language下面选择Java 默认的Auto Popup Triggers for Java下面是只有一个“.”的,现在在这个后面
阅读全文