I need to make a simple refresh button for a gui java program I have the button made I just am not sure what the code needs to be to make the button work. Any help would be really appreciated.

It is a program that gets and display various system properties and the refresh button would refresh the time, date, etc.

So read that tutorial I linked and write an action listener for your button that does that.

I have the button made I just don't know the code to update/refresh the information.

Well, I doubt anyone else here does either since it's your data and your GUI and you haven't posted a single line of code.

Since you got the info one time, I assume you can get it again and if you displayed in once before, you can display it once more. That is exactly what your ActionListener needs to do.

I figured it out thanks though.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.