Results 1 to 3 of 3

Thread: Swing Display Problem

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Scotland, UK
    Posts
    321

    Question Swing Display Problem

    I have been using SunOne Studio and have several buttons in a frame on a form.

    When I show the buttons they show correctly, If I then try and hide them, they dont hide.

    Once ive told them to hide, the image of the buttons remain on the screen, however they arn't their, clicking them does nothing.

    If I move the window, or make it bigger or smaller the buttons vanish.

    How do I cause the screen to refresh? or if that is not possible, how do I resize the application window?

    Thanks in advance for any help you can offer.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Just call the repaint() method of the Frame. That should take care of it.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Scotland, UK
    Posts
    321
    Thats not working either.

    Although I said frame, its actually a jPanel, which im assuming may be why its not working. However i tried it with a frame instead, again nothing happened.

    Any other ideas?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width