repositories
/
Persons_Comparator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a label to all views.
[Persons_Comparator.git]
/
src
/
WeightView.java
diff --git
a/src/WeightView.java
b/src/WeightView.java
index 3e6d00f668a0270f8f0f9ee5b42e88410e8116f1..239c437556dededfbbaf3839a0dba0b5c528d89b 100644
(file)
--- a/
src/WeightView.java
+++ b/
src/WeightView.java
@@
-2,8
+2,12
@@
import javax.swing.*;
public class WeightView extends JComponent {
private Weight weightObj;
+ private JLabel label;
WeightView() {
+ this.label = new JLabel();
+ this.label.setText("Weight");
+ add(label);
}
WeightView(Weight weightObj) {