• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JFrame won't setVisible( false )

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Strange problem. I am developing an application using 2 JFrames.
Both JFrames are loaded during start up but only JFrame1 is visible. Pressing a button on JFrame1 sets JFrame1 invisible and JFrame2 visible. What happens is JFrame1 doesn't disappear and JFrame2 appears on top of JFrame1. The strange thing is this only happens once and this bug clears after switching back and forth from JFrame1 and JFrame2. Have you seen or heard of anything like this before? I've tried waiting before pressing the JButton but this doesn't help.
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you should post the code for the loading & for the action event of the button on JFrame1 just post the outline it will help me to find out the problem .
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic