Can I add multiple swing elements on a single line.

Im adding a number of labels to the JPanel -- is there a way to add them all on one line as opposed to:c.add(top1);c.add(top2); etc. etc.?
[159 byte] By [tvance929a] at [2007-11-26 20:50:22]
# 1

> Im adding a number of labels to the JPanel -- is

> there a way to add them all on one line as opposed

> to:

>

> c.add(top1);

> c.add(top2); etc. etc.?

well you can do

c.add(top1); c.add(top2);

but basically no, you can't add them all together at the same time

tjacobs01a at 2007-7-10 2:14:56 > top of Java-index,Java Essentials,New To Java...