Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Opening a window hides JLabel  RSS feed

 
Brian Duncan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having an issue that when I open my new JFrame with my 'graph' (a picture) by the button's action listener the previous JFrame's picture of 'graph' disappears, if I move something and refresh it it works, but otherwise not. I'm trying to figure out why this is happening. This is part of a larger program, so if it's needed I'll try and make a smaller version of the code so people can see it.

 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> so if it's needed I'll try and make a smaller version of the code so people can see it.

definitely the best way to get a solution.

I tried to reproduce your problem with this, but the images display fine

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!