Java????????
???????????? ???????[ 2014/2/28 9:51:32 ] ????????Java ???
?????????????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;
}
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11