Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

InternalFrame not getting bound in External Frame container(IDE:Netbeans)  RSS feed

 
Khushi Sing
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hi All,
I have attached an image of how my calling class- class1 call class2's method test. Also, how class 2 layout is.
Issue is:
i am trying to add InternalFrame jInternalframe1 to main container Frame NewJFrame3 but its not getting added/bound.
I commented the call for auto-generated initComponents(), copy pasted its code to test() function where i also tried to add internal frame to main container frame. Yet all i get for my output is blank external frame. I tried playing with code but all i get is error.
My Code for function test():



Please find the attachment.

Regards,
Fraggy
class.jpg
[Thumbnail for class.jpg]
 
Khushi Sing
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, i forgot to mention, the main container frame, the called class - NewJFrame3 is a JFrame Form. So when we call this class's method using an object, we can internally set its layout using "this.setLayout(...)", which would have made no sense if NewJFrame was just a java class. i just thought i should add thsi information to this thread.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!