/Users/lyon/j4p/src/addBk/print/labels/MailingLabel.java
|
1 package addBk.print.labels;
2
3 import java.awt.*;
4 import java.util.Vector;
5
6 public class MailingLabel {
7 private Vector v = new Vector();
8 private Dimension d = new Dimension(
9 (int)((2.0+5/8.0)* 72), 1 * 72);
10
11 public MailingLabel() {
12 }
13
14 public void add(String st) {
15 v.addElement(st);
16 }
17
18 public String[] getLines() {
19 String s[] = new String[v.size()];
20 v.copyInto(s);
21 return s;
22 }
23 public Dimension getPreferredSize() {
24 return d;
25 }
26 }
27