how can i hide/close jframe using a thread or timer in java please i need help :(

Just call setVisible(false) or dispose() on your JFrame. It's the same regardless of what you are doing with threads or timers.
What's your real question - do you want to know how to use a timer?

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.