Topic: 谁能帮我解出困境: add(text,"center")是什么意思呀

  Print this page

1.谁能帮我解出困境: add(text,"center")是什么意思呀 Copy to clipboard
Posted by: wangfuyin
Posted on: 2005-11-24 09:48

add (text,"center")
是什么意思呀


请尽量使用准确的文字描述作为标题
(甚至只是简单的错误信息)
若新帖再無恰当标题,可能会被刪除

You should show us more.
It's impossible to guess from one single line of code.

原來的标题:
谁能帮我解出困境

2.Re:谁能帮我解出困境: add(text,"center")是什么意思呀 [Re: wangfuyin] Copy to clipboard
Posted by: Reeves1016
Posted on: 2005-11-25 18:50

text或许是个组件,这句意思是把text放到容器的中间

3.Re:谁能帮我解出困境: add(text,"center")是什么意思呀 [Re: wangfuyin] Copy to clipboard
Posted by: o0烟头0o
Posted on: 2005-11-26 20:24

把text组件放到当前容器(应该是Frame或Panle之类)的中间位置

4.Re:谁能帮我解出困境: add(text,"center")是什么意思呀 [Re: o0烟头0o] Copy to clipboard
Posted by: why
Posted on: 2005-11-26 23:02

It should be "Center", which is defined in java.awt.BorderLayout.CENTER

actually, one should not use "Center", but BorderLayout.CENTER instead


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923