| Author |
dynamically adding components
|
Alan Shiers
Ranch Hand
Joined: Sep 24, 2003
Posts: 216
|
|
Hi there, I'm trying a test by adding components dynamically to a GUI. In the following test I am able to add a JLabel or a JButton, but when it comes to a JTextArea nothing appears. Can someone explain what I need to do to make the JTextArea appear? Please advise, Alan
|
 |
Tony Docherty
Bartender
Joined: Aug 07, 2007
Posts: 1176
|
|
It does work it's just that at a size of 0 x 0 there's not much to see . If you give it a size via the constructor or add some text to it, it will display something that is visible.
|
 |
 |
|
|
subject: dynamically adding components
|
|
|