-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Components disappear after minimizing the frame or after moving another window on top #234
Comments
Hi @dleonext, I cannot confirm your issue. I tested your code on Windows XP SP2 32-bit and Ubuntu Linux 64-bit, both hosting Java 6 JDK, by running: public static void main(String[] args) {
new ImageCaptureManager();
} I tried minimize and maximize window several time, moving another window on top of displayed frame, in all cases I see no effect - all components are being drawn correctly, no disappearance. However, I googled a little bit and found these articles:
So I added super paint component call into the The newest snapshot JAR can be found here: |
Hello, I just solved my issue using
instead of:
Do you have any idea why this has solved my problem? |
Wow! I completely have no idea why changing Great to know the issue is now fixed :) I'm closing this ticket. |
I am also facing same problem but in swing. I use JPanel to create panels. but my panels are overlapping... what should I do? |
@ApurvaMatey try using layout manager or set panels bounds in such a way that they do not overlap. |
I'm using webcam-capture libraries and AWT to develop a simple interface for taking pictures from a webcam. The buttons and the combobox in my JFrame disappear after minimizing the window or after moving another window on top of it. Moving the pointer over the frame restores the components' visibility. I'm not skilled with Java UI, I can't figure out what's wrong with my code.
Thanks in advance!
The text was updated successfully, but these errors were encountered: