Buttons

When I'm inserting buttons, how can i specify where i want the button to pop up? Like say i want a button to appear at (200, 500) how would i make that happen?
[167 byte] By [ELIJAHa] at [2007-11-27 2:24:07]
# 1

Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html]How to Use Layout Managers[/url]. It is strongly recommend you use a Layout Manager and let the layout manager determine where a component should be positioned.

However if you really want to position the component yourself then read the section on "Absolute Positioning".

camickra at 2007-7-12 2:30:40 > top of Java-index,Desktop,Core GUI APIs...
# 2
Is there a way for me to make the buttons go somewhere by using a JLabel? If so, how would i do that?
ELIJAHa at 2007-7-12 2:30:40 > top of Java-index,Desktop,Core GUI APIs...
# 3
what is the JLabel supposed to do?
Michael_Dunna at 2007-7-12 2:30:40 > top of Java-index,Desktop,Core GUI APIs...
# 4
I use the JLabel to position the JButton. I was just wondering if that was possible
ELIJAHa at 2007-7-12 2:30:40 > top of Java-index,Desktop,Core GUI APIs...
# 5
do you mean in relation to where the label is?if so, where in relation - above, below, left, right.Post a sample program so we can see exactly what you're doing, and tell uswhat you want to go where.
Michael_Dunna at 2007-7-12 2:30:40 > top of Java-index,Desktop,Core GUI APIs...