?????????????JPanel?е???????д????????panel???Printable??????????????????????????в????Panel???????????????????????????scale???????????ɡ?
@Override
public int print(Graphics g?? PageFormat pf?? int page)
throws PrinterException {
if (page > 0) {
return NO_SUCH_PAGE;
}
Graphics2D g2d = (Graphics2D) g;
g2d.translate(pf.getImageableX()?? pf.getImageableY());
g2d.scale(0.9?? 0.9);
this.setSize(800?? 900);
this.printAll(g2d);
return PAGE_EXISTS;
}
?????????????????equals??????С?????
??????????????The method equals(VUserGroup) of type VUserGroup must override or implement a supertype method
@Override
public boolean equals(VUserGroup one) {
if (this.getUserId().equals(one.getUserId())) {
return true;
} else {
return false;
}
}
?????????????
public boolean equals(Object obj) {
VUserGroup one = (VUserGroup) obj;
if (this.getUserId().equals(one.getUserId())) {
return true;
} else {
return false;
}
}