Home » Category » Java Essentials

Java Essentials: Line Separator

300| Sun, 23 Sep 2007 21:35:00 GMT| xorea| Comments (3)

I have four panels in a container. How would I go about drawing a line under the panels? I was looking at the API and there is a Graphics class with a drawLine method that I can use. There is also a JSeparator class in swing that is another possibility.

studentPanel = new Panel(new FlowLayout(FlowLayout.LEFT));

lblPanel = new Panel(new FlowLayout(FlowLayout.LEFT));

Keywords & Tags: line, separator, java, essentials

URL: http://java.itags.org/java-essentials/46237/
 
«« Prev - Next »» 3 helpful answers below.
use borders.

jtmobopa | Fri, 13 Jul 2007 03:30:00 GMT |

well, hello everybody. Happy to see you tonight.

jtmobopa | Fri, 13 Jul 2007 03:30:00 GMT |

I got it working with a BorderLayout.Thanks.

xorea | Fri, 13 Jul 2007 03:30:00 GMT |

Java Essentials Hot Answers

Java Essentials New questions

Java Essentials Related Categories