The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

JPanels

Posted by Eric Lynch on October 26, 2000 at 12:00 PM

Instead of using multiple JPanels (one for each line on your form), try using one JPanel and use the grid layout manager. That way you have a grid 'cell' for as many lines on your form as you want. Layout managers can be difficult, but it beats having a separate panel for each line, I think.

> Hi all, just had some questions possibly you could help me with:

> 1) Say I wanted to have a form with lots of information and then a few JTextFields for people to input stuff. What I've done is just have each line of the form be a JPanel. There's gotta be an easier way to do it though. For one thing, I want them to be able to press a button and insert a line of new data in the middle at a
> certain place. That doesn't seem to work with a series of JPanels.

> 2) Say I want to then pass that information to the server that the applet is running on and get it to start running some script with that information...

> Thanks so much,
> regards,
> rvw






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us