Before testing this on the button click, I would suggest adding this directly before you call setVisible(true) and see if it works. That should give you a clue.
nesma abd el mawla
Joined: Nov 29, 2012
Ranganathan Kaliyur Mannar wrote:Before testing this on the button click, I would suggest adding this directly before you call setVisible(true) and see if it works. That should give you a clue.
Thanks for reply Ranganathan ,
I tried setting visible property to true but it doesn't solve anything ,,
the problem was Creating controls and adding it on netbeans main panel at run time needs Only "Grid or Flow Layout managers" other layout managers don't work properly and I was using the default group layout.
no no, what I was trying to say was:
normally, you will build all the controls and then call setSize() or pack() on the frame and then call setVisible(true) on the frame. So, whatever code you have in the ActionListener, just call it before you show the frame. This would help you to actually find out if that code works.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: adding controls to jpanel at runtime problem