Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

combining components  RSS feed

 
Geoff Vurel
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
forget this question
 
Campbell Ritchie
Sheriff
Posts: 53779
128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use the code tags and don't disable BB code; your code is hard enough to read even with the indentation.

I don't quite understand the question, I am afraid. Your two classes appear to do different things. You can add any number of components in a Swing class constructor, but you can't add Frames to Frames (at least I think you can't). You can add several panels to a frame, and add other components to them. That might be what you want.

This sort of question is usually discussed on our Swing forum, so I shall move you there.

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!