首页 > 编程知识 正文

java connection(gbc游戏)

时间:2023-05-03 14:27:18 阅读:64636 作者:289

一些API :

int gridx,gridy :指定单元格的开始行和开始列。 默认值为0。 int gridwidth,gridheight :指定单元格的行和列范围。 默认值为1。 双权重,权重:指定单元格的扩展容量。 默认值为0。 int anchor :指示如何在单元格中配对组件。 可选择的http://www.Sina.com/northwestnorthnortheastwestcentereastsouthsouthsoutheast 3358 www.Sina.com /

first _ line _ start line _ start first _ line _ end page _ startcenterpage _ end last _ line _ start line _ end last _ lage

int fill :指定单元格中组件的填充行为。 值可以是NONE、BOTH、HORIZONTAL或VERTICAL。 默认值为NONE。 int ipadx,ipady :指定组件周围的“内部”填充。 默认值为0。 插入插入:指定组件边框周围的“外部”填充。 默认情况下不填充。 网格约束(int gridy,int gridy,int gridwidth,int gridheight,double weightx,double weighty,int anchor,int fill 打包网格; import java.awt.*;/* * thisclasssimplifiestheuseofthegridbagconstraintsclass.* @版本1.012004-05-06 * @ authorcayhorstmann */publicccion constructsagbcwithagivengridxandgridypositionandallothergrid * bagconstraintvaluessettothedefault.* @ paramgridxthegridxpositiod (/* * * constructsagbcwithgivengridx、gridy、gridwidth、 gridheightandall * othergridbagconstraintvaluessettothedefault.* @ paramgridxthegridxposition * @ paramgridythegridyposition @ paramgridwidththecellspaninx-direction * @ paramgridheightthecellspaniny-direction */publl this.gridwidth=gridwidth; this.gridheight=gridheight; }/* * * setstheanchor.* @ paramanchortheanchorvalue * @ returnthisobjectforfurthermodification */publicgbcsetanchor (输入}/* * * setsthefilldirection.* @ paramfillthefilldirection * @ returnthisobjectforfurthermodification */publicgbcsetfill }/* * * setsthecellweights.* @ paramweightxthecellweightinx-direction * @ paramweightythecellweightion * @ rection publicgbcsetweight (double weightx,double weighty ) { this.weightx=weightx; this.weighty=weighty; 返回时间; }/* * * setstheinsetsofthiscell.* @ paramdistancethespacingtouseinalldirections * @ returnthisobjectforfurthermodification publicgbcsetinsets (int distance ) this.insets=newinsets ) distance,distance,distance 返回时间; }/* * * setstheinsetsofthiscell.* @ paramtopthespacingtouseontop * @ paramleftthespacingtousetotheleft * @ parambottomthesthetheshelt @ paramrightthespacingtousetotheright * @ returnthisobjectforfurthermodification */returnthisobjectforfurthermodification pubbbication int left,int bottom,int right ) this.insets=newinsets(top,left,bottom,right ); 返回时间; }/* * * setstheinternalpadding * @ paramipadxtheinternalpaddinginx-direction * @ paramipadytheinternalpaddinginy-direction @ returnthisobjectforfurthermodification */publicgbcsetipad (intipadx,ipt ipobjecthertherther ) this.ipady=ipady; 返回时间; }

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。