my scenario is I have two JButtons(jb1,jb2) and I am remove these two buttons and added new set of two buttons(jb3,jb4) upon Save action and I want to redisplay the JPanel with buttons(jb3,jb4)
please give me code specific and no theory please
Appreciate immediate help
..medival Man
Jeff Albertson
Ranch Hand
Joined: Sep 16, 2005
Posts: 1780
posted
0
It may be simpler to toggle the button's visibility:
[ February 02, 2006: Message edited by: Jeff Albertson ]
There is no emoticon for what I am feeling!
Nageswar Kakolla
Ranch Hand
Joined: Jan 16, 2006
Posts: 71
posted
0
First Of all, Thanx for immediate reply. But, I need to place the buttons at same location. It seems given code sample will hide set of two buttons any time .
in laymans terms,
chang the name of Buttons name at the same position & location
-- appreciate help here is code i am using where m_buttonPanel is JPanel and m_previousButton -> Previous Button m_nextButton -> Next Button, m_cancelButton -> CancelButton m_saveButton -> Save Button