The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2001

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:

how can i handle the properties of the components i created dynamically

Posted by gokay on November 29, 2001 at 7:43 AM

i wanna handle the panel's size but it says "0,0". i cant change it eighter..
its the same for the textfields.
there r many texts on the screen but they r all the same !
the code is belove.


for(int x = 0;x<10;x++)
{
pane = new JPanel(new GridLayout(row,column));
for(int i=0;i {
for(int j=0;j {
pane.add(new JTextField(3));
}
}
MainPane.add(pane);
MainWindow.getContentPane().validate();
}




Replies:

Sponsored Links



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