Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Container context  RSS feed

 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been looking at a class diagram for a swing application that
refers to a container context. Can someone tell me what this refers to.

Thanks.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swing uses "containers" to, well, contain things. Ok, that's a little vague. A container is basically anthing that can hold another component.

If you look at this, you will notice that there are General-Purpose containers and Special-Purpose containers.

Looking through each of those should give you a good concept of what a container is in Swing. JPanel is the most common container used.
 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. How does context relate to it? Not sure what the two terms
together mean.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Barry Brashear:
Thanks. How does context relate to it? Not sure what the two terms
together mean.


Context is a pretty general term. I'm not sure I understand in what context you are speaking of the term Context. Do you have a link to this class diagram or something I can see that is similar?
 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the contents of the class design box :

Framework::ApplicationContainerContext
-----------------------------------
-myUser
-myLookandFeel
----------------------------
-new
-buildMenuBar
-buildNavigationBar
etc.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!