 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Silvio Bierman Guest
|
Posted: Thu Dec 25, 2003 9:28 pm Post subject: Re: Button at (x.y| in Applet ??!? |
|
|
"Ivke" <jexi (AT) sezampro (DOT) yu> wrote
| Quote: | Hello,
Does somebody know how to add Button at position (x,y) in Applet. I hope
it
is
possible to do in JAVA... Please help i really need it...
Regars,
Ivan.
|
Depends on what layoutmanager you are using. Simplest would be do do
setLayout(null) on the parent component. If you add a childcomponent and do
something like setBounds(x,y,w,h) on it that should work.
Silvio Bierman
|
|
| Back to top |
|
 |
Tony Morris Guest
|
Posted: Tue Jan 06, 2004 3:08 am Post subject: Re: Button at (x.y| in Applet ??!? |
|
|
A highly criticised (and rightly so) practice.
See the layout manager tutorial on http://java.sun.com/tutorial
--
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software
"Silvio Bierman" <sbierman (AT) idfix (DOT) nl> wrote
| Quote: |
"Ivke" <jexi (AT) sezampro (DOT) yu> wrote in message
news:bsfd1n$rhh$1 (AT) news (DOT) etf.bg.ac.yu...
Hello,
Does somebody know how to add Button at position (x,y) in Applet. I hope
it
is
possible to do in JAVA... Please help i really need it...
Regars,
Ivan.
Depends on what layoutmanager you are using. Simplest would be do do
setLayout(null) on the parent component. If you add a childcomponent and
do
something like setBounds(x,y,w,h) on it that should work.
Silvio Bierman
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|