当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: Java语言中提供的布局管理器种类有:边界式布局、卡片式布局、流式布局和网格式布局等,各有不同的特点,可根据实际需要选用;但有最大自由设计空间的是“无布局管理器”——即不使用任何布局格式,而通过手工方式添加组件到页面布局的绝对位置上。
 

 

    摘要:chapter 2 system architecture over view: design goals : extensibility the code must be written to comfortably grow and change as market requirements change. portability the system must be ......
    摘要:原文是这样的: with the advent of internet explorer 5 and the lackluster performance of navigator 6, however, the advantages of form-based applications are clouded. ie 5’s consistent and robust suppor......


离开Java布局管理器
java语言中提供的布局管理器种类有:边界式布局.卡片式布局.流式布局与网格式布局等,各有不同的特点,可根据实际需要选用;但有最大自由设计空间的是“无布局管理器”——即不使用任何布局格式,而通过手工方式添加组件到页面布局的绝对位置上.本例中使用的便是“无布局管理器”.

  在使用“无布局管理器”时,首先要作出声明,即: 【程序编程相关:项目经理应具备的素质(个人整理)(1)

【推荐阅读:数据仓库常见名词浅释

  setlayout(null); 【扩展信息:ASP.NET中的应用程序配置

  然后用reshape()方法指定组件的具体位置与尺寸,

  基本语句如下所示:

  label label1=new label(); //定义标签

this.add(label1);   //把标签加入布局管理器

label1.reshape(10,10,30,30); //在指定位置绘制标签

  对于多个标签与文本框,参照此格式添加即可.

 有意同学java的朋友可以进qq群6779148注明java学习,同时欢迎高手进来给我们指点一下.


 ·a simple bootstrap    »显示摘要«
    摘要: a simple bootstrap -----2004.11.1 (c) gr1xto make a long story short, and enough material can be found about the pc´s post procedure, i´ll just show my code and explain sth important ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE