This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Refreshing/repainting JPanel or JtextField

 
selman Fermitsjelli
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm a computing student and I need a little help figering out how to refresh a JPanel or some JTextFields after a JButton has called an ActionListener.
This code will scroll through my database and put every rowinput in a JTextField in another panel.
The question is, whenever I call the JButton while running the program, the JTextFields won't refresh autmatically (I don't think something is wrong with my code)
Is someone able to figure out how to do this for me?


Please note that I'm an intermediate programmer so go easy on me
ps. I know there are some things that I could leave out, like the JTable and some implemented stuff...
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic