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

Show JInternalframe Instead of JFrame  RSS feed

 
Chernenko Nencor
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello, i've made some code here


when i debug the Application, it shows


here's my code on the Main Form (with Menubar on it)


how can i show MasterConsole internalframe ?
why is Labelformtitle not showing ?
 
Campbell Ritchie
Marshal
Posts: 55678
161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you set any sizes for the frame or the internal frame?
 
Chernenko Nencor
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Did you set any sizes for the frame or the internal frame?

neither did i,

which one do i have to set the sizes, frame, or JInternalframe ?
 
Rob Camick
Ranch Hand
Posts: 2800
15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which one do i have to set the sizes, frame, or JInternalframe ?


Read the section from the Swing tutorial on How to Use Internal Frames.

Download the demo code and use it as a starting point. The code will be better structured than your current code.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!