svn commit: r17590 - trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/LabelledComponent.java

Bob Tarling <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2009-12-02 02:15:34-0800
New Revision: 17590

Modified:
   trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/LabelledComponent.java

Log:
Make variables private

Modified: trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/LabelledComponent.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/LabelledComponent.java?view=diff&pathrev=17590&r1=17589&r2=17590
==============================================================================
--- trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/LabelledComponent.java	(original)
+++ trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/LabelledComponent.java	2009-12-02 02:15:34-0800
@@ -42,12 +42,19 @@
      */
     private static final long serialVersionUID = -6805892904843209588L;
     
-    final JComponent component;
-    final JLabel label;
+    /**
+     * The label for the component that might also be wrapped inside this
+     * container
+     */
+    private final JLabel label;
     
+    /**
+     * Construct a new LabelledComponent
+     * @param name the name of the label to create
+     * @param component the component to wrap
+     */
     public LabelledComponent(final String name, final JComponent component) {
         super(new BorderLayout());
-        this.component = component;
         setName(name);
         add(component, BorderLayout.CENTER);

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2426269

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.