The Artima Developer Community
Sponsored Link

Java Answers Forum
JButtons and JTextArea disappear on minimize

1 reply on 1 page. Most recent reply: Jun 11, 2002 1:46 AM by abhijeet

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Mariam

Posts: 4
Nickname: insomnia
Registered: Apr, 2002

JButtons and JTextArea disappear on minimize Posted: Jun 11, 2002 1:31 AM
Reply to this message Reply
Advertisement
Hello again,

I have created an applet which is an image gallery. I have a textarea which takes its contents from .txt files and a few buttons for viewing the images and their description, next and previous buttons. My problem is somehow strange to me (i am a beginner in java and it seems that i'm missing something) once i minimize the explorer window the buttons and the text description disappear. Once i pass the mouse over the position of the buttons only then they appear. Also when i select the text displayed it will appear again.
Is there something like refresh on window minimize or something like that?
They also disappear when i first open the applet.

Thank you in advance!

Mariam

P.S. I have a deadline for this in two days :p


abhijeet

Posts: 21
Nickname: sony
Registered: May, 2002

Re: JButtons and JTextArea disappear on minimize Posted: Jun 11, 2002 1:46 AM
Reply to this message Reply
Hi Mariam,

Try with the methods repaint() and validate() whenever you are initializing the applet so that it gets repainted and validated.

abhijeet.

Flat View: This topic has 1 reply on 1 page
Topic: Showing huge data in JSP Previous Topic   Next Topic Topic: Where does it go wrong??

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use