I have a code that play's an animation on a JFrame.. On top of that, I have added a Jpanel with few buttons. my problem is, mybuttons are not visible on the animation screen until i hover a mouse on them?? what am i doing wrong..
zyaday 0 Junior Poster in Training
Recommended Answers
Jump to PostSeeing your code might help, however I can take a couple of guesses.
1. You haven't done pack() before doing setVisible(true)
2. You are "playing" the animation in the vent thread, thereby delaying/preventing the operation of the GUI
Jump to PostIt was suppossed to be "event" thread. And if you don't know what it is, then I can guarantee you're doing it. Post your code.
All 7 Replies
masijade 1,351 Industrious Poster Team Colleague Featured Poster
zyaday 0 Junior Poster in Training
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster
sciwizeh 62 Posting Pro in Training
zyaday 0 Junior Poster in Training
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
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.