Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Components aren't seen in Frame/JFrame

 
vijay gangoni
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on Frame/JFrame. I am facing a problem that the components (Buttons,JButton,Lable,JTextField...etc.,) which I add to the Frame/JFrame are not getting displayed, when I run the Application, utill I do the following:
- resize the frame.
- minimize or maximize the frame.
- or click on the title bar of the frame...
I am confused.. can any one help me out...plz
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I deleted your duplicate post.
It's probably because you are displaying the frame (setVisible(true)/show()) before are you adding components. But without seeing your code, it's hard to say.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic