• Post Reply Bookmark Topic Watch Topic
  • New Topic

Instansting JPanel in JFrame in execution time does not work, components do not appear.  RSS feed

 
Josh Borg
Ranch Hand
Posts: 37
Chrome Eclipse IDE Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I trying to replace original (and empty) JPanel in JFrame with my own made one, components does no appear right, when I pass the mouse first button appears:


MainViewClass:




Here is the video:



Someone have an idea about what is happening?
 
Rob Camick
Ranch Hand
Posts: 2756
12
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you add/remove components from a visible GUI the basic code is:



I trying to replace original (and empty) JPanel in JFrame with my own made one,


You should probably be using a Card Layout.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!