Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Refreshing the Panel  RSS feed

 
pranav varshney
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I want to refresh the Panel every time when some event occur or the item from the dropdown box is selected. In the Below code, Repository_oid is change everytime when i selected item from dropdown box.




 
Campbell Ritchie
Sheriff
Posts: 53764
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Your code looks a lot better now I have added code tags (), which you should always use. Unfortunately it highlights two methods which are too long. I would suggest you reduce your action performed method to one line if possibleYou will obviously have to move most of the code into the other method.
The Select method (should be select) appears incorrectly named because it doesn't select anything. It appears to be doing something you ought not to do inside a method (except a setUpGUI method), namely creating a new Component. You are not refreshing the panel, but creating a new one. That might mean your display will change strangely every time your button is pressed.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!